diff --git a/_examples/config/generated.go b/_examples/config/generated.go index b3772983858..131cb95ce34 100644 --- a/_examples/config/generated.go +++ b/_examples/config/generated.go @@ -2832,8 +2832,6 @@ func (ec *executionContext) unmarshalInputNewTodo(ctx context.Context, obj inter } switch k { case "text": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -2841,8 +2839,6 @@ func (ec *executionContext) unmarshalInputNewTodo(ctx context.Context, obj inter } it.Text = data case "userId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userId")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { diff --git a/_examples/fileupload/generated.go b/_examples/fileupload/generated.go index 160ab84faa1..050321b206d 100644 --- a/_examples/fileupload/generated.go +++ b/_examples/fileupload/generated.go @@ -2813,8 +2813,6 @@ func (ec *executionContext) unmarshalInputUploadFile(ctx context.Context, obj in } switch k { case "id": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) data, err := ec.unmarshalNInt2int(ctx, v) if err != nil { @@ -2822,8 +2820,6 @@ func (ec *executionContext) unmarshalInputUploadFile(ctx context.Context, obj in } it.ID = data case "file": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file")) data, err := ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) if err != nil { diff --git a/_examples/scalars/generated.go b/_examples/scalars/generated.go index 549d3a4fa57..68635d81a29 100644 --- a/_examples/scalars/generated.go +++ b/_examples/scalars/generated.go @@ -3156,8 +3156,6 @@ func (ec *executionContext) unmarshalInputSearchArgs(ctx context.Context, obj in } switch k { case "location": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("location")) data, err := ec.unmarshalOPoint2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐPoint(ctx, v) if err != nil { @@ -3165,8 +3163,6 @@ func (ec *executionContext) unmarshalInputSearchArgs(ctx context.Context, obj in } it.Location = data case "createdAfter": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAfter")) data, err := ec.unmarshalOTimestamp2ᚖtimeᚐTime(ctx, v) if err != nil { @@ -3174,8 +3170,6 @@ func (ec *executionContext) unmarshalInputSearchArgs(ctx context.Context, obj in } it.CreatedAfter = data case "isBanned": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isBanned")) data, err := ec.unmarshalOBanned2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐBanned(ctx, v) if err != nil { diff --git a/_examples/starwars/generated/exec.go b/_examples/starwars/generated/exec.go index 1465c2bb436..072a2f226d0 100644 --- a/_examples/starwars/generated/exec.go +++ b/_examples/starwars/generated/exec.go @@ -4781,8 +4781,6 @@ func (ec *executionContext) unmarshalInputReviewInput(ctx context.Context, obj i } switch k { case "stars": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stars")) data, err := ec.unmarshalNInt2int(ctx, v) if err != nil { @@ -4790,8 +4788,6 @@ func (ec *executionContext) unmarshalInputReviewInput(ctx context.Context, obj i } it.Stars = data case "commentary": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("commentary")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -4799,8 +4795,6 @@ func (ec *executionContext) unmarshalInputReviewInput(ctx context.Context, obj i } it.Commentary = data case "time": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("time")) data, err := ec.unmarshalOTime2timeᚐTime(ctx, v) if err != nil { diff --git a/_examples/todo/generated.go b/_examples/todo/generated.go index 0aa9e6c1978..e4832548c08 100644 --- a/_examples/todo/generated.go +++ b/_examples/todo/generated.go @@ -2748,8 +2748,6 @@ func (ec *executionContext) unmarshalInputTodoInput(ctx context.Context, obj int } switch k { case "text": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -2757,8 +2755,6 @@ func (ec *executionContext) unmarshalInputTodoInput(ctx context.Context, obj int } it.Text = data case "done": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("done")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { diff --git a/_examples/type-system-extension/generated.go b/_examples/type-system-extension/generated.go index 71fb282a516..6c365ad7ccd 100644 --- a/_examples/type-system-extension/generated.go +++ b/_examples/type-system-extension/generated.go @@ -2726,8 +2726,6 @@ func (ec *executionContext) unmarshalInputTodoInput(ctx context.Context, obj int } switch k { case "text": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, v) } directive1 := func(ctx context.Context) (interface{}, error) { diff --git a/codegen/input.gotpl b/codegen/input.gotpl index f4ba90d9071..9240b56c957 100644 --- a/codegen/input.gotpl +++ b/codegen/input.gotpl @@ -31,13 +31,10 @@ switch k { {{- range $field := .Fields }} case {{$field.Name|quote}}: - var err error - {{- $lhs := (printf "it.%s" $field.GoFieldName) }} {{- if $input.IsMap }} {{- $lhs = (printf "it[%q]" $field.Name) }} {{- end }} - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField({{$field.Name|quote}})) {{- if $field.ImplDirectives }} directive0 := func(ctx context.Context) (interface{}, error) { return ec.{{ $field.TypeReference.UnmarshalFunc }}(ctx, v) } diff --git a/codegen/testserver/followschema/defaults.generated.go b/codegen/testserver/followschema/defaults.generated.go index 5da26c1f772..73dd082aced 100644 --- a/codegen/testserver/followschema/defaults.generated.go +++ b/codegen/testserver/followschema/defaults.generated.go @@ -422,8 +422,6 @@ func (ec *executionContext) unmarshalInputDefaultInput(ctx context.Context, obj } switch k { case "falsyBoolean": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("falsyBoolean")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -431,8 +429,6 @@ func (ec *executionContext) unmarshalInputDefaultInput(ctx context.Context, obj } it.FalsyBoolean = data case "truthyBoolean": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("truthyBoolean")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { diff --git a/codegen/testserver/followschema/directive.generated.go b/codegen/testserver/followschema/directive.generated.go index 2692254a38d..b2b05cc7746 100644 --- a/codegen/testserver/followschema/directive.generated.go +++ b/codegen/testserver/followschema/directive.generated.go @@ -406,8 +406,6 @@ func (ec *executionContext) unmarshalInputInnerDirectives(ctx context.Context, o } switch k { case "message": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("message")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, v) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -456,8 +454,6 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o } switch k { case "text": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, v) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -496,8 +492,6 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o return it, graphql.ErrorOnPath(ctx, err) } case "nullableText": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nullableText")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(ctx, v) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -526,8 +520,6 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o return it, graphql.ErrorOnPath(ctx, err) } case "inner": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inner")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInnerDirectives(ctx, v) @@ -552,8 +544,6 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o return it, graphql.ErrorOnPath(ctx, err) } case "innerNullable": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("innerNullable")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInnerDirectives(ctx, v) @@ -578,8 +568,6 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o return it, graphql.ErrorOnPath(ctx, err) } case "thirdParty": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("thirdParty")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOThirdParty2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐThirdParty(ctx, v) diff --git a/codegen/testserver/followschema/enum.generated.go b/codegen/testserver/followschema/enum.generated.go index 53aebf57ab3..37fd16fd3e4 100644 --- a/codegen/testserver/followschema/enum.generated.go +++ b/codegen/testserver/followschema/enum.generated.go @@ -42,8 +42,6 @@ func (ec *executionContext) unmarshalInputInputWithEnumValue(ctx context.Context } switch k { case "enum": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enum")) data, err := ec.unmarshalNEnumTest2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐEnumTest(ctx, v) if err != nil { diff --git a/codegen/testserver/followschema/fields_order.generated.go b/codegen/testserver/followschema/fields_order.generated.go index ccaad875d89..ec000cef907 100644 --- a/codegen/testserver/followschema/fields_order.generated.go +++ b/codegen/testserver/followschema/fields_order.generated.go @@ -87,8 +87,6 @@ func (ec *executionContext) unmarshalInputFieldsOrderInput(ctx context.Context, } switch k { case "firstField": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstField")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -96,8 +94,6 @@ func (ec *executionContext) unmarshalInputFieldsOrderInput(ctx context.Context, } it.FirstField = data case "overrideFirstField": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("overrideFirstField")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { diff --git a/codegen/testserver/followschema/maps.generated.go b/codegen/testserver/followschema/maps.generated.go index d2c4e1b8857..570ac28a39a 100644 --- a/codegen/testserver/followschema/maps.generated.go +++ b/codegen/testserver/followschema/maps.generated.go @@ -279,8 +279,6 @@ func (ec *executionContext) unmarshalInputMapNestedInput(ctx context.Context, ob } switch k { case "value": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) data, err := ec.unmarshalNCustomScalar2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐCustomScalar(ctx, v) if err != nil { @@ -308,8 +306,6 @@ func (ec *executionContext) unmarshalInputMapStringInterfaceInput(ctx context.Co } switch k { case "a": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("a")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -317,8 +313,6 @@ func (ec *executionContext) unmarshalInputMapStringInterfaceInput(ctx context.Co } it["a"] = data case "b": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("b")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -326,8 +320,6 @@ func (ec *executionContext) unmarshalInputMapStringInterfaceInput(ctx context.Co } it["b"] = data case "c": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("c")) data, err := ec.unmarshalOCustomScalar2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐCustomScalar(ctx, v) if err != nil { @@ -335,8 +327,6 @@ func (ec *executionContext) unmarshalInputMapStringInterfaceInput(ctx context.Co } it["c"] = data case "nested": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nested")) data, err := ec.unmarshalOMapNestedInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐMapNested(ctx, v) if err != nil { @@ -364,8 +354,6 @@ func (ec *executionContext) unmarshalInputNestedMapInput(ctx context.Context, ob } switch k { case "map": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("map")) data, err := ec.unmarshalOMapStringInterfaceInput2map(ctx, v) if err != nil { diff --git a/codegen/testserver/followschema/mutation_with_custom_scalar.generated.go b/codegen/testserver/followschema/mutation_with_custom_scalar.generated.go index c3c967184de..4a165ecd203 100644 --- a/codegen/testserver/followschema/mutation_with_custom_scalar.generated.go +++ b/codegen/testserver/followschema/mutation_with_custom_scalar.generated.go @@ -42,8 +42,6 @@ func (ec *executionContext) unmarshalInputNestedInput(ctx context.Context, obj i } switch k { case "field": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) data, err := ec.unmarshalNEmail2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐEmail(ctx, v) if err != nil { @@ -71,8 +69,6 @@ func (ec *executionContext) unmarshalInputSpecialInput(ctx context.Context, obj } switch k { case "nesting": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nesting")) data, err := ec.unmarshalNNestedInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐNestedInput(ctx, v) if err != nil { diff --git a/codegen/testserver/followschema/ptr_to_ptr_input.generated.go b/codegen/testserver/followschema/ptr_to_ptr_input.generated.go index ef0e33a8965..6d93766953f 100644 --- a/codegen/testserver/followschema/ptr_to_ptr_input.generated.go +++ b/codegen/testserver/followschema/ptr_to_ptr_input.generated.go @@ -257,8 +257,6 @@ func (ec *executionContext) unmarshalInputUpdatePtrToPtrInner(ctx context.Contex } switch k { case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -266,8 +264,6 @@ func (ec *executionContext) unmarshalInputUpdatePtrToPtrInner(ctx context.Contex } it.Key = data case "value": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -295,8 +291,6 @@ func (ec *executionContext) unmarshalInputUpdatePtrToPtrOuter(ctx context.Contex } switch k { case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -304,8 +298,6 @@ func (ec *executionContext) unmarshalInputUpdatePtrToPtrOuter(ctx context.Contex } it.Name = data case "inner": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inner")) data, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) if err != nil { @@ -313,8 +305,6 @@ func (ec *executionContext) unmarshalInputUpdatePtrToPtrOuter(ctx context.Contex } it.Inner = data case "stupidInner": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stupidInner")) data, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) if err != nil { diff --git a/codegen/testserver/followschema/schema.generated.go b/codegen/testserver/followschema/schema.generated.go index 01387a495da..79fa9c432b6 100644 --- a/codegen/testserver/followschema/schema.generated.go +++ b/codegen/testserver/followschema/schema.generated.go @@ -5784,8 +5784,6 @@ func (ec *executionContext) unmarshalInputChanges(ctx context.Context, obj inter } switch k { case "a": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("a")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -5793,8 +5791,6 @@ func (ec *executionContext) unmarshalInputChanges(ctx context.Context, obj inter } it["a"] = data case "b": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("b")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -5822,8 +5818,6 @@ func (ec *executionContext) unmarshalInputInnerInput(ctx context.Context, obj in } switch k { case "id": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) data, err := ec.unmarshalNInt2int(ctx, v) if err != nil { @@ -5851,8 +5845,6 @@ func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, ob } switch k { case "id": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { @@ -5860,8 +5852,6 @@ func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, ob } it.ID = graphql.OmittableOf(data) case "bool": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bool")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -5869,8 +5859,6 @@ func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, ob } it.Bool = graphql.OmittableOf(data) case "str": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("str")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -5878,8 +5866,6 @@ func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, ob } it.Str = graphql.OmittableOf(data) case "int": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("int")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -5887,8 +5873,6 @@ func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, ob } it.Int = graphql.OmittableOf(data) case "time": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("time")) data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { @@ -5896,8 +5880,6 @@ func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, ob } it.Time = graphql.OmittableOf(data) case "enum": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enum")) data, err := ec.unmarshalOStatus2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐStatus(ctx, v) if err != nil { @@ -5905,8 +5887,6 @@ func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, ob } it.Enum = graphql.OmittableOf(data) case "scalar": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scalar")) data, err := ec.unmarshalOThirdParty2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐThirdParty(ctx, v) if err != nil { @@ -5914,8 +5894,6 @@ func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, ob } it.Scalar = graphql.OmittableOf(data) case "object": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("object")) data, err := ec.unmarshalOOuterInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐOuterInput(ctx, v) if err != nil { @@ -5943,8 +5921,6 @@ func (ec *executionContext) unmarshalInputOuterInput(ctx context.Context, obj in } switch k { case "inner": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inner")) data, err := ec.unmarshalNInnerInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInnerInput(ctx, v) if err != nil { @@ -5972,8 +5948,6 @@ func (ec *executionContext) unmarshalInputRecursiveInputSlice(ctx context.Contex } switch k { case "self": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("self")) data, err := ec.unmarshalORecursiveInputSlice2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐRecursiveInputSliceᚄ(ctx, v) if err != nil { diff --git a/codegen/testserver/followschema/validtypes.generated.go b/codegen/testserver/followschema/validtypes.generated.go index 0fdd873b3ea..481180f2055 100644 --- a/codegen/testserver/followschema/validtypes.generated.go +++ b/codegen/testserver/followschema/validtypes.generated.go @@ -563,8 +563,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } switch k { case "break": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("break")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -572,8 +570,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Break = data case "default": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -581,8 +577,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Default = data case "func": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("func")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -590,8 +584,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Func = data case "interface": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interface")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -599,8 +591,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Interface = data case "select": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("select")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -608,8 +598,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Select = data case "case": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("case")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -617,8 +605,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Case = data case "defer": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defer")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -626,8 +612,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Defer = data case "go": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("go")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -635,8 +619,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Go = data case "map": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("map")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -644,8 +626,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Map = data case "struct": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("struct")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -653,8 +633,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Struct = data case "chan": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chan")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -662,8 +640,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Chan = data case "else": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("else")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -671,8 +647,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Else = data case "goto": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("goto")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -680,8 +654,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Goto = data case "package": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("package")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -689,8 +661,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Package = data case "switch": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("switch")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -698,8 +668,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Switch = data case "const": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("const")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -707,8 +675,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Const = data case "fallthrough": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fallthrough")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -716,8 +682,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Fallthrough = data case "if": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("if")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -725,8 +689,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.If = data case "range": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("range")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -734,8 +696,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Range = data case "type": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -743,8 +703,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Type = data case "continue": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("continue")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -752,8 +710,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Continue = data case "for": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("for")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -761,8 +717,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.For = data case "import": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("import")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -770,8 +724,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Import = data case "return": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("return")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -779,8 +731,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Return = data case "var": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("var")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -788,8 +738,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Var = data case "_": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { diff --git a/codegen/testserver/singlefile/generated.go b/codegen/testserver/singlefile/generated.go index f260711bfb6..3b7c53d98ee 100644 --- a/codegen/testserver/singlefile/generated.go +++ b/codegen/testserver/singlefile/generated.go @@ -14967,8 +14967,6 @@ func (ec *executionContext) unmarshalInputChanges(ctx context.Context, obj inter } switch k { case "a": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("a")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -14976,8 +14974,6 @@ func (ec *executionContext) unmarshalInputChanges(ctx context.Context, obj inter } it["a"] = data case "b": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("b")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -15012,8 +15008,6 @@ func (ec *executionContext) unmarshalInputDefaultInput(ctx context.Context, obj } switch k { case "falsyBoolean": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("falsyBoolean")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -15021,8 +15015,6 @@ func (ec *executionContext) unmarshalInputDefaultInput(ctx context.Context, obj } it.FalsyBoolean = data case "truthyBoolean": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("truthyBoolean")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -15050,8 +15042,6 @@ func (ec *executionContext) unmarshalInputFieldsOrderInput(ctx context.Context, } switch k { case "firstField": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstField")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -15059,8 +15049,6 @@ func (ec *executionContext) unmarshalInputFieldsOrderInput(ctx context.Context, } it.FirstField = data case "overrideFirstField": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("overrideFirstField")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -15090,8 +15078,6 @@ func (ec *executionContext) unmarshalInputInnerDirectives(ctx context.Context, o } switch k { case "message": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("message")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, v) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -15140,8 +15126,6 @@ func (ec *executionContext) unmarshalInputInnerInput(ctx context.Context, obj in } switch k { case "id": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) data, err := ec.unmarshalNInt2int(ctx, v) if err != nil { @@ -15169,8 +15153,6 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o } switch k { case "text": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, v) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -15209,8 +15191,6 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o return it, graphql.ErrorOnPath(ctx, err) } case "nullableText": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nullableText")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(ctx, v) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -15239,8 +15219,6 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o return it, graphql.ErrorOnPath(ctx, err) } case "inner": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inner")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerDirectives(ctx, v) @@ -15265,8 +15243,6 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o return it, graphql.ErrorOnPath(ctx, err) } case "innerNullable": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("innerNullable")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerDirectives(ctx, v) @@ -15291,8 +15267,6 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o return it, graphql.ErrorOnPath(ctx, err) } case "thirdParty": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("thirdParty")) directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOThirdParty2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐThirdParty(ctx, v) @@ -15351,8 +15325,6 @@ func (ec *executionContext) unmarshalInputInputWithEnumValue(ctx context.Context } switch k { case "enum": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enum")) data, err := ec.unmarshalNEnumTest2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEnumTest(ctx, v) if err != nil { @@ -15380,8 +15352,6 @@ func (ec *executionContext) unmarshalInputMapNestedInput(ctx context.Context, ob } switch k { case "value": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) data, err := ec.unmarshalNCustomScalar2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCustomScalar(ctx, v) if err != nil { @@ -15409,8 +15379,6 @@ func (ec *executionContext) unmarshalInputMapStringInterfaceInput(ctx context.Co } switch k { case "a": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("a")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15418,8 +15386,6 @@ func (ec *executionContext) unmarshalInputMapStringInterfaceInput(ctx context.Co } it["a"] = data case "b": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("b")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -15427,8 +15393,6 @@ func (ec *executionContext) unmarshalInputMapStringInterfaceInput(ctx context.Co } it["b"] = data case "c": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("c")) data, err := ec.unmarshalOCustomScalar2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCustomScalar(ctx, v) if err != nil { @@ -15436,8 +15400,6 @@ func (ec *executionContext) unmarshalInputMapStringInterfaceInput(ctx context.Co } it["c"] = data case "nested": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nested")) data, err := ec.unmarshalOMapNestedInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMapNested(ctx, v) if err != nil { @@ -15465,8 +15427,6 @@ func (ec *executionContext) unmarshalInputNestedInput(ctx context.Context, obj i } switch k { case "field": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) data, err := ec.unmarshalNEmail2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmail(ctx, v) if err != nil { @@ -15494,8 +15454,6 @@ func (ec *executionContext) unmarshalInputNestedMapInput(ctx context.Context, ob } switch k { case "map": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("map")) data, err := ec.unmarshalOMapStringInterfaceInput2map(ctx, v) if err != nil { @@ -15523,8 +15481,6 @@ func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, ob } switch k { case "id": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { @@ -15532,8 +15488,6 @@ func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, ob } it.ID = graphql.OmittableOf(data) case "bool": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bool")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -15541,8 +15495,6 @@ func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, ob } it.Bool = graphql.OmittableOf(data) case "str": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("str")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -15550,8 +15502,6 @@ func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, ob } it.Str = graphql.OmittableOf(data) case "int": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("int")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -15559,8 +15509,6 @@ func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, ob } it.Int = graphql.OmittableOf(data) case "time": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("time")) data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { @@ -15568,8 +15516,6 @@ func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, ob } it.Time = graphql.OmittableOf(data) case "enum": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enum")) data, err := ec.unmarshalOStatus2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStatus(ctx, v) if err != nil { @@ -15577,8 +15523,6 @@ func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, ob } it.Enum = graphql.OmittableOf(data) case "scalar": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scalar")) data, err := ec.unmarshalOThirdParty2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐThirdParty(ctx, v) if err != nil { @@ -15586,8 +15530,6 @@ func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, ob } it.Scalar = graphql.OmittableOf(data) case "object": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("object")) data, err := ec.unmarshalOOuterInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx, v) if err != nil { @@ -15615,8 +15557,6 @@ func (ec *executionContext) unmarshalInputOuterInput(ctx context.Context, obj in } switch k { case "inner": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inner")) data, err := ec.unmarshalNInnerInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerInput(ctx, v) if err != nil { @@ -15644,8 +15584,6 @@ func (ec *executionContext) unmarshalInputRecursiveInputSlice(ctx context.Contex } switch k { case "self": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("self")) data, err := ec.unmarshalORecursiveInputSlice2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSliceᚄ(ctx, v) if err != nil { @@ -15673,8 +15611,6 @@ func (ec *executionContext) unmarshalInputSpecialInput(ctx context.Context, obj } switch k { case "nesting": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nesting")) data, err := ec.unmarshalNNestedInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNestedInput(ctx, v) if err != nil { @@ -15702,8 +15638,6 @@ func (ec *executionContext) unmarshalInputUpdatePtrToPtrInner(ctx context.Contex } switch k { case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -15711,8 +15645,6 @@ func (ec *executionContext) unmarshalInputUpdatePtrToPtrInner(ctx context.Contex } it.Key = data case "value": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -15740,8 +15672,6 @@ func (ec *executionContext) unmarshalInputUpdatePtrToPtrOuter(ctx context.Contex } switch k { case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -15749,8 +15679,6 @@ func (ec *executionContext) unmarshalInputUpdatePtrToPtrOuter(ctx context.Contex } it.Name = data case "inner": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inner")) data, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) if err != nil { @@ -15758,8 +15686,6 @@ func (ec *executionContext) unmarshalInputUpdatePtrToPtrOuter(ctx context.Contex } it.Inner = data case "stupidInner": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stupidInner")) data, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) if err != nil { @@ -15787,8 +15713,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } switch k { case "break": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("break")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15796,8 +15720,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Break = data case "default": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15805,8 +15727,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Default = data case "func": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("func")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15814,8 +15734,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Func = data case "interface": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interface")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15823,8 +15741,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Interface = data case "select": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("select")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15832,8 +15748,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Select = data case "case": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("case")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15841,8 +15755,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Case = data case "defer": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defer")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15850,8 +15762,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Defer = data case "go": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("go")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15859,8 +15769,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Go = data case "map": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("map")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15868,8 +15776,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Map = data case "struct": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("struct")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15877,8 +15783,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Struct = data case "chan": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chan")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15886,8 +15790,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Chan = data case "else": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("else")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15895,8 +15797,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Else = data case "goto": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("goto")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15904,8 +15804,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Goto = data case "package": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("package")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15913,8 +15811,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Package = data case "switch": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("switch")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15922,8 +15818,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Switch = data case "const": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("const")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15931,8 +15825,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Const = data case "fallthrough": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fallthrough")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15940,8 +15832,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Fallthrough = data case "if": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("if")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15949,8 +15839,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.If = data case "range": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("range")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15958,8 +15846,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Range = data case "type": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15967,8 +15853,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Type = data case "continue": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("continue")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15976,8 +15860,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Continue = data case "for": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("for")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15985,8 +15867,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.For = data case "import": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("import")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -15994,8 +15874,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Import = data case "return": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("return")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -16003,8 +15881,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Return = data case "var": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("var")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -16012,8 +15888,6 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in } it.Var = data case "_": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { diff --git a/integration/server/generated.go b/integration/server/generated.go index 7b2c5c3ee14..6f03c48a8ba 100644 --- a/integration/server/generated.go +++ b/integration/server/generated.go @@ -3123,8 +3123,6 @@ func (ec *executionContext) unmarshalInputDateFilter(ctx context.Context, obj in } switch k { case "value": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -3132,8 +3130,6 @@ func (ec *executionContext) unmarshalInputDateFilter(ctx context.Context, obj in } it.Value = data case "timezone": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("timezone")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -3141,8 +3137,6 @@ func (ec *executionContext) unmarshalInputDateFilter(ctx context.Context, obj in } it.Timezone = data case "op": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("op")) data, err := ec.unmarshalODATE_FILTER_OP2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐDateFilterOp(ctx, v) if err != nil { @@ -3170,8 +3164,6 @@ func (ec *executionContext) unmarshalInputListCoercion(ctx context.Context, obj } switch k { case "enumVal": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enumVal")) data, err := ec.unmarshalOErrorType2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐErrorType(ctx, v) if err != nil { @@ -3179,8 +3171,6 @@ func (ec *executionContext) unmarshalInputListCoercion(ctx context.Context, obj } it.EnumVal = data case "strVal": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("strVal")) data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) if err != nil { @@ -3188,8 +3178,6 @@ func (ec *executionContext) unmarshalInputListCoercion(ctx context.Context, obj } it.StrVal = data case "intVal": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("intVal")) data, err := ec.unmarshalOInt2ᚕᚖint(ctx, v) if err != nil { @@ -3197,8 +3185,6 @@ func (ec *executionContext) unmarshalInputListCoercion(ctx context.Context, obj } it.IntVal = data case "scalarVal": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scalarVal")) data, err := ec.unmarshalOMap2ᚕmap(ctx, v) if err != nil { diff --git a/plugin/federation/testdata/entityresolver/generated/exec.go b/plugin/federation/testdata/entityresolver/generated/exec.go index 25a9f93d9b5..c441232778d 100644 --- a/plugin/federation/testdata/entityresolver/generated/exec.go +++ b/plugin/federation/testdata/entityresolver/generated/exec.go @@ -5822,8 +5822,6 @@ func (ec *executionContext) unmarshalInputMultiHelloByNamesInput(ctx context.Con } switch k { case "Name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Name")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -5851,8 +5849,6 @@ func (ec *executionContext) unmarshalInputMultiHelloMultipleRequiresByNamesInput } switch k { case "Name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Name")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -5880,8 +5876,6 @@ func (ec *executionContext) unmarshalInputMultiHelloRequiresByNamesInput(ctx con } switch k { case "Name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Name")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -5909,8 +5903,6 @@ func (ec *executionContext) unmarshalInputMultiHelloWithErrorByNamesInput(ctx co } switch k { case "Name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Name")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -5938,8 +5930,6 @@ func (ec *executionContext) unmarshalInputMultiPlanetRequiresNestedByNamesInput( } switch k { case "Name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Name")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil {