From e01dfef80b4eb328bb0960f8ad9b717694c1b599 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:09:53 +0000 Subject: [PATCH 1/2] Bump github.com/wundergraph/graphql-go-tools/v2 in /runtime Bumps [github.com/wundergraph/graphql-go-tools/v2](https://github.com/wundergraph/graphql-go-tools) from 2.0.0-rc.105 to 2.0.0-rc.108. - [Release notes](https://github.com/wundergraph/graphql-go-tools/releases) - [Commits](https://github.com/wundergraph/graphql-go-tools/compare/v2.0.0-rc.105...v2.0.0-rc.108) --- updated-dependencies: - dependency-name: github.com/wundergraph/graphql-go-tools/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- runtime/go.mod | 2 +- runtime/go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/go.mod b/runtime/go.mod index 34b413c2..695f5142 100644 --- a/runtime/go.mod +++ b/runtime/go.mod @@ -48,7 +48,7 @@ require ( github.com/tidwall/sjson v1.2.5 github.com/viterin/vek v0.4.2 github.com/wundergraph/graphql-go-tools/execution v1.0.7 - github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.105 + github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.108 golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 google.golang.org/grpc v1.67.1 ) diff --git a/runtime/go.sum b/runtime/go.sum index e26bbda5..39f58be9 100644 --- a/runtime/go.sum +++ b/runtime/go.sum @@ -262,8 +262,8 @@ github.com/wundergraph/cosmo/router v0.0.0-20240926091419-7c3781f4f507 h1:uojstb github.com/wundergraph/cosmo/router v0.0.0-20240926091419-7c3781f4f507/go.mod h1:44kgNdnRaJVugapwUGRCbO27ziXNQTITJusRMmbl08c= github.com/wundergraph/graphql-go-tools/execution v1.0.7 h1:q+FYRoRjgj1Q6LowYlaxHKAe1YtJ0WlCchxqnBBMW9E= github.com/wundergraph/graphql-go-tools/execution v1.0.7/go.mod h1:sb+EyLG8bsKe8HVSU1tnTwWZSdhD8tFNvKH+1wllVuM= -github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.105 h1:iSG8FONqEuujY6PQ5LvZplC8KjMLUbL1DEn6glepoT4= -github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.105/go.mod h1:zkPVYJu1iQd0y1fBNj+oXe9uMI/33TSoiXEsKSAESZY= +github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.108 h1:1GTf9trAfT8jWz81HYbXJECQSXxll9sxnn7HuevGAZo= +github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.108/go.mod h1:zkPVYJu1iQd0y1fBNj+oXe9uMI/33TSoiXEsKSAESZY= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.55.0 h1:ZIg3ZT/aQ7AfKqdwp7ECpOK6vHqquXXuyTjIO8ZdmPs= From b7006d479afb3afe72c66180269f8d794c6dc350 Mon Sep 17 00:00:00 2001 From: Matt Johnson-Pint Date: Wed, 23 Oct 2024 15:08:40 -0700 Subject: [PATCH 2/2] Update planner.go --- runtime/graphql/datasource/planner.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/runtime/graphql/datasource/planner.go b/runtime/graphql/datasource/planner.go index 7702f57a..41c2c75c 100644 --- a/runtime/graphql/datasource/planner.go +++ b/runtime/graphql/datasource/planner.go @@ -24,6 +24,7 @@ import ( ) type HypDSPlanner struct { + id int ctx context.Context config HypDSConfig visitor *plan.Visitor @@ -52,6 +53,14 @@ func (t *fieldInfo) AliasOrName() string { return t.Name } +func (p *HypDSPlanner) SetID(id int) { + p.id = id +} + +func (p *HypDSPlanner) ID() (id int) { + return p.id +} + func (p *HypDSPlanner) UpstreamSchema(dataSourceConfig plan.DataSourceConfiguration[HypDSConfig]) (*ast.Document, bool) { return nil, false }