diff --git a/codegen/args.gotpl b/codegen/args.gotpl index afe5803280..b25d444b50 100644 --- a/codegen/args.gotpl +++ b/codegen/args.gotpl @@ -5,11 +5,11 @@ func (ec *executionContext) {{ $name }}(ctx context.Context, rawArgs map[string] {{- range $i, $arg := . }} var arg{{$i}} {{ $arg.TypeReference.GO | ref}} if tmp, ok := rawArgs[{{$arg.Name|quote}}]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField({{$arg.Name|quote}})) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField({{$arg.Name|quote}})) {{- if $arg.ImplDirectives }} - directive0 := func(ctx context.Context) (interface{}, error) { return ec.{{ $arg.TypeReference.UnmarshalFunc }}(childCtx, tmp) } + directive0 := func(ctx context.Context) (interface{}, error) { return ec.{{ $arg.TypeReference.UnmarshalFunc }}(ctx, tmp) } {{ template "implDirectives" $arg }} - tmp, err = directive{{$arg.ImplDirectives|len}}(childCtx) + tmp, err = directive{{$arg.ImplDirectives|len}}(ctx) if err != nil { return nil, err } @@ -23,7 +23,7 @@ func (ec *executionContext) {{ $name }}(ctx context.Context, rawArgs map[string] return nil, fmt.Errorf(`unexpected type %T from directive, should be {{ $arg.TypeReference.GO }}`, tmp) } {{- else }} - arg{{$i}}, err = ec.{{ $arg.TypeReference.UnmarshalFunc }}(childCtx, tmp) + arg{{$i}}, err = ec.{{ $arg.TypeReference.UnmarshalFunc }}(ctx, tmp) if err != nil { return nil, err } diff --git a/codegen/input.gotpl b/codegen/input.gotpl index 815f466bb8..56f9347c42 100644 --- a/codegen/input.gotpl +++ b/codegen/input.gotpl @@ -17,11 +17,11 @@ case {{$field.Name|quote}}: var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField({{$field.Name|quote}})) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField({{$field.Name|quote}})) {{- if $field.ImplDirectives }} - directive0 := func(ctx context.Context) (interface{}, error) { return ec.{{ $field.TypeReference.UnmarshalFunc }}(childCtx, v) } + directive0 := func(ctx context.Context) (interface{}, error) { return ec.{{ $field.TypeReference.UnmarshalFunc }}(ctx, v) } {{ template "implDirectives" $field }} - tmp, err := directive{{$field.ImplDirectives|len}}(childCtx) + tmp, err := directive{{$field.ImplDirectives|len}}(ctx) if err != nil { return it, err } @@ -35,7 +35,7 @@ return it, fmt.Errorf(`unexpected type %T from directive, should be {{ $field.TypeReference.GO }}`, tmp) } {{- else }} - it.{{$field.GoFieldName}}, err = ec.{{ $field.TypeReference.UnmarshalFunc }}(childCtx, v) + it.{{$field.GoFieldName}}, err = ec.{{ $field.TypeReference.UnmarshalFunc }}(ctx, v) if err != nil { return it, err } diff --git a/codegen/testserver/generated.go b/codegen/testserver/generated.go index f2c8434bb2..584ff77306 100644 --- a/codegen/testserver/generated.go +++ b/codegen/testserver/generated.go @@ -2339,8 +2339,8 @@ func (ec *executionContext) dir_length_args(ctx context.Context, rawArgs map[str args := map[string]interface{}{} var arg0 int if tmp, ok := rawArgs["min"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("min")) - arg0, err = ec.unmarshalNInt2int(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("min")) + arg0, err = ec.unmarshalNInt2int(ctx, tmp) if err != nil { return nil, err } @@ -2348,8 +2348,8 @@ func (ec *executionContext) dir_length_args(ctx context.Context, rawArgs map[str args["min"] = arg0 var arg1 *int if tmp, ok := rawArgs["max"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("max")) - arg1, err = ec.unmarshalOInt2ᚖint(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("max")) + arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) if err != nil { return nil, err } @@ -2357,8 +2357,8 @@ func (ec *executionContext) dir_length_args(ctx context.Context, rawArgs map[str args["max"] = arg1 var arg2 *string if tmp, ok := rawArgs["message"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("message")) - arg2, err = ec.unmarshalOString2ᚖstring(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("message")) + arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) if err != nil { return nil, err } @@ -2372,8 +2372,8 @@ func (ec *executionContext) dir_logged_args(ctx context.Context, rawArgs map[str args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["id"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) - arg0, err = ec.unmarshalNUUID2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) + arg0, err = ec.unmarshalNUUID2string(ctx, tmp) if err != nil { return nil, err } @@ -2387,8 +2387,8 @@ func (ec *executionContext) dir_order_args(ctx context.Context, rawArgs map[stri args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["location"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("location")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("location")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -2402,8 +2402,8 @@ func (ec *executionContext) dir_range_args(ctx context.Context, rawArgs map[stri args := map[string]interface{}{} var arg0 *int if tmp, ok := rawArgs["min"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("min")) - arg0, err = ec.unmarshalOInt2ᚖint(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("min")) + arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) if err != nil { return nil, err } @@ -2411,8 +2411,8 @@ func (ec *executionContext) dir_range_args(ctx context.Context, rawArgs map[stri args["min"] = arg0 var arg1 *int if tmp, ok := rawArgs["max"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("max")) - arg1, err = ec.unmarshalOInt2ᚖint(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("max")) + arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) if err != nil { return nil, err } @@ -2426,8 +2426,8 @@ func (ec *executionContext) field_Mutation_updateSomething_args(ctx context.Cont args := map[string]interface{}{} var arg0 SpecialInput if tmp, ok := rawArgs["input"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("input")) - arg0, err = ec.unmarshalNSpecialInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐSpecialInput(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("input")) + arg0, err = ec.unmarshalNSpecialInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐSpecialInput(ctx, tmp) if err != nil { return nil, err } @@ -2441,8 +2441,8 @@ func (ec *executionContext) field_Panics_argUnmarshal_args(ctx context.Context, args := map[string]interface{}{} var arg0 []MarshalPanic if tmp, ok := rawArgs["u"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("u")) - arg0, err = ec.unmarshalNMarshalPanic2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐMarshalPanicᚄ(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("u")) + arg0, err = ec.unmarshalNMarshalPanic2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐMarshalPanicᚄ(ctx, tmp) if err != nil { return nil, err } @@ -2456,8 +2456,8 @@ func (ec *executionContext) field_Panics_fieldFuncMarshal_args(ctx context.Conte args := map[string]interface{}{} var arg0 []MarshalPanic if tmp, ok := rawArgs["u"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("u")) - arg0, err = ec.unmarshalNMarshalPanic2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐMarshalPanicᚄ(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("u")) + arg0, err = ec.unmarshalNMarshalPanic2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐMarshalPanicᚄ(ctx, tmp) if err != nil { return nil, err } @@ -2471,8 +2471,8 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["name"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -2486,8 +2486,8 @@ func (ec *executionContext) field_Query_defaultScalar_args(ctx context.Context, args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["arg"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) - arg0, err = ec.unmarshalNDefaultScalarImplementation2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) + arg0, err = ec.unmarshalNDefaultScalarImplementation2string(ctx, tmp) if err != nil { return nil, err } @@ -2501,8 +2501,8 @@ func (ec *executionContext) field_Query_directiveArg_args(ctx context.Context, r args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["arg"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) - directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(childCtx, tmp) } + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) + directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, tmp) } directive1 := func(ctx context.Context) (interface{}, error) { min, err := ec.unmarshalNInt2int(ctx, 1) if err != nil { @@ -2522,7 +2522,7 @@ func (ec *executionContext) field_Query_directiveArg_args(ctx context.Context, r return ec.directives.Length(ctx, rawArgs, directive0, min, max, message) } - tmp, err = directive1(childCtx) + tmp, err = directive1(ctx) if err != nil { return nil, err } @@ -2541,8 +2541,8 @@ func (ec *executionContext) field_Query_directiveFieldDef_args(ctx context.Conte args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["ret"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("ret")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("ret")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -2556,8 +2556,8 @@ func (ec *executionContext) field_Query_directiveInputNullable_args(ctx context. args := map[string]interface{}{} var arg0 *InputDirectives if tmp, ok := rawArgs["arg"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) - arg0, err = ec.unmarshalOInputDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐInputDirectives(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) + arg0, err = ec.unmarshalOInputDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐInputDirectives(ctx, tmp) if err != nil { return nil, err } @@ -2571,9 +2571,9 @@ func (ec *executionContext) field_Query_directiveInputType_args(ctx context.Cont args := map[string]interface{}{} var arg0 InnerInput if tmp, ok := rawArgs["arg"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) directive0 := func(ctx context.Context) (interface{}, error) { - return ec.unmarshalNInnerInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐInnerInput(childCtx, tmp) + return ec.unmarshalNInnerInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐInnerInput(ctx, tmp) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.Custom == nil { @@ -2582,7 +2582,7 @@ func (ec *executionContext) field_Query_directiveInputType_args(ctx context.Cont return ec.directives.Custom(ctx, rawArgs, directive0) } - tmp, err = directive1(childCtx) + tmp, err = directive1(ctx) if err != nil { return nil, err } @@ -2601,8 +2601,8 @@ func (ec *executionContext) field_Query_directiveInput_args(ctx context.Context, args := map[string]interface{}{} var arg0 InputDirectives if tmp, ok := rawArgs["arg"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) - arg0, err = ec.unmarshalNInputDirectives2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐInputDirectives(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) + arg0, err = ec.unmarshalNInputDirectives2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐInputDirectives(ctx, tmp) if err != nil { return nil, err } @@ -2616,8 +2616,8 @@ func (ec *executionContext) field_Query_directiveNullableArg_args(ctx context.Co args := map[string]interface{}{} var arg0 *int if tmp, ok := rawArgs["arg"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) - directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOInt2ᚖint(childCtx, tmp) } + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) + directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOInt2ᚖint(ctx, tmp) } directive1 := func(ctx context.Context) (interface{}, error) { min, err := ec.unmarshalOInt2ᚖint(ctx, 0) if err != nil { @@ -2629,7 +2629,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_args(ctx context.Co return ec.directives.Range(ctx, rawArgs, directive0, min, nil) } - tmp, err = directive1(childCtx) + tmp, err = directive1(ctx) if err != nil { return nil, err } @@ -2644,8 +2644,8 @@ func (ec *executionContext) field_Query_directiveNullableArg_args(ctx context.Co args["arg"] = arg0 var arg1 *int if tmp, ok := rawArgs["arg2"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg2")) - directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOInt2ᚖint(childCtx, tmp) } + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg2")) + directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOInt2ᚖint(ctx, tmp) } directive1 := func(ctx context.Context) (interface{}, error) { min, err := ec.unmarshalOInt2ᚖint(ctx, 0) if err != nil { @@ -2657,7 +2657,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_args(ctx context.Co return ec.directives.Range(ctx, rawArgs, directive0, min, nil) } - tmp, err = directive1(childCtx) + tmp, err = directive1(ctx) if err != nil { return nil, err } @@ -2672,8 +2672,8 @@ func (ec *executionContext) field_Query_directiveNullableArg_args(ctx context.Co args["arg2"] = arg1 var arg2 *string if tmp, ok := rawArgs["arg3"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg3")) - directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(childCtx, tmp) } + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg3")) + directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(ctx, tmp) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.ToNull == nil { return nil, errors.New("directive toNull is not implemented") @@ -2681,7 +2681,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_args(ctx context.Co return ec.directives.ToNull(ctx, rawArgs, directive0) } - tmp, err = directive1(childCtx) + tmp, err = directive1(ctx) if err != nil { return nil, err } @@ -2702,8 +2702,8 @@ func (ec *executionContext) field_Query_enumInInput_args(ctx context.Context, ra args := map[string]interface{}{} var arg0 *InputWithEnumValue if tmp, ok := rawArgs["input"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("input")) - arg0, err = ec.unmarshalOInputWithEnumValue2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐInputWithEnumValue(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("input")) + arg0, err = ec.unmarshalOInputWithEnumValue2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐInputWithEnumValue(ctx, tmp) if err != nil { return nil, err } @@ -2717,8 +2717,8 @@ func (ec *executionContext) field_Query_fallback_args(ctx context.Context, rawAr args := map[string]interface{}{} var arg0 FallbackToStringEncoding if tmp, ok := rawArgs["arg"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) - arg0, err = ec.unmarshalNFallbackToStringEncoding2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐFallbackToStringEncoding(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) + arg0, err = ec.unmarshalNFallbackToStringEncoding2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐFallbackToStringEncoding(ctx, tmp) if err != nil { return nil, err } @@ -2732,8 +2732,8 @@ func (ec *executionContext) field_Query_inputNullableSlice_args(ctx context.Cont args := map[string]interface{}{} var arg0 []string if tmp, ok := rawArgs["arg"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) - arg0, err = ec.unmarshalOString2ᚕstringᚄ(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) + arg0, err = ec.unmarshalOString2ᚕstringᚄ(ctx, tmp) if err != nil { return nil, err } @@ -2747,8 +2747,8 @@ func (ec *executionContext) field_Query_inputSlice_args(ctx context.Context, raw args := map[string]interface{}{} var arg0 []string if tmp, ok := rawArgs["arg"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) - arg0, err = ec.unmarshalNString2ᚕstringᚄ(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) + arg0, err = ec.unmarshalNString2ᚕstringᚄ(ctx, tmp) if err != nil { return nil, err } @@ -2762,8 +2762,8 @@ func (ec *executionContext) field_Query_mapInput_args(ctx context.Context, rawAr args := map[string]interface{}{} var arg0 map[string]interface{} if tmp, ok := rawArgs["input"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("input")) - arg0, err = ec.unmarshalOChanges2map(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("input")) + arg0, err = ec.unmarshalOChanges2map(ctx, tmp) if err != nil { return nil, err } @@ -2777,8 +2777,8 @@ func (ec *executionContext) field_Query_mapNestedStringInterface_args(ctx contex args := map[string]interface{}{} var arg0 *NestedMapInput if tmp, ok := rawArgs["in"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("in")) - arg0, err = ec.unmarshalONestedMapInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐNestedMapInput(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("in")) + arg0, err = ec.unmarshalONestedMapInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐNestedMapInput(ctx, tmp) if err != nil { return nil, err } @@ -2792,8 +2792,8 @@ func (ec *executionContext) field_Query_mapStringInterface_args(ctx context.Cont args := map[string]interface{}{} var arg0 map[string]interface{} if tmp, ok := rawArgs["in"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("in")) - arg0, err = ec.unmarshalOMapStringInterfaceInput2map(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("in")) + arg0, err = ec.unmarshalOMapStringInterfaceInput2map(ctx, tmp) if err != nil { return nil, err } @@ -2807,8 +2807,8 @@ func (ec *executionContext) field_Query_nestedInputs_args(ctx context.Context, r args := map[string]interface{}{} var arg0 [][]*OuterInput if tmp, ok := rawArgs["input"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("input")) - arg0, err = ec.unmarshalOOuterInput2ᚕᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐOuterInput(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("input")) + arg0, err = ec.unmarshalOOuterInput2ᚕᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐOuterInput(ctx, tmp) if err != nil { return nil, err } @@ -2822,8 +2822,8 @@ func (ec *executionContext) field_Query_nullableArg_args(ctx context.Context, ra args := map[string]interface{}{} var arg0 *int if tmp, ok := rawArgs["arg"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) - arg0, err = ec.unmarshalOInt2ᚖint(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) + arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) if err != nil { return nil, err } @@ -2837,8 +2837,8 @@ func (ec *executionContext) field_Query_recursive_args(ctx context.Context, rawA args := map[string]interface{}{} var arg0 *RecursiveInputSlice if tmp, ok := rawArgs["input"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("input")) - arg0, err = ec.unmarshalORecursiveInputSlice2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐRecursiveInputSlice(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("input")) + arg0, err = ec.unmarshalORecursiveInputSlice2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐRecursiveInputSlice(ctx, tmp) if err != nil { return nil, err } @@ -2852,8 +2852,8 @@ func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs m args := map[string]interface{}{} var arg0 int if tmp, ok := rawArgs["id"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) - arg0, err = ec.unmarshalNInt2int(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) + arg0, err = ec.unmarshalNInt2int(ctx, tmp) if err != nil { return nil, err } @@ -2867,8 +2867,8 @@ func (ec *executionContext) field_Subscription_directiveArg_args(ctx context.Con args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["arg"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) - directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(childCtx, tmp) } + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) + directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, tmp) } directive1 := func(ctx context.Context) (interface{}, error) { min, err := ec.unmarshalNInt2int(ctx, 1) if err != nil { @@ -2888,7 +2888,7 @@ func (ec *executionContext) field_Subscription_directiveArg_args(ctx context.Con return ec.directives.Length(ctx, rawArgs, directive0, min, max, message) } - tmp, err = directive1(childCtx) + tmp, err = directive1(ctx) if err != nil { return nil, err } @@ -2907,8 +2907,8 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_args(ctx con args := map[string]interface{}{} var arg0 *int if tmp, ok := rawArgs["arg"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) - directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOInt2ᚖint(childCtx, tmp) } + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg")) + directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOInt2ᚖint(ctx, tmp) } directive1 := func(ctx context.Context) (interface{}, error) { min, err := ec.unmarshalOInt2ᚖint(ctx, 0) if err != nil { @@ -2920,7 +2920,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_args(ctx con return ec.directives.Range(ctx, rawArgs, directive0, min, nil) } - tmp, err = directive1(childCtx) + tmp, err = directive1(ctx) if err != nil { return nil, err } @@ -2935,8 +2935,8 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_args(ctx con args["arg"] = arg0 var arg1 *int if tmp, ok := rawArgs["arg2"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg2")) - directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOInt2ᚖint(childCtx, tmp) } + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg2")) + directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOInt2ᚖint(ctx, tmp) } directive1 := func(ctx context.Context) (interface{}, error) { min, err := ec.unmarshalOInt2ᚖint(ctx, 0) if err != nil { @@ -2948,7 +2948,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_args(ctx con return ec.directives.Range(ctx, rawArgs, directive0, min, nil) } - tmp, err = directive1(childCtx) + tmp, err = directive1(ctx) if err != nil { return nil, err } @@ -2963,8 +2963,8 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_args(ctx con args["arg2"] = arg1 var arg2 *string if tmp, ok := rawArgs["arg3"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg3")) - directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(childCtx, tmp) } + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("arg3")) + directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(ctx, tmp) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.ToNull == nil { return nil, errors.New("directive toNull is not implemented") @@ -2972,7 +2972,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_args(ctx con return ec.directives.ToNull(ctx, rawArgs, directive0) } - tmp, err = directive1(childCtx) + tmp, err = directive1(ctx) if err != nil { return nil, err } @@ -2993,8 +2993,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["break"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("break")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("break")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3002,8 +3002,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["break"] = arg0 var arg1 string if tmp, ok := rawArgs["default"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("default")) - arg1, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("default")) + arg1, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3011,8 +3011,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["default"] = arg1 var arg2 string if tmp, ok := rawArgs["func"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("func")) - arg2, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("func")) + arg2, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3020,8 +3020,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["func"] = arg2 var arg3 string if tmp, ok := rawArgs["interface"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("interface")) - arg3, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("interface")) + arg3, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3029,8 +3029,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["interface"] = arg3 var arg4 string if tmp, ok := rawArgs["select"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("select")) - arg4, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("select")) + arg4, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3038,8 +3038,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["select"] = arg4 var arg5 string if tmp, ok := rawArgs["case"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("case")) - arg5, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("case")) + arg5, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3047,8 +3047,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["case"] = arg5 var arg6 string if tmp, ok := rawArgs["defer"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("defer")) - arg6, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("defer")) + arg6, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3056,8 +3056,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["defer"] = arg6 var arg7 string if tmp, ok := rawArgs["go"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("go")) - arg7, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("go")) + arg7, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3065,8 +3065,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["go"] = arg7 var arg8 string if tmp, ok := rawArgs["map"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("map")) - arg8, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("map")) + arg8, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3074,8 +3074,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["map"] = arg8 var arg9 string if tmp, ok := rawArgs["struct"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("struct")) - arg9, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("struct")) + arg9, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3083,8 +3083,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["struct"] = arg9 var arg10 string if tmp, ok := rawArgs["chan"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("chan")) - arg10, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("chan")) + arg10, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3092,8 +3092,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["chan"] = arg10 var arg11 string if tmp, ok := rawArgs["else"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("else")) - arg11, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("else")) + arg11, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3101,8 +3101,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["else"] = arg11 var arg12 string if tmp, ok := rawArgs["goto"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("goto")) - arg12, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("goto")) + arg12, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3110,8 +3110,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["goto"] = arg12 var arg13 string if tmp, ok := rawArgs["package"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("package")) - arg13, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("package")) + arg13, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3119,8 +3119,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["package"] = arg13 var arg14 string if tmp, ok := rawArgs["switch"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("switch")) - arg14, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("switch")) + arg14, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3128,8 +3128,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["switch"] = arg14 var arg15 string if tmp, ok := rawArgs["const"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("const")) - arg15, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("const")) + arg15, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3137,8 +3137,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["const"] = arg15 var arg16 string if tmp, ok := rawArgs["fallthrough"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("fallthrough")) - arg16, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("fallthrough")) + arg16, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3146,8 +3146,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["fallthrough"] = arg16 var arg17 string if tmp, ok := rawArgs["if"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("if")) - arg17, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("if")) + arg17, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3155,8 +3155,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["if"] = arg17 var arg18 string if tmp, ok := rawArgs["range"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("range")) - arg18, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("range")) + arg18, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3164,8 +3164,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["range"] = arg18 var arg19 string if tmp, ok := rawArgs["type"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("type")) - arg19, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("type")) + arg19, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3173,8 +3173,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["type"] = arg19 var arg20 string if tmp, ok := rawArgs["continue"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("continue")) - arg20, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("continue")) + arg20, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3182,8 +3182,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["continue"] = arg20 var arg21 string if tmp, ok := rawArgs["for"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("for")) - arg21, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("for")) + arg21, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3191,8 +3191,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["for"] = arg21 var arg22 string if tmp, ok := rawArgs["import"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("import")) - arg22, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("import")) + arg22, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3200,8 +3200,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["import"] = arg22 var arg23 string if tmp, ok := rawArgs["return"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("return")) - arg23, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("return")) + arg23, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3209,8 +3209,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["return"] = arg23 var arg24 string if tmp, ok := rawArgs["var"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("var")) - arg24, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("var")) + arg24, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3218,8 +3218,8 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, args["var"] = arg24 var arg25 string if tmp, ok := rawArgs["_"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("_")) - arg25, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("_")) + arg25, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3233,8 +3233,8 @@ func (ec *executionContext) field_ValidType_validInputKeywords_args(ctx context. args := map[string]interface{}{} var arg0 *ValidInput if tmp, ok := rawArgs["input"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("input")) - arg0, err = ec.unmarshalOValidInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐValidInput(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("input")) + arg0, err = ec.unmarshalOValidInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐValidInput(ctx, tmp) if err != nil { return nil, err } @@ -3248,8 +3248,8 @@ func (ec *executionContext) field_WrappedMap_get_args(ctx context.Context, rawAr args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["key"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("key")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("key")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -3263,8 +3263,8 @@ func (ec *executionContext) field_WrappedSlice_get_args(ctx context.Context, raw args := map[string]interface{}{} var arg0 int if tmp, ok := rawArgs["idx"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("idx")) - arg0, err = ec.unmarshalNInt2int(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("idx")) + arg0, err = ec.unmarshalNInt2int(ctx, tmp) if err != nil { return nil, err } @@ -3278,8 +3278,8 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -3293,8 +3293,8 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -9583,8 +9583,8 @@ func (ec *executionContext) unmarshalInputInnerDirectives(ctx context.Context, o case "message": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("message")) - directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(childCtx, v) } + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("message")) + directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, v) } directive1 := func(ctx context.Context) (interface{}, error) { min, err := ec.unmarshalNInt2int(ctx, 1) if err != nil { @@ -9600,7 +9600,7 @@ func (ec *executionContext) unmarshalInputInnerDirectives(ctx context.Context, o return ec.directives.Length(ctx, obj, directive0, min, nil, message) } - tmp, err := directive1(childCtx) + tmp, err := directive1(ctx) if err != nil { return it, err } @@ -9624,8 +9624,8 @@ func (ec *executionContext) unmarshalInputInnerInput(ctx context.Context, obj in case "id": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) - it.ID, err = ec.unmarshalNInt2int(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) + it.ID, err = ec.unmarshalNInt2int(ctx, v) if err != nil { return it, err } @@ -9644,8 +9644,8 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o case "text": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("text")) - directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(childCtx, v) } + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("text")) + directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, v) } directive1 := func(ctx context.Context) (interface{}, error) { min, err := ec.unmarshalNInt2int(ctx, 0) if err != nil { @@ -9665,7 +9665,7 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o return ec.directives.Length(ctx, obj, directive0, min, max, message) } - tmp, err := directive1(childCtx) + tmp, err := directive1(ctx) if err != nil { return it, err } @@ -9677,8 +9677,8 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o case "nullableText": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("nullableText")) - directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(childCtx, v) } + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("nullableText")) + directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(ctx, v) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.ToNull == nil { return nil, errors.New("directive toNull is not implemented") @@ -9686,7 +9686,7 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o return ec.directives.ToNull(ctx, obj, directive0) } - tmp, err := directive1(childCtx) + tmp, err := directive1(ctx) if err != nil { return it, err } @@ -9700,25 +9700,25 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o case "inner": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("inner")) - it.Inner, err = ec.unmarshalNInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐInnerDirectives(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("inner")) + it.Inner, err = ec.unmarshalNInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐInnerDirectives(ctx, v) if err != nil { return it, err } case "innerNullable": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("innerNullable")) - it.InnerNullable, err = ec.unmarshalOInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐInnerDirectives(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("innerNullable")) + it.InnerNullable, err = ec.unmarshalOInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐInnerDirectives(ctx, v) if err != nil { return it, err } case "thirdParty": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("thirdParty")) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("thirdParty")) directive0 := func(ctx context.Context) (interface{}, error) { - return ec.unmarshalOThirdParty2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐThirdParty(childCtx, v) + return ec.unmarshalOThirdParty2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐThirdParty(ctx, v) } directive1 := func(ctx context.Context) (interface{}, error) { min, err := ec.unmarshalNInt2int(ctx, 0) @@ -9735,7 +9735,7 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o return ec.directives.Length(ctx, obj, directive0, min, max, nil) } - tmp, err := directive1(childCtx) + tmp, err := directive1(ctx) if err != nil { return it, err } @@ -9761,8 +9761,8 @@ func (ec *executionContext) unmarshalInputInputWithEnumValue(ctx context.Context case "enum": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("enum")) - it.Enum, err = ec.unmarshalNEnumTest2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐEnumTest(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("enum")) + it.Enum, err = ec.unmarshalNEnumTest2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐEnumTest(ctx, v) if err != nil { return it, err } @@ -9781,8 +9781,8 @@ func (ec *executionContext) unmarshalInputNestedInput(ctx context.Context, obj i case "field": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("field")) - it.Field, err = ec.unmarshalNEmail2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐEmail(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("field")) + it.Field, err = ec.unmarshalNEmail2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐEmail(ctx, v) if err != nil { return it, err } @@ -9801,8 +9801,8 @@ func (ec *executionContext) unmarshalInputNestedMapInput(ctx context.Context, ob case "map": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("map")) - it.Map, err = ec.unmarshalOMapStringInterfaceInput2map(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("map")) + it.Map, err = ec.unmarshalOMapStringInterfaceInput2map(ctx, v) if err != nil { return it, err } @@ -9821,8 +9821,8 @@ func (ec *executionContext) unmarshalInputOuterInput(ctx context.Context, obj in case "inner": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("inner")) - it.Inner, err = ec.unmarshalNInnerInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐInnerInput(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("inner")) + it.Inner, err = ec.unmarshalNInnerInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐInnerInput(ctx, v) if err != nil { return it, err } @@ -9841,8 +9841,8 @@ func (ec *executionContext) unmarshalInputRecursiveInputSlice(ctx context.Contex case "self": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("self")) - it.Self, err = ec.unmarshalORecursiveInputSlice2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐRecursiveInputSliceᚄ(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("self")) + it.Self, err = ec.unmarshalORecursiveInputSlice2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐRecursiveInputSliceᚄ(ctx, v) if err != nil { return it, err } @@ -9861,8 +9861,8 @@ func (ec *executionContext) unmarshalInputSpecialInput(ctx context.Context, obj case "nesting": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("nesting")) - it.Nesting, err = ec.unmarshalNNestedInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐNestedInput(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("nesting")) + it.Nesting, err = ec.unmarshalNNestedInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐNestedInput(ctx, v) if err != nil { return it, err } @@ -9881,208 +9881,208 @@ func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj in case "break": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("break")) - it.Break, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("break")) + it.Break, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "default": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("default")) - it.Default, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("default")) + it.Default, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "func": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("func")) - it.Func, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("func")) + it.Func, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "interface": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("interface")) - it.Interface, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("interface")) + it.Interface, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "select": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("select")) - it.Select, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("select")) + it.Select, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "case": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("case")) - it.Case, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("case")) + it.Case, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "defer": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("defer")) - it.Defer, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("defer")) + it.Defer, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "go": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("go")) - it.Go, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("go")) + it.Go, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "map": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("map")) - it.Map, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("map")) + it.Map, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "struct": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("struct")) - it.Struct, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("struct")) + it.Struct, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "chan": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("chan")) - it.Chan, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("chan")) + it.Chan, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "else": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("else")) - it.Else, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("else")) + it.Else, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "goto": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("goto")) - it.Goto, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("goto")) + it.Goto, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "package": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("package")) - it.Package, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("package")) + it.Package, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "switch": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("switch")) - it.Switch, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("switch")) + it.Switch, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "const": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("const")) - it.Const, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("const")) + it.Const, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "fallthrough": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("fallthrough")) - it.Fallthrough, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("fallthrough")) + it.Fallthrough, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "if": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("if")) - it.If, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("if")) + it.If, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "range": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("range")) - it.Range, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("range")) + it.Range, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "type": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("type")) - it.Type, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("type")) + it.Type, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "continue": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("continue")) - it.Continue, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("continue")) + it.Continue, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "for": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("for")) - it.For, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("for")) + it.For, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "import": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("import")) - it.Import, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("import")) + it.Import, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "return": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("return")) - it.Return, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("return")) + it.Return, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "var": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("var")) - it.Var, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("var")) + it.Var, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "_": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("_")) - it.Underscore, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("_")) + it.Underscore, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } @@ -13133,10 +13133,10 @@ func (ec *executionContext) unmarshalNMarshalPanic2ᚕgithubᚗcomᚋ99designs var err error res := make([]MarshalPanic, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalNMarshalPanic2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐMarshalPanic(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalNMarshalPanic2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐMarshalPanic(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -13300,10 +13300,10 @@ func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalNString2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -13330,10 +13330,10 @@ func (ec *executionContext) unmarshalNString2ᚕᚖstring(ctx context.Context, v var err error res := make([]*string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalOString2ᚖstring(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalOString2ᚖstring(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -13561,10 +13561,10 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalN__DirectiveLocation2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -14133,10 +14133,10 @@ func (ec *executionContext) unmarshalOOuterInput2ᚕᚕᚖgithubᚗcomᚋ99desig var err error res := make([][]*OuterInput, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalOOuterInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐOuterInput(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalOOuterInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐOuterInput(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -14157,10 +14157,10 @@ func (ec *executionContext) unmarshalOOuterInput2ᚕᚖgithubᚗcomᚋ99designs var err error res := make([]*OuterInput, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalOOuterInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐOuterInput(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalOOuterInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐOuterInput(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -14307,10 +14307,10 @@ func (ec *executionContext) unmarshalORecursiveInputSlice2ᚕgithubᚗcomᚋ99de var err error res := make([]RecursiveInputSlice, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalNRecursiveInputSlice2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐRecursiveInputSlice(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalNRecursiveInputSlice2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚐRecursiveInputSlice(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -14406,10 +14406,10 @@ func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalNString2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -14442,10 +14442,10 @@ func (ec *executionContext) unmarshalOString2ᚕᚖstring(ctx context.Context, v var err error res := make([]*string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalOString2ᚖstring(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalOString2ᚖstring(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil diff --git a/codegen/type.gotpl b/codegen/type.gotpl index b90a7899f8..cc8b21bcaf 100644 --- a/codegen/type.gotpl +++ b/codegen/type.gotpl @@ -19,10 +19,10 @@ var err error res := make([]{{$type.GO.Elem | ref}}, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.{{ $type.Elem.UnmarshalFunc }}(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.{{ $type.Elem.UnmarshalFunc }}(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil diff --git a/example/chat/generated.go b/example/chat/generated.go index 6d82195ec7..7e7e5d2143 100644 --- a/example/chat/generated.go +++ b/example/chat/generated.go @@ -296,8 +296,8 @@ func (ec *executionContext) dir_user_args(ctx context.Context, rawArgs map[strin args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["username"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("username")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("username")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -311,8 +311,8 @@ func (ec *executionContext) field_Mutation_post_args(ctx context.Context, rawArg args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["text"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("text")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("text")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -320,8 +320,8 @@ func (ec *executionContext) field_Mutation_post_args(ctx context.Context, rawArg args["text"] = arg0 var arg1 string if tmp, ok := rawArgs["username"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("username")) - arg1, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("username")) + arg1, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -329,8 +329,8 @@ func (ec *executionContext) field_Mutation_post_args(ctx context.Context, rawArg args["username"] = arg1 var arg2 string if tmp, ok := rawArgs["roomName"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("roomName")) - arg2, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("roomName")) + arg2, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -344,8 +344,8 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["name"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -359,8 +359,8 @@ func (ec *executionContext) field_Query_room_args(ctx context.Context, rawArgs m args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["name"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -374,8 +374,8 @@ func (ec *executionContext) field_Subscription_messageAdded_args(ctx context.Con args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["roomName"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("roomName")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("roomName")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -389,8 +389,8 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -404,8 +404,8 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -2515,10 +2515,10 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalN__DirectiveLocation2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil diff --git a/example/config/generated.go b/example/config/generated.go index 5f4d8d3951..de77bd4a5e 100644 --- a/example/config/generated.go +++ b/example/config/generated.go @@ -264,8 +264,8 @@ func (ec *executionContext) field_Mutation_createTodo_args(ctx context.Context, args := map[string]interface{}{} var arg0 NewTodo if tmp, ok := rawArgs["input"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("input")) - arg0, err = ec.unmarshalNNewTodo2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋconfigᚐNewTodo(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("input")) + arg0, err = ec.unmarshalNNewTodo2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋconfigᚐNewTodo(ctx, tmp) if err != nil { return nil, err } @@ -279,8 +279,8 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["name"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -294,8 +294,8 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -309,8 +309,8 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -1773,16 +1773,16 @@ func (ec *executionContext) unmarshalInputNewTodo(ctx context.Context, obj inter case "text": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("text")) - it.Text, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("text")) + it.Text, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "userId": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("userId")) - it.UserID, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("userId")) + it.UserID, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } @@ -2406,10 +2406,10 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalN__DirectiveLocation2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -2615,10 +2615,10 @@ func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalNString2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil diff --git a/example/dataloader/generated.go b/example/dataloader/generated.go index 837d2fe7fc..075e7397c1 100644 --- a/example/dataloader/generated.go +++ b/example/dataloader/generated.go @@ -313,8 +313,8 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["name"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -328,8 +328,8 @@ func (ec *executionContext) field_Query_torture1d_args(ctx context.Context, rawA args := map[string]interface{}{} var arg0 []int if tmp, ok := rawArgs["customerIds"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("customerIds")) - arg0, err = ec.unmarshalOInt2ᚕintᚄ(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("customerIds")) + arg0, err = ec.unmarshalOInt2ᚕintᚄ(ctx, tmp) if err != nil { return nil, err } @@ -343,8 +343,8 @@ func (ec *executionContext) field_Query_torture2d_args(ctx context.Context, rawA args := map[string]interface{}{} var arg0 [][]int if tmp, ok := rawArgs["customerIds"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("customerIds")) - arg0, err = ec.unmarshalOInt2ᚕᚕint(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("customerIds")) + arg0, err = ec.unmarshalOInt2ᚕᚕint(ctx, tmp) if err != nil { return nil, err } @@ -358,8 +358,8 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -373,8 +373,8 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -2688,10 +2688,10 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalN__DirectiveLocation2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -2979,10 +2979,10 @@ func (ec *executionContext) unmarshalOInt2ᚕintᚄ(ctx context.Context, v inter var err error res := make([]int, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalNInt2int(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalNInt2int(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -3015,10 +3015,10 @@ func (ec *executionContext) unmarshalOInt2ᚕᚕint(ctx context.Context, v inter var err error res := make([][]int, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalOInt2ᚕintᚄ(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalOInt2ᚕintᚄ(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil diff --git a/example/federation/accounts/graph/generated/generated.go b/example/federation/accounts/graph/generated/generated.go index f89e0115db..810ef99a9d 100644 --- a/example/federation/accounts/graph/generated/generated.go +++ b/example/federation/accounts/graph/generated/generated.go @@ -246,8 +246,8 @@ func (ec *executionContext) field_Entity_findUserByID_args(ctx context.Context, args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["id"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) - arg0, err = ec.unmarshalNID2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) + arg0, err = ec.unmarshalNID2string(ctx, tmp) if err != nil { return nil, err } @@ -261,8 +261,8 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["name"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -276,8 +276,8 @@ func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawA args := map[string]interface{}{} var arg0 []map[string]interface{} if tmp, ok := rawArgs["representations"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("representations")) - arg0, err = ec.unmarshalN_Any2ᚕmapᚄ(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("representations")) + arg0, err = ec.unmarshalN_Any2ᚕmapᚄ(ctx, tmp) if err != nil { return nil, err } @@ -291,8 +291,8 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -306,8 +306,8 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -2220,10 +2220,10 @@ func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v inte var err error res := make([]map[string]interface{}, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalN_Any2map(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalN_Any2map(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -2362,10 +2362,10 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalN__DirectiveLocation2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil diff --git a/example/federation/products/graph/generated/generated.go b/example/federation/products/graph/generated/generated.go index 6bf501d048..3d0a390d1e 100644 --- a/example/federation/products/graph/generated/generated.go +++ b/example/federation/products/graph/generated/generated.go @@ -260,8 +260,8 @@ func (ec *executionContext) field_Entity_findProductByUpc_args(ctx context.Conte args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["upc"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("upc")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("upc")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -275,8 +275,8 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["name"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -290,8 +290,8 @@ func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawA args := map[string]interface{}{} var arg0 []map[string]interface{} if tmp, ok := rawArgs["representations"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("representations")) - arg0, err = ec.unmarshalN_Any2ᚕmapᚄ(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("representations")) + arg0, err = ec.unmarshalN_Any2ᚕmapᚄ(ctx, tmp) if err != nil { return nil, err } @@ -305,8 +305,8 @@ func (ec *executionContext) field_Query_topProducts_args(ctx context.Context, ra args := map[string]interface{}{} var arg0 *int if tmp, ok := rawArgs["first"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("first")) - arg0, err = ec.unmarshalOInt2ᚖint(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("first")) + arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) if err != nil { return nil, err } @@ -320,8 +320,8 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -335,8 +335,8 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -2295,10 +2295,10 @@ func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v inte var err error res := make([]map[string]interface{}, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalN_Any2map(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalN_Any2map(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -2437,10 +2437,10 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalN__DirectiveLocation2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil diff --git a/example/federation/reviews/graph/generated/generated.go b/example/federation/reviews/graph/generated/generated.go index bc86c05052..a339df5b37 100644 --- a/example/federation/reviews/graph/generated/generated.go +++ b/example/federation/reviews/graph/generated/generated.go @@ -310,8 +310,8 @@ func (ec *executionContext) field_Entity_findProductByUpc_args(ctx context.Conte args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["upc"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("upc")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("upc")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -325,8 +325,8 @@ func (ec *executionContext) field_Entity_findUserByID_args(ctx context.Context, args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["id"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) - arg0, err = ec.unmarshalNID2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) + arg0, err = ec.unmarshalNID2string(ctx, tmp) if err != nil { return nil, err } @@ -340,8 +340,8 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["name"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -355,8 +355,8 @@ func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawA args := map[string]interface{}{} var arg0 []map[string]interface{} if tmp, ok := rawArgs["representations"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("representations")) - arg0, err = ec.unmarshalN_Any2ᚕmapᚄ(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("representations")) + arg0, err = ec.unmarshalN_Any2ᚕmapᚄ(ctx, tmp) if err != nil { return nil, err } @@ -370,8 +370,8 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -385,8 +385,8 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -2578,10 +2578,10 @@ func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v inte var err error res := make([]map[string]interface{}, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalN_Any2map(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalN_Any2map(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -2720,10 +2720,10 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalN__DirectiveLocation2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil diff --git a/example/fileupload/generated.go b/example/fileupload/generated.go index 8e63b14764..64f6653a25 100644 --- a/example/fileupload/generated.go +++ b/example/fileupload/generated.go @@ -277,8 +277,8 @@ func (ec *executionContext) field_Mutation_multipleUploadWithPayload_args(ctx co args := map[string]interface{}{} var arg0 []*model.UploadFile if tmp, ok := rawArgs["req"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("req")) - arg0, err = ec.unmarshalNUploadFile2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋfileuploadᚋmodelᚐUploadFileᚄ(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("req")) + arg0, err = ec.unmarshalNUploadFile2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋfileuploadᚋmodelᚐUploadFileᚄ(ctx, tmp) if err != nil { return nil, err } @@ -292,8 +292,8 @@ func (ec *executionContext) field_Mutation_multipleUpload_args(ctx context.Conte args := map[string]interface{}{} var arg0 []*graphql.Upload if tmp, ok := rawArgs["files"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("files")) - arg0, err = ec.unmarshalNUpload2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUploadᚄ(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("files")) + arg0, err = ec.unmarshalNUpload2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUploadᚄ(ctx, tmp) if err != nil { return nil, err } @@ -307,8 +307,8 @@ func (ec *executionContext) field_Mutation_singleUploadWithPayload_args(ctx cont args := map[string]interface{}{} var arg0 model.UploadFile if tmp, ok := rawArgs["req"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("req")) - arg0, err = ec.unmarshalNUploadFile2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋfileuploadᚋmodelᚐUploadFile(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("req")) + arg0, err = ec.unmarshalNUploadFile2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋfileuploadᚋmodelᚐUploadFile(ctx, tmp) if err != nil { return nil, err } @@ -322,8 +322,8 @@ func (ec *executionContext) field_Mutation_singleUpload_args(ctx context.Context args := map[string]interface{}{} var arg0 graphql.Upload if tmp, ok := rawArgs["file"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("file")) - arg0, err = ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("file")) + arg0, err = ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) if err != nil { return nil, err } @@ -337,8 +337,8 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["name"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -352,8 +352,8 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -367,8 +367,8 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -1852,16 +1852,16 @@ func (ec *executionContext) unmarshalInputUploadFile(ctx context.Context, obj in case "id": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) - it.ID, err = ec.unmarshalNInt2int(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) + it.ID, err = ec.unmarshalNInt2int(ctx, v) if err != nil { return it, err } case "file": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("file")) - it.File, err = ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("file")) + it.File, err = ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) if err != nil { return it, err } @@ -2379,10 +2379,10 @@ func (ec *executionContext) unmarshalNUpload2ᚕᚖgithubᚗcomᚋ99designsᚋgq var err error res := make([]*graphql.Upload, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalNUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalNUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -2429,10 +2429,10 @@ func (ec *executionContext) unmarshalNUploadFile2ᚕᚖgithubᚗcomᚋ99designs var err error res := make([]*model.UploadFile, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalNUploadFile2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋfileuploadᚋmodelᚐUploadFile(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalNUploadFile2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋfileuploadᚋmodelᚐUploadFile(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -2511,10 +2511,10 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalN__DirectiveLocation2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil diff --git a/example/scalars/generated.go b/example/scalars/generated.go index cad3030522..a6d0034fa6 100644 --- a/example/scalars/generated.go +++ b/example/scalars/generated.go @@ -284,8 +284,8 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["name"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -299,8 +299,8 @@ func (ec *executionContext) field_Query_search_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 *model.SearchArgs if tmp, ok := rawArgs["input"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("input")) - arg0, err = ec.unmarshalOSearchArgs2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐSearchArgs(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("input")) + arg0, err = ec.unmarshalOSearchArgs2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐSearchArgs(ctx, tmp) if err != nil { return nil, err } @@ -314,8 +314,8 @@ func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs m args := map[string]interface{}{} var arg0 external.ObjectID if tmp, ok := rawArgs["id"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) - arg0, err = ec.unmarshalNID2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋexternalᚐObjectID(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) + arg0, err = ec.unmarshalNID2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋexternalᚐObjectID(ctx, tmp) if err != nil { return nil, err } @@ -329,8 +329,8 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -344,8 +344,8 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -1902,24 +1902,24 @@ func (ec *executionContext) unmarshalInputSearchArgs(ctx context.Context, obj in case "location": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("location")) - it.Location, err = ec.unmarshalOPoint2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐPoint(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("location")) + it.Location, err = ec.unmarshalOPoint2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐPoint(ctx, v) if err != nil { return it, err } case "createdAfter": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("createdAfter")) - it.CreatedAfter, err = ec.unmarshalOTimestamp2ᚖtimeᚐTime(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("createdAfter")) + it.CreatedAfter, err = ec.unmarshalOTimestamp2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } case "isBanned": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("isBanned")) - it.IsBanned, err = ec.unmarshalOBanned2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐBanned(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("isBanned")) + it.IsBanned, err = ec.unmarshalOBanned2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋscalarsᚋmodelᚐBanned(ctx, v) if err != nil { return it, err } @@ -2536,10 +2536,10 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalN__DirectiveLocation2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil diff --git a/example/selection/generated.go b/example/selection/generated.go index 187985edca..e4da3adca5 100644 --- a/example/selection/generated.go +++ b/example/selection/generated.go @@ -230,8 +230,8 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["name"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -245,8 +245,8 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -260,8 +260,8 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -2205,10 +2205,10 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalN__DirectiveLocation2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -2454,10 +2454,10 @@ func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalNString2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil diff --git a/example/starwars/generated/exec.go b/example/starwars/generated/exec.go index 697d32ab20..69a6ca1193 100644 --- a/example/starwars/generated/exec.go +++ b/example/starwars/generated/exec.go @@ -694,8 +694,8 @@ func (ec *executionContext) field_Droid_friendsConnection_args(ctx context.Conte args := map[string]interface{}{} var arg0 *int if tmp, ok := rawArgs["first"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("first")) - arg0, err = ec.unmarshalOInt2ᚖint(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("first")) + arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) if err != nil { return nil, err } @@ -703,8 +703,8 @@ func (ec *executionContext) field_Droid_friendsConnection_args(ctx context.Conte args["first"] = arg0 var arg1 *string if tmp, ok := rawArgs["after"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("after")) - arg1, err = ec.unmarshalOID2ᚖstring(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("after")) + arg1, err = ec.unmarshalOID2ᚖstring(ctx, tmp) if err != nil { return nil, err } @@ -718,8 +718,8 @@ func (ec *executionContext) field_Human_friendsConnection_args(ctx context.Conte args := map[string]interface{}{} var arg0 *int if tmp, ok := rawArgs["first"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("first")) - arg0, err = ec.unmarshalOInt2ᚖint(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("first")) + arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) if err != nil { return nil, err } @@ -727,8 +727,8 @@ func (ec *executionContext) field_Human_friendsConnection_args(ctx context.Conte args["first"] = arg0 var arg1 *string if tmp, ok := rawArgs["after"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("after")) - arg1, err = ec.unmarshalOID2ᚖstring(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("after")) + arg1, err = ec.unmarshalOID2ᚖstring(ctx, tmp) if err != nil { return nil, err } @@ -742,8 +742,8 @@ func (ec *executionContext) field_Human_height_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 models.LengthUnit if tmp, ok := rawArgs["unit"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("unit")) - arg0, err = ec.unmarshalOLengthUnit2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋstarwarsᚋmodelsᚐLengthUnit(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("unit")) + arg0, err = ec.unmarshalOLengthUnit2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋstarwarsᚋmodelsᚐLengthUnit(ctx, tmp) if err != nil { return nil, err } @@ -757,8 +757,8 @@ func (ec *executionContext) field_Mutation_createReview_args(ctx context.Context args := map[string]interface{}{} var arg0 models.Episode if tmp, ok := rawArgs["episode"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("episode")) - arg0, err = ec.unmarshalNEpisode2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋstarwarsᚋmodelsᚐEpisode(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("episode")) + arg0, err = ec.unmarshalNEpisode2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋstarwarsᚋmodelsᚐEpisode(ctx, tmp) if err != nil { return nil, err } @@ -766,8 +766,8 @@ func (ec *executionContext) field_Mutation_createReview_args(ctx context.Context args["episode"] = arg0 var arg1 models.Review if tmp, ok := rawArgs["review"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("review")) - arg1, err = ec.unmarshalNReviewInput2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋstarwarsᚋmodelsᚐReview(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("review")) + arg1, err = ec.unmarshalNReviewInput2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋstarwarsᚋmodelsᚐReview(ctx, tmp) if err != nil { return nil, err } @@ -781,8 +781,8 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["name"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -796,8 +796,8 @@ func (ec *executionContext) field_Query_character_args(ctx context.Context, rawA args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["id"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) - arg0, err = ec.unmarshalNID2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) + arg0, err = ec.unmarshalNID2string(ctx, tmp) if err != nil { return nil, err } @@ -811,8 +811,8 @@ func (ec *executionContext) field_Query_droid_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["id"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) - arg0, err = ec.unmarshalNID2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) + arg0, err = ec.unmarshalNID2string(ctx, tmp) if err != nil { return nil, err } @@ -826,8 +826,8 @@ func (ec *executionContext) field_Query_hero_args(ctx context.Context, rawArgs m args := map[string]interface{}{} var arg0 *models.Episode if tmp, ok := rawArgs["episode"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("episode")) - arg0, err = ec.unmarshalOEpisode2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋstarwarsᚋmodelsᚐEpisode(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("episode")) + arg0, err = ec.unmarshalOEpisode2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋstarwarsᚋmodelsᚐEpisode(ctx, tmp) if err != nil { return nil, err } @@ -841,8 +841,8 @@ func (ec *executionContext) field_Query_human_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["id"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) - arg0, err = ec.unmarshalNID2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) + arg0, err = ec.unmarshalNID2string(ctx, tmp) if err != nil { return nil, err } @@ -856,8 +856,8 @@ func (ec *executionContext) field_Query_reviews_args(ctx context.Context, rawArg args := map[string]interface{}{} var arg0 models.Episode if tmp, ok := rawArgs["episode"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("episode")) - arg0, err = ec.unmarshalNEpisode2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋstarwarsᚋmodelsᚐEpisode(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("episode")) + arg0, err = ec.unmarshalNEpisode2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋstarwarsᚋmodelsᚐEpisode(ctx, tmp) if err != nil { return nil, err } @@ -865,8 +865,8 @@ func (ec *executionContext) field_Query_reviews_args(ctx context.Context, rawArg args["episode"] = arg0 var arg1 *time.Time if tmp, ok := rawArgs["since"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("since")) - arg1, err = ec.unmarshalOTime2ᚖtimeᚐTime(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("since")) + arg1, err = ec.unmarshalOTime2ᚖtimeᚐTime(ctx, tmp) if err != nil { return nil, err } @@ -880,8 +880,8 @@ func (ec *executionContext) field_Query_search_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["text"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("text")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("text")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -895,8 +895,8 @@ func (ec *executionContext) field_Query_starship_args(ctx context.Context, rawAr args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["id"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) - arg0, err = ec.unmarshalNID2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) + arg0, err = ec.unmarshalNID2string(ctx, tmp) if err != nil { return nil, err } @@ -910,8 +910,8 @@ func (ec *executionContext) field_Starship_length_args(ctx context.Context, rawA args := map[string]interface{}{} var arg0 *models.LengthUnit if tmp, ok := rawArgs["unit"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("unit")) - arg0, err = ec.unmarshalOLengthUnit2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋstarwarsᚋmodelsᚐLengthUnit(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("unit")) + arg0, err = ec.unmarshalOLengthUnit2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋstarwarsᚋmodelsᚐLengthUnit(ctx, tmp) if err != nil { return nil, err } @@ -925,8 +925,8 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -940,8 +940,8 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -3419,24 +3419,24 @@ func (ec *executionContext) unmarshalInputReviewInput(ctx context.Context, obj i case "stars": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("stars")) - it.Stars, err = ec.unmarshalNInt2int(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("stars")) + it.Stars, err = ec.unmarshalNInt2int(ctx, v) if err != nil { return it, err } case "commentary": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("commentary")) - it.Commentary, err = ec.unmarshalOString2ᚖstring(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("commentary")) + it.Commentary, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } case "time": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("time")) - it.Time, err = ec.unmarshalOTime2timeᚐTime(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("time")) + it.Time, err = ec.unmarshalOTime2timeᚐTime(ctx, v) if err != nil { return it, err } @@ -4286,10 +4286,10 @@ func (ec *executionContext) unmarshalNEpisode2ᚕgithubᚗcomᚋ99designsᚋgqlg var err error res := make([]models.Episode, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalNEpisode2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋstarwarsᚋmodelsᚐEpisode(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalNEpisode2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋstarwarsᚋmodelsᚐEpisode(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -4417,10 +4417,10 @@ func (ec *executionContext) unmarshalNInt2ᚕintᚄ(ctx context.Context, v inter var err error res := make([]int, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalNInt2int(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalNInt2int(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -4447,10 +4447,10 @@ func (ec *executionContext) unmarshalNInt2ᚕᚕintᚄ(ctx context.Context, v in var err error res := make([][]int, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalNInt2ᚕintᚄ(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalNInt2ᚕintᚄ(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -4669,10 +4669,10 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalN__DirectiveLocation2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil diff --git a/example/todo/generated.go b/example/todo/generated.go index 96c4f52989..b76a4a5495 100644 --- a/example/todo/generated.go +++ b/example/todo/generated.go @@ -280,8 +280,8 @@ func (ec *executionContext) dir_hasRole_args(ctx context.Context, rawArgs map[st args := map[string]interface{}{} var arg0 Role if tmp, ok := rawArgs["role"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("role")) - arg0, err = ec.unmarshalNRole2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋtodoᚐRole(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("role")) + arg0, err = ec.unmarshalNRole2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋtodoᚐRole(ctx, tmp) if err != nil { return nil, err } @@ -295,8 +295,8 @@ func (ec *executionContext) dir_user_args(ctx context.Context, rawArgs map[strin args := map[string]interface{}{} var arg0 int if tmp, ok := rawArgs["id"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) - arg0, err = ec.unmarshalNID2int(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) + arg0, err = ec.unmarshalNID2int(ctx, tmp) if err != nil { return nil, err } @@ -310,8 +310,8 @@ func (ec *executionContext) field_MyMutation_createTodo_args(ctx context.Context args := map[string]interface{}{} var arg0 TodoInput if tmp, ok := rawArgs["todo"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("todo")) - arg0, err = ec.unmarshalNTodoInput2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋtodoᚐTodoInput(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("todo")) + arg0, err = ec.unmarshalNTodoInput2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋtodoᚐTodoInput(ctx, tmp) if err != nil { return nil, err } @@ -325,8 +325,8 @@ func (ec *executionContext) field_MyMutation_updateTodo_args(ctx context.Context args := map[string]interface{}{} var arg0 int if tmp, ok := rawArgs["id"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) - arg0, err = ec.unmarshalNID2int(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) + arg0, err = ec.unmarshalNID2int(ctx, tmp) if err != nil { return nil, err } @@ -334,8 +334,8 @@ func (ec *executionContext) field_MyMutation_updateTodo_args(ctx context.Context args["id"] = arg0 var arg1 map[string]interface{} if tmp, ok := rawArgs["changes"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("changes")) - arg1, err = ec.unmarshalNMap2map(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("changes")) + arg1, err = ec.unmarshalNMap2map(ctx, tmp) if err != nil { return nil, err } @@ -349,8 +349,8 @@ func (ec *executionContext) field_MyQuery___type_args(ctx context.Context, rawAr args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["name"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -364,8 +364,8 @@ func (ec *executionContext) field_MyQuery_todo_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 int if tmp, ok := rawArgs["id"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) - arg0, err = ec.unmarshalNID2int(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) + arg0, err = ec.unmarshalNID2int(ctx, tmp) if err != nil { return nil, err } @@ -379,8 +379,8 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -394,8 +394,8 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -1821,16 +1821,16 @@ func (ec *executionContext) unmarshalInputTodoInput(ctx context.Context, obj int case "text": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("text")) - it.Text, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("text")) + it.Text, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "done": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("done")) - it.Done, err = ec.unmarshalOBoolean2ᚖbool(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("done")) + it.Done, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } @@ -2429,10 +2429,10 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalN__DirectiveLocation2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil diff --git a/example/type-system-extension/generated.go b/example/type-system-extension/generated.go index 8cf846bda0..089b18ff3d 100644 --- a/example/type-system-extension/generated.go +++ b/example/type-system-extension/generated.go @@ -300,8 +300,8 @@ func (ec *executionContext) field_MyMutation_createTodo_args(ctx context.Context args := map[string]interface{}{} var arg0 TodoInput if tmp, ok := rawArgs["todo"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("todo")) - arg0, err = ec.unmarshalNTodoInput2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋtypeᚑsystemᚑextensionᚐTodoInput(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("todo")) + arg0, err = ec.unmarshalNTodoInput2githubᚗcomᚋ99designsᚋgqlgenᚋexampleᚋtypeᚑsystemᚑextensionᚐTodoInput(ctx, tmp) if err != nil { return nil, err } @@ -315,8 +315,8 @@ func (ec *executionContext) field_MyQuery___type_args(ctx context.Context, rawAr args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["name"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -330,8 +330,8 @@ func (ec *executionContext) field_MyQuery_todo_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["id"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) - arg0, err = ec.unmarshalNID2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("id")) + arg0, err = ec.unmarshalNID2string(ctx, tmp) if err != nil { return nil, err } @@ -345,8 +345,8 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -360,8 +360,8 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -1780,8 +1780,8 @@ func (ec *executionContext) unmarshalInputTodoInput(ctx context.Context, obj int case "text": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("text")) - it.Text, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("text")) + it.Text, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } @@ -2383,10 +2383,10 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalN__DirectiveLocation2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil diff --git a/integration/generated.go b/integration/generated.go index 362286bdc5..4adb4c661c 100644 --- a/integration/generated.go +++ b/integration/generated.go @@ -316,8 +316,8 @@ func (ec *executionContext) dir_magic_args(ctx context.Context, rawArgs map[stri args := map[string]interface{}{} var arg0 *int if tmp, ok := rawArgs["kind"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("kind")) - arg0, err = ec.unmarshalOInt2ᚖint(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("kind")) + arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) if err != nil { return nil, err } @@ -331,8 +331,8 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["name"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) - arg0, err = ec.unmarshalNString2string(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("name")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) if err != nil { return nil, err } @@ -346,8 +346,8 @@ func (ec *executionContext) field_Query_complexity_args(ctx context.Context, raw args := map[string]interface{}{} var arg0 int if tmp, ok := rawArgs["value"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("value")) - arg0, err = ec.unmarshalNInt2int(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("value")) + arg0, err = ec.unmarshalNInt2int(ctx, tmp) if err != nil { return nil, err } @@ -361,8 +361,8 @@ func (ec *executionContext) field_Query_date_args(ctx context.Context, rawArgs m args := map[string]interface{}{} var arg0 models.DateFilter if tmp, ok := rawArgs["filter"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("filter")) - arg0, err = ec.unmarshalNDateFilter2githubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋmodelsᚑgoᚐDateFilter(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("filter")) + arg0, err = ec.unmarshalNDateFilter2githubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋmodelsᚑgoᚐDateFilter(ctx, tmp) if err != nil { return nil, err } @@ -376,8 +376,8 @@ func (ec *executionContext) field_Query_error_args(ctx context.Context, rawArgs args := map[string]interface{}{} var arg0 *models.ErrorType if tmp, ok := rawArgs["type"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("type")) - arg0, err = ec.unmarshalOErrorType2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋmodelsᚑgoᚐErrorType(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("type")) + arg0, err = ec.unmarshalOErrorType2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋmodelsᚑgoᚐErrorType(ctx, tmp) if err != nil { return nil, err } @@ -391,8 +391,8 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -406,8 +406,8 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg args := map[string]interface{}{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(childCtx, tmp) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) if err != nil { return nil, err } @@ -1981,24 +1981,24 @@ func (ec *executionContext) unmarshalInputDateFilter(ctx context.Context, obj in case "value": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("value")) - it.Value, err = ec.unmarshalNString2string(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("value")) + it.Value, err = ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } case "timezone": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("timezone")) - it.Timezone, err = ec.unmarshalOString2ᚖstring(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("timezone")) + it.Timezone, err = ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } case "op": var err error - childCtx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("op")) - it.Op, err = ec.unmarshalODATE_FILTER_OP2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋmodelsᚑgoᚐDateFilterOp(childCtx, v) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithField("op")) + it.Op, err = ec.unmarshalODATE_FILTER_OP2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋmodelsᚑgoᚐDateFilterOp(ctx, v) if err != nil { return it, err } @@ -2571,10 +2571,10 @@ func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalNString2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -2657,10 +2657,10 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte var err error res := make([]string, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalN__DirectiveLocation2string(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil @@ -2842,10 +2842,10 @@ func (ec *executionContext) unmarshalOBoolean2ᚕboolᚄ(ctx context.Context, v var err error res := make([]bool, len(vSlice)) for i := range vSlice { - nctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) - res[i], err = ec.unmarshalNBoolean2bool(nctx, vSlice[i]) + ctx := graphql.WithFieldInputContext(ctx, graphql.NewFieldInputWithIndex(i)) + res[i], err = ec.unmarshalNBoolean2bool(ctx, vSlice[i]) if err != nil { - return nil, graphql.WrapErrorWithInputPath(nctx, err) + return nil, graphql.WrapErrorWithInputPath(ctx, err) } } return res, nil