From 30ed5548498f98344ef1e660ac5d1740aa979178 Mon Sep 17 00:00:00 2001 From: Luke Cawood Date: Wed, 14 Apr 2021 10:27:26 +1000 Subject: [PATCH] Merge pull request #1514 from 99designs/bump-gqlparser Bump gqlparser to v2.2.0 (cherry picked from commit bf2fdf4401b3c77a4d032572f641787eb99e8b71) --- codegen/testserver/singlefile/generated.go | 5 +++++ example/chat/generated.go | 5 +++++ example/config/generated.go | 5 +++++ example/dataloader/generated.go | 5 +++++ example/federation/accounts/graph/generated/generated.go | 5 +++++ example/federation/products/graph/generated/generated.go | 5 +++++ example/federation/reviews/graph/generated/generated.go | 5 +++++ example/fileupload/generated.go | 5 +++++ example/scalars/generated.go | 5 +++++ example/selection/generated.go | 5 +++++ example/starwars/generated/exec.go | 5 +++++ example/todo/generated.go | 5 +++++ example/type-system-extension/generated.go | 5 +++++ integration/generated.go | 5 +++++ 14 files changed, 70 insertions(+) diff --git a/codegen/testserver/singlefile/generated.go b/codegen/testserver/singlefile/generated.go index 6452652234e..dfe83a1dcbb 100644 --- a/codegen/testserver/singlefile/generated.go +++ b/codegen/testserver/singlefile/generated.go @@ -15717,6 +15717,11 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS out.Values[i] = innerFunc(ctx) + if out.Values[i] == graphql.Null { + invalids++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { invalids++ } diff --git a/example/chat/generated.go b/example/chat/generated.go index 067b1d01bf9..8fcdaf9f775 100644 --- a/example/chat/generated.go +++ b/example/chat/generated.go @@ -2283,6 +2283,11 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS out.Values[i] = innerFunc(ctx) + if out.Values[i] == graphql.Null { + invalids++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { invalids++ } diff --git a/example/config/generated.go b/example/config/generated.go index c85a2564fc9..ab71b493d29 100644 --- a/example/config/generated.go +++ b/example/config/generated.go @@ -2273,6 +2273,11 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS out.Values[i] = innerFunc(ctx) + if out.Values[i] == graphql.Null { + invalids++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { invalids++ } diff --git a/example/dataloader/generated.go b/example/dataloader/generated.go index 45bcce22bb2..801248ecf92 100644 --- a/example/dataloader/generated.go +++ b/example/dataloader/generated.go @@ -2496,6 +2496,11 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS out.Values[i] = innerFunc(ctx) + if out.Values[i] == graphql.Null { + invalids++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { invalids++ } diff --git a/example/federation/accounts/graph/generated/generated.go b/example/federation/accounts/graph/generated/generated.go index d1598942b42..3e58d66f461 100644 --- a/example/federation/accounts/graph/generated/generated.go +++ b/example/federation/accounts/graph/generated/generated.go @@ -2425,6 +2425,11 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS out.Values[i] = innerFunc(ctx) + if out.Values[i] == graphql.Null { + invalids++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { invalids++ } diff --git a/example/federation/products/graph/generated/generated.go b/example/federation/products/graph/generated/generated.go index db9b6e3a572..be8b22ee22d 100644 --- a/example/federation/products/graph/generated/generated.go +++ b/example/federation/products/graph/generated/generated.go @@ -2515,6 +2515,11 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS out.Values[i] = innerFunc(ctx) + if out.Values[i] == graphql.Null { + invalids++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { invalids++ } diff --git a/example/federation/reviews/graph/generated/generated.go b/example/federation/reviews/graph/generated/generated.go index ee3d560a206..3772d23db28 100644 --- a/example/federation/reviews/graph/generated/generated.go +++ b/example/federation/reviews/graph/generated/generated.go @@ -2787,6 +2787,11 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS out.Values[i] = innerFunc(ctx) + if out.Values[i] == graphql.Null { + invalids++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { invalids++ } diff --git a/example/fileupload/generated.go b/example/fileupload/generated.go index bc8426e5994..510d241e88c 100644 --- a/example/fileupload/generated.go +++ b/example/fileupload/generated.go @@ -2212,6 +2212,11 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS out.Values[i] = innerFunc(ctx) + if out.Values[i] == graphql.Null { + invalids++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { invalids++ } diff --git a/example/scalars/generated.go b/example/scalars/generated.go index 9dfce956a15..20f7ba4546d 100644 --- a/example/scalars/generated.go +++ b/example/scalars/generated.go @@ -2561,6 +2561,11 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS out.Values[i] = innerFunc(ctx) + if out.Values[i] == graphql.Null { + invalids++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { invalids++ } diff --git a/example/selection/generated.go b/example/selection/generated.go index 37047440082..1ad4e3943b2 100644 --- a/example/selection/generated.go +++ b/example/selection/generated.go @@ -2030,6 +2030,11 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS out.Values[i] = innerFunc(ctx) + if out.Values[i] == graphql.Null { + invalids++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { invalids++ } diff --git a/example/starwars/generated/exec.go b/example/starwars/generated/exec.go index 2d958a72106..e73c96be1dc 100644 --- a/example/starwars/generated/exec.go +++ b/example/starwars/generated/exec.go @@ -4395,6 +4395,11 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS out.Values[i] = innerFunc(ctx) + if out.Values[i] == graphql.Null { + invalids++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { invalids++ } diff --git a/example/todo/generated.go b/example/todo/generated.go index 101f2288ecf..5022c249b8e 100644 --- a/example/todo/generated.go +++ b/example/todo/generated.go @@ -2184,6 +2184,11 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS out.Values[i] = innerFunc(ctx) + if out.Values[i] == graphql.Null { + invalids++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { invalids++ } diff --git a/example/type-system-extension/generated.go b/example/type-system-extension/generated.go index 62b405602bd..5249e45f24b 100644 --- a/example/type-system-extension/generated.go +++ b/example/type-system-extension/generated.go @@ -2226,6 +2226,11 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS out.Values[i] = innerFunc(ctx) + if out.Values[i] == graphql.Null { + invalids++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { invalids++ } diff --git a/integration/generated.go b/integration/generated.go index 90af66550d1..1cdecba0ae0 100644 --- a/integration/generated.go +++ b/integration/generated.go @@ -2487,6 +2487,11 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS out.Values[i] = innerFunc(ctx) + if out.Values[i] == graphql.Null { + invalids++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { invalids++ }