diff --git a/_examples/chat/generated.go b/_examples/chat/generated.go index ed97c5beec8..033e028574b 100644 --- a/_examples/chat/generated.go +++ b/_examples/chat/generated.go @@ -46,7 +46,7 @@ type ResolverRoot interface { } type DirectiveRoot struct { - User func(ctx context.Context, obj interface{}, next graphql.Resolver, username string) (res interface{}, err error) + User func(ctx context.Context, obj any, next graphql.Resolver, username string) (res any, err error) } type ComplexityRoot struct { @@ -101,7 +101,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -255,7 +255,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { } } case ast.Subscription: - next := ec._subscriptionMiddleware(ctx, opCtx.Operation, func(ctx context.Context) (interface{}, error) { + next := ec._subscriptionMiddleware(ctx, opCtx.Operation, func(ctx context.Context) (any, error) { return ec._Subscription(ctx, opCtx.Operation.SelectionSet), nil }) @@ -340,9 +340,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) dir_user_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_user_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_user_argsUsername(ctx, rawArgs) if err != nil { return nil, err @@ -352,7 +352,7 @@ func (ec *executionContext) dir_user_args(ctx context.Context, rawArgs map[strin } func (ec *executionContext) dir_user_argsUsername( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -372,9 +372,9 @@ func (ec *executionContext) dir_user_argsUsername( return zeroVal, nil } -func (ec *executionContext) field_Mutation_post_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_post_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Mutation_post_argsText(ctx, rawArgs) if err != nil { return nil, err @@ -394,7 +394,7 @@ func (ec *executionContext) field_Mutation_post_args(ctx context.Context, rawArg } func (ec *executionContext) field_Mutation_post_argsText( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -416,7 +416,7 @@ func (ec *executionContext) field_Mutation_post_argsText( func (ec *executionContext) field_Mutation_post_argsUsername( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -438,7 +438,7 @@ func (ec *executionContext) field_Mutation_post_argsUsername( func (ec *executionContext) field_Mutation_post_argsRoomName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -458,9 +458,9 @@ func (ec *executionContext) field_Mutation_post_argsRoomName( return zeroVal, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -470,7 +470,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -490,9 +490,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query_room_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_room_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_room_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -502,7 +502,7 @@ func (ec *executionContext) field_Query_room_args(ctx context.Context, rawArgs m } func (ec *executionContext) field_Query_room_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -522,9 +522,9 @@ func (ec *executionContext) field_Query_room_argsName( return zeroVal, nil } -func (ec *executionContext) field_Subscription_messageAdded_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Subscription_messageAdded_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Subscription_messageAdded_argsRoomName(ctx, rawArgs) if err != nil { return nil, err @@ -534,7 +534,7 @@ func (ec *executionContext) field_Subscription_messageAdded_args(ctx context.Con } func (ec *executionContext) field_Subscription_messageAdded_argsRoomName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -554,9 +554,9 @@ func (ec *executionContext) field_Subscription_messageAdded_argsRoomName( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -566,7 +566,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -586,9 +586,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -598,7 +598,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -622,7 +622,7 @@ func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( // region ************************** directives.gotpl ************************** -func (ec *executionContext) _subscriptionMiddleware(ctx context.Context, obj *ast.OperationDefinition, next func(ctx context.Context) (interface{}, error)) func(ctx context.Context) graphql.Marshaler { +func (ec *executionContext) _subscriptionMiddleware(ctx context.Context, obj *ast.OperationDefinition, next func(ctx context.Context) (any, error)) func(ctx context.Context) graphql.Marshaler { for _, d := range obj.Directives { switch d.Name { case "user": @@ -635,7 +635,7 @@ func (ec *executionContext) _subscriptionMiddleware(ctx context.Context, obj *as } } n := next - next = func(ctx context.Context) (interface{}, error) { + next = func(ctx context.Context) (any, error) { if ec.directives.User == nil { return nil, errors.New("directive user is not implemented") } @@ -675,7 +675,7 @@ func (ec *executionContext) _Chatroom_name(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -719,7 +719,7 @@ func (ec *executionContext) _Chatroom_messages(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Messages, nil }) @@ -809,7 +809,7 @@ func (ec *executionContext) _Message_id(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -853,7 +853,7 @@ func (ec *executionContext) _Message_text(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Text, nil }) @@ -897,7 +897,7 @@ func (ec *executionContext) _Message_createdBy(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedBy, nil }) @@ -941,7 +941,7 @@ func (ec *executionContext) _Message_createdAt(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedAt, nil }) @@ -1019,7 +1019,7 @@ func (ec *executionContext) _Mutation_post(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().Post(rctx, fc.Args["text"].(string), fc.Args["username"].(string), fc.Args["roomName"].(string)) }) @@ -1086,7 +1086,7 @@ func (ec *executionContext) _Query_room(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Room(rctx, fc.Args["name"].(string)) }) @@ -1146,7 +1146,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -1220,7 +1220,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -1275,7 +1275,7 @@ func (ec *executionContext) _Subscription_messageAdded(ctx context.Context, fiel ret = nil } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().MessageAdded(rctx, fc.Args["roomName"].(string)) }) @@ -1356,7 +1356,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1400,7 +1400,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1441,7 +1441,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -1485,7 +1485,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1539,7 +1539,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -1583,7 +1583,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1627,7 +1627,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1668,7 +1668,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1712,7 +1712,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1753,7 +1753,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1797,7 +1797,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1838,7 +1838,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1892,7 +1892,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1958,7 +1958,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -2002,7 +2002,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -2043,7 +2043,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2087,7 +2087,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2128,7 +2128,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -2194,7 +2194,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -2235,7 +2235,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2276,7 +2276,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -2342,7 +2342,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -2408,7 +2408,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -2471,7 +2471,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -2534,7 +2534,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -2590,7 +2590,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -2634,7 +2634,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2675,7 +2675,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2716,7 +2716,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2782,7 +2782,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -2845,7 +2845,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -2908,7 +2908,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2970,7 +2970,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -3021,7 +3021,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -3084,7 +3084,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -3697,7 +3697,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3712,7 +3712,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNID2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3785,7 +3785,7 @@ func (ec *executionContext) marshalNMessage2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Message(ctx, sel, v) } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3816,7 +3816,7 @@ func (ec *executionContext) marshalNSubscription2ᚖgithubᚗcomᚋ99designsᚋg return res(ctx) } -func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) { +func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v any) (time.Time, error) { res, err := graphql.UnmarshalTime(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3879,7 +3879,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3894,8 +3894,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4069,7 +4069,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4084,7 +4084,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4094,7 +4094,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -4117,7 +4117,7 @@ func (ec *executionContext) marshalOChatroom2ᚖgithubᚗcomᚋ99designsᚋgqlge return ec._Chatroom(ctx, sel, v) } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/_examples/config/generated.go b/_examples/config/generated.go index b2660fbbcf5..19abb90ad3a 100644 --- a/_examples/config/generated.go +++ b/_examples/config/generated.go @@ -104,7 +104,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -332,9 +332,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Mutation_createTodo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_createTodo_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Mutation_createTodo_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -344,7 +344,7 @@ func (ec *executionContext) field_Mutation_createTodo_args(ctx context.Context, } func (ec *executionContext) field_Mutation_createTodo_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (NewTodo, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -364,9 +364,9 @@ func (ec *executionContext) field_Mutation_createTodo_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -376,7 +376,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -396,9 +396,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -408,7 +408,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -428,9 +428,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -440,7 +440,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -480,7 +480,7 @@ func (ec *executionContext) _Mutation_createTodo(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().CreateTodo(rctx, fc.Args["input"].(NewTodo)) }) @@ -551,7 +551,7 @@ func (ec *executionContext) _Query_todos(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Todos(rctx) }) @@ -611,7 +611,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -685,7 +685,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -740,7 +740,7 @@ func (ec *executionContext) _Todo_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Todo().ID(rctx, obj) }) @@ -784,7 +784,7 @@ func (ec *executionContext) _Todo_databaseId(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DatabaseID, nil }) @@ -828,7 +828,7 @@ func (ec *executionContext) _Todo_text(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description, nil }) @@ -872,7 +872,7 @@ func (ec *executionContext) _Todo_done(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Done, nil }) @@ -916,7 +916,7 @@ func (ec *executionContext) _Todo_user(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.User, nil }) @@ -1040,7 +1040,7 @@ func (ec *executionContext) _User_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -1084,7 +1084,7 @@ func (ec *executionContext) _User_name(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.FullName(), nil }) @@ -1128,7 +1128,7 @@ func (ec *executionContext) _User_role(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Role, nil }) @@ -1176,7 +1176,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1220,7 +1220,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1261,7 +1261,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -1305,7 +1305,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1359,7 +1359,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -1403,7 +1403,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1447,7 +1447,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1488,7 +1488,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1532,7 +1532,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1573,7 +1573,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1617,7 +1617,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1658,7 +1658,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1712,7 +1712,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1778,7 +1778,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1822,7 +1822,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1863,7 +1863,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1907,7 +1907,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1948,7 +1948,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -2014,7 +2014,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -2055,7 +2055,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2096,7 +2096,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -2162,7 +2162,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -2228,7 +2228,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -2291,7 +2291,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -2354,7 +2354,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -2410,7 +2410,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -2454,7 +2454,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2495,7 +2495,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2536,7 +2536,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2602,7 +2602,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -2665,7 +2665,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -2728,7 +2728,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2790,7 +2790,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -2841,7 +2841,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -2904,7 +2904,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -2945,7 +2945,7 @@ func (ec *executionContext) _role_name(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Role().Name(rctx, obj) }) @@ -2981,10 +2981,10 @@ func (ec *executionContext) fieldContext_role_name(_ context.Context, field grap // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputNewTodo(ctx context.Context, obj interface{}) (NewTodo, error) { +func (ec *executionContext) unmarshalInputNewTodo(ctx context.Context, obj any) (NewTodo, error) { var it NewTodo - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -3689,7 +3689,7 @@ func (ec *executionContext) _role(ctx context.Context, sel ast.SelectionSet, obj // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3704,7 +3704,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNID2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3719,7 +3719,7 @@ func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3744,7 +3744,7 @@ func (ec *executionContext) marshalNMutation2ᚖgithubᚗcomᚋ99designsᚋgqlge return ec._Mutation(ctx, sel) } -func (ec *executionContext) unmarshalNNewTodo2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋconfigᚐNewTodo(ctx context.Context, v interface{}) (NewTodo, error) { +func (ec *executionContext) unmarshalNNewTodo2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋconfigᚐNewTodo(ctx context.Context, v any) (NewTodo, error) { res, err := ec.unmarshalInputNewTodo(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3759,7 +3759,7 @@ func (ec *executionContext) marshalNQuery2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Query(ctx, sel) } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3890,7 +3890,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3905,8 +3905,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4080,7 +4080,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4099,7 +4099,7 @@ func (ec *executionContext) marshalNrole2githubᚗcomᚋ99designsᚋgqlgenᚋ_ex return ec._role(ctx, sel, &v) } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4109,7 +4109,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -4125,11 +4125,11 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { +func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4163,7 +4163,7 @@ func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/_examples/dataloader/generated.go b/_examples/dataloader/generated.go index 797bdbc635d..b045a51f191 100644 --- a/_examples/dataloader/generated.go +++ b/_examples/dataloader/generated.go @@ -106,7 +106,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -334,9 +334,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -346,7 +346,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -366,9 +366,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query_torture1d_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_torture1d_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_torture1d_argsCustomerIds(ctx, rawArgs) if err != nil { return nil, err @@ -378,7 +378,7 @@ func (ec *executionContext) field_Query_torture1d_args(ctx context.Context, rawA } func (ec *executionContext) field_Query_torture1d_argsCustomerIds( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -398,9 +398,9 @@ func (ec *executionContext) field_Query_torture1d_argsCustomerIds( return zeroVal, nil } -func (ec *executionContext) field_Query_torture2d_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_torture2d_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_torture2d_argsCustomerIds(ctx, rawArgs) if err != nil { return nil, err @@ -410,7 +410,7 @@ func (ec *executionContext) field_Query_torture2d_args(ctx context.Context, rawA } func (ec *executionContext) field_Query_torture2d_argsCustomerIds( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([][]int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -430,9 +430,9 @@ func (ec *executionContext) field_Query_torture2d_argsCustomerIds( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -442,7 +442,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -462,9 +462,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -474,7 +474,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -514,7 +514,7 @@ func (ec *executionContext) _Address_id(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -558,7 +558,7 @@ func (ec *executionContext) _Address_street(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Street, nil }) @@ -602,7 +602,7 @@ func (ec *executionContext) _Address_country(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Country, nil }) @@ -646,7 +646,7 @@ func (ec *executionContext) _Customer_id(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -690,7 +690,7 @@ func (ec *executionContext) _Customer_name(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -734,7 +734,7 @@ func (ec *executionContext) _Customer_address(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Customer().Address(rctx, obj) }) @@ -783,7 +783,7 @@ func (ec *executionContext) _Customer_orders(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Customer().Orders(rctx, obj) }) @@ -834,7 +834,7 @@ func (ec *executionContext) _Item_name(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -878,7 +878,7 @@ func (ec *executionContext) _Order_id(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -922,7 +922,7 @@ func (ec *executionContext) _Order_date(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Date, nil }) @@ -966,7 +966,7 @@ func (ec *executionContext) _Order_amount(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Amount, nil }) @@ -1010,7 +1010,7 @@ func (ec *executionContext) _Order_items(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Order().Items(rctx, obj) }) @@ -1055,7 +1055,7 @@ func (ec *executionContext) _Query_customers(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Customers(rctx) }) @@ -1106,7 +1106,7 @@ func (ec *executionContext) _Query_torture1d(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Torture1d(rctx, fc.Args["customerIds"].([]int)) }) @@ -1168,7 +1168,7 @@ func (ec *executionContext) _Query_torture2d(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Torture2d(rctx, fc.Args["customerIds"].([][]int)) }) @@ -1230,7 +1230,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -1304,7 +1304,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -1359,7 +1359,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1403,7 +1403,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1444,7 +1444,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -1488,7 +1488,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1542,7 +1542,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -1586,7 +1586,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1630,7 +1630,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1671,7 +1671,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1715,7 +1715,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1756,7 +1756,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1800,7 +1800,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1841,7 +1841,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1895,7 +1895,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1961,7 +1961,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -2005,7 +2005,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -2046,7 +2046,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2090,7 +2090,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2131,7 +2131,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -2197,7 +2197,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -2238,7 +2238,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2279,7 +2279,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -2345,7 +2345,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -2411,7 +2411,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -2474,7 +2474,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -2537,7 +2537,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -2593,7 +2593,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -2637,7 +2637,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2678,7 +2678,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2719,7 +2719,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2785,7 +2785,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -2848,7 +2848,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -2911,7 +2911,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2973,7 +2973,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -3024,7 +3024,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -3087,7 +3087,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -3841,7 +3841,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3866,7 +3866,7 @@ func (ec *executionContext) marshalNCustomer2ᚖgithubᚗcomᚋ99designsᚋgqlge return ec._Customer(ctx, sel, v) } -func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v interface{}) (float64, error) { +func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v any) (float64, error) { res, err := graphql.UnmarshalFloatContext(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3881,7 +3881,7 @@ func (ec *executionContext) marshalNFloat2float64(ctx context.Context, sel ast.S return graphql.WrapContextMarshaler(ctx, res) } -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3916,7 +3916,7 @@ func (ec *executionContext) marshalNOrder2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Order(ctx, sel, v) } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3931,7 +3931,7 @@ func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) { +func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v any) (time.Time, error) { res, err := graphql.UnmarshalTime(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3994,7 +3994,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4009,8 +4009,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4184,7 +4184,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4206,7 +4206,7 @@ func (ec *executionContext) marshalOAddress2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Address(ctx, sel, v) } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4216,7 +4216,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -4320,11 +4320,11 @@ func (ec *executionContext) marshalOCustomer2ᚕᚖgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalOInt2ᚕintᚄ(ctx context.Context, v interface{}) ([]int, error) { +func (ec *executionContext) unmarshalOInt2ᚕintᚄ(ctx context.Context, v any) ([]int, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4358,11 +4358,11 @@ func (ec *executionContext) marshalOInt2ᚕintᚄ(ctx context.Context, sel ast.S return ret } -func (ec *executionContext) unmarshalOInt2ᚕᚕint(ctx context.Context, v interface{}) ([][]int, error) { +func (ec *executionContext) unmarshalOInt2ᚕᚕint(ctx context.Context, v any) ([][]int, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4484,7 +4484,7 @@ func (ec *executionContext) marshalOOrder2ᚕᚖgithubᚗcomᚋ99designsᚋgqlge return ret } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/_examples/deferexample/generated.go b/_examples/deferexample/generated.go index 82bde6a63b7..7b40d3144b0 100644 --- a/_examples/deferexample/generated.go +++ b/_examples/deferexample/generated.go @@ -92,7 +92,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -283,9 +283,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Mutation_createTodo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_createTodo_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Mutation_createTodo_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -295,7 +295,7 @@ func (ec *executionContext) field_Mutation_createTodo_args(ctx context.Context, } func (ec *executionContext) field_Mutation_createTodo_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (NewTodo, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) if tmp, ok := rawArgs["input"]; ok { @@ -306,9 +306,9 @@ func (ec *executionContext) field_Mutation_createTodo_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -318,7 +318,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) if tmp, ok := rawArgs["name"]; ok { @@ -329,9 +329,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -341,7 +341,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) if tmp, ok := rawArgs["includeDeprecated"]; ok { @@ -352,9 +352,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -364,7 +364,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) if tmp, ok := rawArgs["includeDeprecated"]; ok { @@ -395,7 +395,7 @@ func (ec *executionContext) _Mutation_createTodo(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().CreateTodo(rctx, fc.Args["input"].(NewTodo)) }) @@ -460,7 +460,7 @@ func (ec *executionContext) _Query_todos(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Todos(rctx) }) @@ -514,7 +514,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -588,7 +588,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -643,7 +643,7 @@ func (ec *executionContext) _Todo_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -687,7 +687,7 @@ func (ec *executionContext) _Todo_text(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Text, nil }) @@ -731,7 +731,7 @@ func (ec *executionContext) _Todo_done(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Done, nil }) @@ -775,7 +775,7 @@ func (ec *executionContext) _Todo_user(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Todo().User(rctx, obj) }) @@ -825,7 +825,7 @@ func (ec *executionContext) _User_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -869,7 +869,7 @@ func (ec *executionContext) _User_name(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -913,7 +913,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -957,7 +957,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -998,7 +998,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -1042,7 +1042,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1096,7 +1096,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -1140,7 +1140,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1184,7 +1184,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1225,7 +1225,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1269,7 +1269,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1310,7 +1310,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1354,7 +1354,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1395,7 +1395,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1449,7 +1449,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1515,7 +1515,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1559,7 +1559,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1600,7 +1600,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1644,7 +1644,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1685,7 +1685,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1751,7 +1751,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -1792,7 +1792,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1833,7 +1833,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -1899,7 +1899,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -1965,7 +1965,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -2028,7 +2028,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -2091,7 +2091,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -2147,7 +2147,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -2191,7 +2191,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2232,7 +2232,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2273,7 +2273,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2339,7 +2339,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -2402,7 +2402,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -2465,7 +2465,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2527,7 +2527,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -2578,7 +2578,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -2641,7 +2641,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -2674,10 +2674,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputNewTodo(ctx context.Context, obj interface{}) (NewTodo, error) { +func (ec *executionContext) unmarshalInputNewTodo(ctx context.Context, obj any) (NewTodo, error) { var it NewTodo - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -3292,7 +3292,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3307,7 +3307,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNID2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3322,12 +3322,12 @@ func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalNNewTodo2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋdeferexampleᚐNewTodo(ctx context.Context, v interface{}) (NewTodo, error) { +func (ec *executionContext) unmarshalNNewTodo2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋdeferexampleᚐNewTodo(ctx context.Context, v any) (NewTodo, error) { res, err := ec.unmarshalInputNewTodo(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3462,7 +3462,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3477,8 +3477,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -3652,7 +3652,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3667,7 +3667,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3677,7 +3677,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -3693,7 +3693,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/_examples/embedding/subdir/directives.generated.go b/_examples/embedding/subdir/directives.generated.go index f7493e77270..392b814f14d 100644 --- a/_examples/embedding/subdir/directives.generated.go +++ b/_examples/embedding/subdir/directives.generated.go @@ -39,7 +39,7 @@ import ( // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalN_FieldSet2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN_FieldSet2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } diff --git a/_examples/embedding/subdir/entity.generated.go b/_examples/embedding/subdir/entity.generated.go index bae8b973607..bc144b6a550 100644 --- a/_examples/embedding/subdir/entity.generated.go +++ b/_examples/embedding/subdir/entity.generated.go @@ -39,7 +39,7 @@ func (ec *executionContext) __Service_sdl(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SDL, nil }) diff --git a/_examples/embedding/subdir/gendir/generated.go b/_examples/embedding/subdir/gendir/generated.go index 462a26f97cf..383257da985 100644 --- a/_examples/embedding/subdir/gendir/generated.go +++ b/_examples/embedding/subdir/gendir/generated.go @@ -77,7 +77,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -243,9 +243,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -255,7 +255,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -275,9 +275,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -287,7 +287,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -307,9 +307,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -319,7 +319,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -359,7 +359,7 @@ func (ec *executionContext) _Query_inSchemadir(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().InSchemadir(rctx) }) @@ -403,7 +403,7 @@ func (ec *executionContext) _Query_parentdir(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Parentdir(rctx) }) @@ -447,7 +447,7 @@ func (ec *executionContext) _Query_subdir(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Subdir(rctx) }) @@ -491,7 +491,7 @@ func (ec *executionContext) _Query__service(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.__resolve__service(ctx) }) @@ -539,7 +539,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -613,7 +613,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -668,7 +668,7 @@ func (ec *executionContext) __Service_sdl(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SDL, nil }) @@ -709,7 +709,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -753,7 +753,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -794,7 +794,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -838,7 +838,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -892,7 +892,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -936,7 +936,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -980,7 +980,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1021,7 +1021,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1065,7 +1065,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1106,7 +1106,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1150,7 +1150,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1191,7 +1191,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1245,7 +1245,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1311,7 +1311,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1355,7 +1355,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1396,7 +1396,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1440,7 +1440,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1481,7 +1481,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1547,7 +1547,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -1588,7 +1588,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1629,7 +1629,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -1695,7 +1695,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -1761,7 +1761,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -1824,7 +1824,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -1887,7 +1887,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -1943,7 +1943,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -1987,7 +1987,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2028,7 +2028,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2069,7 +2069,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2135,7 +2135,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -2198,7 +2198,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -2261,7 +2261,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2323,7 +2323,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -2374,7 +2374,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -2437,7 +2437,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -2978,7 +2978,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2993,7 +2993,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3008,7 +3008,7 @@ func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalN_FieldSet2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN_FieldSet2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3075,7 +3075,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3090,8 +3090,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -3265,7 +3265,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3280,7 +3280,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3290,7 +3290,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -3306,7 +3306,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalOString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3316,7 +3316,7 @@ func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/_examples/embedding/subdir/prelude.generated.go b/_examples/embedding/subdir/prelude.generated.go index c18200dbc90..0133e3be696 100644 --- a/_examples/embedding/subdir/prelude.generated.go +++ b/_examples/embedding/subdir/prelude.generated.go @@ -21,9 +21,9 @@ import ( // region ***************************** args.gotpl ***************************** -func (ec *executionContext) dir_defer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_defer_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_defer_argsIf(ctx, rawArgs) if err != nil { return nil, err @@ -38,7 +38,7 @@ func (ec *executionContext) dir_defer_args(ctx context.Context, rawArgs map[stri } func (ec *executionContext) dir_defer_argsIf( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -60,7 +60,7 @@ func (ec *executionContext) dir_defer_argsIf( func (ec *executionContext) dir_defer_argsLabel( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -80,9 +80,9 @@ func (ec *executionContext) dir_defer_argsLabel( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -92,7 +92,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -112,9 +112,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -124,7 +124,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -164,7 +164,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -208,7 +208,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -249,7 +249,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -293,7 +293,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -347,7 +347,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -391,7 +391,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -435,7 +435,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -476,7 +476,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -520,7 +520,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -561,7 +561,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -605,7 +605,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -646,7 +646,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -700,7 +700,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -766,7 +766,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -810,7 +810,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -851,7 +851,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -895,7 +895,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -936,7 +936,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1002,7 +1002,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -1043,7 +1043,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1084,7 +1084,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -1150,7 +1150,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -1216,7 +1216,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -1279,7 +1279,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -1342,7 +1342,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -1398,7 +1398,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -1442,7 +1442,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -1483,7 +1483,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1524,7 +1524,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -1590,7 +1590,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -1653,7 +1653,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -1716,7 +1716,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -1778,7 +1778,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -1829,7 +1829,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -1892,7 +1892,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -2259,7 +2259,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2274,7 +2274,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2337,7 +2337,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2352,8 +2352,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -2527,7 +2527,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2542,7 +2542,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2552,7 +2552,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -2568,7 +2568,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalOString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2578,7 +2578,7 @@ func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/_examples/embedding/subdir/root.generated.go b/_examples/embedding/subdir/root.generated.go index 2a12c745c7b..dd1ec60ac49 100644 --- a/_examples/embedding/subdir/root.generated.go +++ b/_examples/embedding/subdir/root.generated.go @@ -27,9 +27,9 @@ type QueryResolver interface { // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -39,7 +39,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -79,7 +79,7 @@ func (ec *executionContext) _Query_inSchemadir(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().InSchemadir(rctx) }) @@ -123,7 +123,7 @@ func (ec *executionContext) _Query_parentdir(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Parentdir(rctx) }) @@ -167,7 +167,7 @@ func (ec *executionContext) _Query_subdir(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Subdir(rctx) }) @@ -211,7 +211,7 @@ func (ec *executionContext) _Query__service(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.__resolve__service(ctx) }) @@ -259,7 +259,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -333,7 +333,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) diff --git a/_examples/embedding/subdir/root_.generated.go b/_examples/embedding/subdir/root_.generated.go index 0a8fa8ba799..c9f02a622d4 100644 --- a/_examples/embedding/subdir/root_.generated.go +++ b/_examples/embedding/subdir/root_.generated.go @@ -67,7 +67,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { diff --git a/_examples/enum/api/exec.go b/_examples/enum/api/exec.go index b5faef1f880..f443eae8561 100644 --- a/_examples/enum/api/exec.go +++ b/_examples/enum/api/exec.go @@ -96,7 +96,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -453,9 +453,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -465,7 +465,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -485,9 +485,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query_boolTypedN_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_boolTypedN_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_boolTypedN_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -497,7 +497,7 @@ func (ec *executionContext) field_Query_boolTypedN_args(ctx context.Context, raw } func (ec *executionContext) field_Query_boolTypedN_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*model.BoolTyped, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -517,9 +517,9 @@ func (ec *executionContext) field_Query_boolTypedN_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_boolTyped_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_boolTyped_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_boolTyped_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -529,7 +529,7 @@ func (ec *executionContext) field_Query_boolTyped_args(ctx context.Context, rawA } func (ec *executionContext) field_Query_boolTyped_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (model.BoolTyped, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -549,9 +549,9 @@ func (ec *executionContext) field_Query_boolTyped_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_boolUntypedN_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_boolUntypedN_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_boolUntypedN_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -561,7 +561,7 @@ func (ec *executionContext) field_Query_boolUntypedN_args(ctx context.Context, r } func (ec *executionContext) field_Query_boolUntypedN_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -581,9 +581,9 @@ func (ec *executionContext) field_Query_boolUntypedN_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_boolUntyped_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_boolUntyped_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_boolUntyped_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -593,7 +593,7 @@ func (ec *executionContext) field_Query_boolUntyped_args(ctx context.Context, ra } func (ec *executionContext) field_Query_boolUntyped_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -613,9 +613,9 @@ func (ec *executionContext) field_Query_boolUntyped_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_inPackage_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_inPackage_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_inPackage_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -625,7 +625,7 @@ func (ec *executionContext) field_Query_inPackage_args(ctx context.Context, rawA } func (ec *executionContext) field_Query_inPackage_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (InPackage, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -645,9 +645,9 @@ func (ec *executionContext) field_Query_inPackage_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_intTypedN_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_intTypedN_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_intTypedN_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -657,7 +657,7 @@ func (ec *executionContext) field_Query_intTypedN_args(ctx context.Context, rawA } func (ec *executionContext) field_Query_intTypedN_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*model.IntTyped, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -677,9 +677,9 @@ func (ec *executionContext) field_Query_intTypedN_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_intTyped_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_intTyped_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_intTyped_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -689,7 +689,7 @@ func (ec *executionContext) field_Query_intTyped_args(ctx context.Context, rawAr } func (ec *executionContext) field_Query_intTyped_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (model.IntTyped, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -709,9 +709,9 @@ func (ec *executionContext) field_Query_intTyped_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_intUntypedN_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_intUntypedN_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_intUntypedN_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -721,7 +721,7 @@ func (ec *executionContext) field_Query_intUntypedN_args(ctx context.Context, ra } func (ec *executionContext) field_Query_intUntypedN_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -741,9 +741,9 @@ func (ec *executionContext) field_Query_intUntypedN_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_intUntyped_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_intUntyped_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_intUntyped_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -753,7 +753,7 @@ func (ec *executionContext) field_Query_intUntyped_args(ctx context.Context, raw } func (ec *executionContext) field_Query_intUntyped_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -773,9 +773,9 @@ func (ec *executionContext) field_Query_intUntyped_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_stringTypedN_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_stringTypedN_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_stringTypedN_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -785,7 +785,7 @@ func (ec *executionContext) field_Query_stringTypedN_args(ctx context.Context, r } func (ec *executionContext) field_Query_stringTypedN_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*model.StringTyped, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -805,9 +805,9 @@ func (ec *executionContext) field_Query_stringTypedN_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_stringTyped_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_stringTyped_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_stringTyped_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -817,7 +817,7 @@ func (ec *executionContext) field_Query_stringTyped_args(ctx context.Context, ra } func (ec *executionContext) field_Query_stringTyped_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (model.StringTyped, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -837,9 +837,9 @@ func (ec *executionContext) field_Query_stringTyped_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_stringUntypedN_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_stringUntypedN_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_stringUntypedN_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -849,7 +849,7 @@ func (ec *executionContext) field_Query_stringUntypedN_args(ctx context.Context, } func (ec *executionContext) field_Query_stringUntypedN_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -869,9 +869,9 @@ func (ec *executionContext) field_Query_stringUntypedN_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_stringUntyped_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_stringUntyped_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_stringUntyped_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -881,7 +881,7 @@ func (ec *executionContext) field_Query_stringUntyped_args(ctx context.Context, } func (ec *executionContext) field_Query_stringUntyped_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -901,9 +901,9 @@ func (ec *executionContext) field_Query_stringUntyped_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_varTyped_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_varTyped_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_varTyped_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -913,7 +913,7 @@ func (ec *executionContext) field_Query_varTyped_args(ctx context.Context, rawAr } func (ec *executionContext) field_Query_varTyped_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (model.VarTyped, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -933,9 +933,9 @@ func (ec *executionContext) field_Query_varTyped_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_varUntyped_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_varUntyped_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_varUntyped_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -945,7 +945,7 @@ func (ec *executionContext) field_Query_varUntyped_args(ctx context.Context, raw } func (ec *executionContext) field_Query_varUntyped_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -965,9 +965,9 @@ func (ec *executionContext) field_Query_varUntyped_argsArg( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -977,7 +977,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -997,9 +997,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -1009,7 +1009,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1049,7 +1049,7 @@ func (ec *executionContext) _Query_intTyped(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().IntTyped(rctx, fc.Args["arg"].(model.IntTyped)) }) @@ -1104,7 +1104,7 @@ func (ec *executionContext) _Query_intUntyped(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().IntUntyped(rctx, fc.Args["arg"].(int)) }) @@ -1159,7 +1159,7 @@ func (ec *executionContext) _Query_intTypedN(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().IntTypedN(rctx, fc.Args["arg"].(*model.IntTyped)) }) @@ -1211,7 +1211,7 @@ func (ec *executionContext) _Query_intUntypedN(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().IntUntypedN(rctx, fc.Args["arg"].(*int)) }) @@ -1263,7 +1263,7 @@ func (ec *executionContext) _Query_stringTyped(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().StringTyped(rctx, fc.Args["arg"].(model.StringTyped)) }) @@ -1318,7 +1318,7 @@ func (ec *executionContext) _Query_stringUntyped(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().StringUntyped(rctx, fc.Args["arg"].(string)) }) @@ -1373,7 +1373,7 @@ func (ec *executionContext) _Query_stringTypedN(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().StringTypedN(rctx, fc.Args["arg"].(*model.StringTyped)) }) @@ -1425,7 +1425,7 @@ func (ec *executionContext) _Query_stringUntypedN(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().StringUntypedN(rctx, fc.Args["arg"].(*string)) }) @@ -1477,7 +1477,7 @@ func (ec *executionContext) _Query_boolTyped(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().BoolTyped(rctx, fc.Args["arg"].(model.BoolTyped)) }) @@ -1532,7 +1532,7 @@ func (ec *executionContext) _Query_boolUntyped(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().BoolUntyped(rctx, fc.Args["arg"].(bool)) }) @@ -1587,7 +1587,7 @@ func (ec *executionContext) _Query_boolTypedN(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().BoolTypedN(rctx, fc.Args["arg"].(*model.BoolTyped)) }) @@ -1639,7 +1639,7 @@ func (ec *executionContext) _Query_boolUntypedN(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().BoolUntypedN(rctx, fc.Args["arg"].(*bool)) }) @@ -1691,7 +1691,7 @@ func (ec *executionContext) _Query_varTyped(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().VarTyped(rctx, fc.Args["arg"].(model.VarTyped)) }) @@ -1746,7 +1746,7 @@ func (ec *executionContext) _Query_varUntyped(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().VarUntyped(rctx, fc.Args["arg"].(bool)) }) @@ -1801,7 +1801,7 @@ func (ec *executionContext) _Query_inPackage(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().InPackage(rctx, fc.Args["arg"].(InPackage)) }) @@ -1856,7 +1856,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -1930,7 +1930,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -1985,7 +1985,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2029,7 +2029,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2070,7 +2070,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -2114,7 +2114,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -2168,7 +2168,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -2212,7 +2212,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2256,7 +2256,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2297,7 +2297,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -2341,7 +2341,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -2382,7 +2382,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2426,7 +2426,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2467,7 +2467,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -2521,7 +2521,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -2587,7 +2587,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -2631,7 +2631,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -2672,7 +2672,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2716,7 +2716,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2757,7 +2757,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -2823,7 +2823,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -2864,7 +2864,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2905,7 +2905,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -2971,7 +2971,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -3037,7 +3037,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -3100,7 +3100,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -3163,7 +3163,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -3219,7 +3219,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -3263,7 +3263,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -3304,7 +3304,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -3345,7 +3345,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -3411,7 +3411,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -3474,7 +3474,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -3537,7 +3537,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -3599,7 +3599,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -3650,7 +3650,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -3713,7 +3713,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -4442,7 +4442,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolTyped2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋmodelᚐBoolTyped(ctx context.Context, v interface{}) (model.BoolTyped, error) { +func (ec *executionContext) unmarshalNBoolTyped2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋmodelᚐBoolTyped(ctx context.Context, v any) (model.BoolTyped, error) { tmp, err := graphql.UnmarshalString(v) res := unmarshalNBoolTyped2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋmodelᚐBoolTyped[tmp] return res, graphql.ErrorOnPath(ctx, err) @@ -4469,7 +4469,7 @@ var ( } ) -func (ec *executionContext) unmarshalNBoolUntyped2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolUntyped2bool(ctx context.Context, v any) (bool, error) { tmp, err := graphql.UnmarshalString(v) res := unmarshalNBoolUntyped2bool[tmp] return res, graphql.ErrorOnPath(ctx, err) @@ -4496,7 +4496,7 @@ var ( } ) -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4511,7 +4511,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNInPackage2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋapiᚐInPackage(ctx context.Context, v interface{}) (InPackage, error) { +func (ec *executionContext) unmarshalNInPackage2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋapiᚐInPackage(ctx context.Context, v any) (InPackage, error) { tmp, err := graphql.UnmarshalString(v) res := unmarshalNInPackage2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋapiᚐInPackage[tmp] return res, graphql.ErrorOnPath(ctx, err) @@ -4538,7 +4538,7 @@ var ( } ) -func (ec *executionContext) unmarshalNIntTyped2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋmodelᚐIntTyped(ctx context.Context, v interface{}) (model.IntTyped, error) { +func (ec *executionContext) unmarshalNIntTyped2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋmodelᚐIntTyped(ctx context.Context, v any) (model.IntTyped, error) { tmp, err := graphql.UnmarshalString(v) res := unmarshalNIntTyped2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋmodelᚐIntTyped[tmp] return res, graphql.ErrorOnPath(ctx, err) @@ -4565,7 +4565,7 @@ var ( } ) -func (ec *executionContext) unmarshalNIntUntyped2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalNIntUntyped2int(ctx context.Context, v any) (int, error) { tmp, err := graphql.UnmarshalString(v) res := unmarshalNIntUntyped2int[tmp] return res, graphql.ErrorOnPath(ctx, err) @@ -4592,7 +4592,7 @@ var ( } ) -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4607,7 +4607,7 @@ func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalNStringTyped2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋmodelᚐStringTyped(ctx context.Context, v interface{}) (model.StringTyped, error) { +func (ec *executionContext) unmarshalNStringTyped2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋmodelᚐStringTyped(ctx context.Context, v any) (model.StringTyped, error) { tmp, err := graphql.UnmarshalString(v) res := unmarshalNStringTyped2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋmodelᚐStringTyped[tmp] return res, graphql.ErrorOnPath(ctx, err) @@ -4634,7 +4634,7 @@ var ( } ) -func (ec *executionContext) unmarshalNStringUntyped2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNStringUntyped2string(ctx context.Context, v any) (string, error) { tmp, err := graphql.UnmarshalString(v) res := unmarshalNStringUntyped2string[tmp] return res, graphql.ErrorOnPath(ctx, err) @@ -4661,7 +4661,7 @@ var ( } ) -func (ec *executionContext) unmarshalNVarTyped2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋmodelᚐVarTyped(ctx context.Context, v interface{}) (model.VarTyped, error) { +func (ec *executionContext) unmarshalNVarTyped2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋmodelᚐVarTyped(ctx context.Context, v any) (model.VarTyped, error) { tmp, err := graphql.UnmarshalString(v) res := unmarshalNVarTyped2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋmodelᚐVarTyped[tmp] return res, graphql.ErrorOnPath(ctx, err) @@ -4688,7 +4688,7 @@ var ( } ) -func (ec *executionContext) unmarshalNVarUntyped2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNVarUntyped2bool(ctx context.Context, v any) (bool, error) { tmp, err := graphql.UnmarshalString(v) res := unmarshalNVarUntyped2bool[tmp] return res, graphql.ErrorOnPath(ctx, err) @@ -4763,7 +4763,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4778,8 +4778,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4953,7 +4953,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4968,7 +4968,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolTyped2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋmodelᚐBoolTyped(ctx context.Context, v interface{}) (*model.BoolTyped, error) { +func (ec *executionContext) unmarshalOBoolTyped2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋmodelᚐBoolTyped(ctx context.Context, v any) (*model.BoolTyped, error) { if v == nil { return nil, nil } @@ -4996,7 +4996,7 @@ var ( } ) -func (ec *executionContext) unmarshalOBoolUntyped2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolUntyped2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -5024,7 +5024,7 @@ var ( } ) -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -5034,7 +5034,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -5050,7 +5050,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOIntTyped2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋmodelᚐIntTyped(ctx context.Context, v interface{}) (*model.IntTyped, error) { +func (ec *executionContext) unmarshalOIntTyped2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋmodelᚐIntTyped(ctx context.Context, v any) (*model.IntTyped, error) { if v == nil { return nil, nil } @@ -5078,7 +5078,7 @@ var ( } ) -func (ec *executionContext) unmarshalOIntUntyped2ᚖint(ctx context.Context, v interface{}) (*int, error) { +func (ec *executionContext) unmarshalOIntUntyped2ᚖint(ctx context.Context, v any) (*int, error) { if v == nil { return nil, nil } @@ -5106,11 +5106,11 @@ var ( } ) -func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { +func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -5144,7 +5144,7 @@ func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } @@ -5160,7 +5160,7 @@ func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel as return res } -func (ec *executionContext) unmarshalOStringTyped2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋmodelᚐStringTyped(ctx context.Context, v interface{}) (*model.StringTyped, error) { +func (ec *executionContext) unmarshalOStringTyped2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋenumᚋmodelᚐStringTyped(ctx context.Context, v any) (*model.StringTyped, error) { if v == nil { return nil, nil } @@ -5188,7 +5188,7 @@ var ( } ) -func (ec *executionContext) unmarshalOStringUntyped2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOStringUntyped2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/_examples/federation/accounts/graph/federation.go b/_examples/federation/accounts/graph/federation.go index 62f5906d523..97c3df741b4 100644 --- a/_examples/federation/accounts/graph/federation.go +++ b/_examples/federation/accounts/graph/federation.go @@ -36,7 +36,7 @@ func (ec *executionContext) __resolve__service(ctx context.Context) (fedruntime. }, nil } -func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]interface{}) []fedruntime.Entity { +func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]any) []fedruntime.Entity { list := make([]fedruntime.Entity, len(representations)) repsMap := ec.buildRepresentationGroups(ctx, representations) @@ -224,7 +224,7 @@ func entityResolverNameForEmailHost(ctx context.Context, rep EntityRepresentatio for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -259,7 +259,7 @@ func entityResolverNameForUser(ctx context.Context, rep EntityRepresentation) (s for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val diff --git a/_examples/federation/accounts/graph/generated.go b/_examples/federation/accounts/graph/generated.go index 2bf01b4963b..082cd041d6b 100644 --- a/_examples/federation/accounts/graph/generated.go +++ b/_examples/federation/accounts/graph/generated.go @@ -62,7 +62,7 @@ type ComplexityRoot struct { Query struct { Me func(childComplexity int) int __resolve__service func(childComplexity int) int - __resolve_entities func(childComplexity int, representations []map[string]interface{}) int + __resolve_entities func(childComplexity int, representations []map[string]any) int } User struct { @@ -102,7 +102,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -169,7 +169,7 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return 0, false } - return e.complexity.Query.__resolve_entities(childComplexity, args["representations"].([]map[string]interface{})), true + return e.complexity.Query.__resolve_entities(childComplexity, args["representations"].([]map[string]any)), true case "User.email": if e.complexity.User.Email == nil { @@ -384,9 +384,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Entity_findEmailHostByID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findEmailHostByID_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findEmailHostByID_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -396,7 +396,7 @@ func (ec *executionContext) field_Entity_findEmailHostByID_args(ctx context.Cont } func (ec *executionContext) field_Entity_findEmailHostByID_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -416,9 +416,9 @@ func (ec *executionContext) field_Entity_findEmailHostByID_argsID( return zeroVal, nil } -func (ec *executionContext) field_Entity_findUserByID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findUserByID_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findUserByID_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -428,7 +428,7 @@ func (ec *executionContext) field_Entity_findUserByID_args(ctx context.Context, } func (ec *executionContext) field_Entity_findUserByID_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -448,9 +448,9 @@ func (ec *executionContext) field_Entity_findUserByID_argsID( return zeroVal, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -460,7 +460,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -480,9 +480,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query__entities_argsRepresentations(ctx, rawArgs) if err != nil { return nil, err @@ -492,14 +492,14 @@ func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawA } func (ec *executionContext) field_Query__entities_argsRepresentations( ctx context.Context, - rawArgs map[string]interface{}, -) ([]map[string]interface{}, error) { + rawArgs map[string]any, +) ([]map[string]any, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives // even if the argument is null. _, ok := rawArgs["representations"] if !ok { - var zeroVal []map[string]interface{} + var zeroVal []map[string]any return zeroVal, nil } @@ -508,13 +508,13 @@ func (ec *executionContext) field_Query__entities_argsRepresentations( return ec.unmarshalN_Any2ᚕmapᚄ(ctx, tmp) } - var zeroVal []map[string]interface{} + var zeroVal []map[string]any return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -524,7 +524,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -544,9 +544,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -556,7 +556,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -596,7 +596,7 @@ func (ec *executionContext) _EmailHost_id(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -640,7 +640,7 @@ func (ec *executionContext) _EmailHost_name(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -684,7 +684,7 @@ func (ec *executionContext) _Entity_findEmailHostByID(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindEmailHostByID(rctx, fc.Args["id"].(string)) }) @@ -745,7 +745,7 @@ func (ec *executionContext) _Entity_findUserByID(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindUserByID(rctx, fc.Args["id"].(string)) }) @@ -810,7 +810,7 @@ func (ec *executionContext) _Query_me(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Me(rctx) }) @@ -861,9 +861,9 @@ func (ec *executionContext) _Query__entities(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.__resolve_entities(ctx, fc.Args["representations"].([]map[string]interface{})), nil + return ec.__resolve_entities(ctx, fc.Args["representations"].([]map[string]any)), nil }) if err != nil { ec.Error(ctx, err) @@ -916,7 +916,7 @@ func (ec *executionContext) _Query__service(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.__resolve__service(ctx) }) @@ -964,7 +964,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -1038,7 +1038,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -1093,7 +1093,7 @@ func (ec *executionContext) _User_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -1137,7 +1137,7 @@ func (ec *executionContext) _User_host(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.User().Host(rctx, obj) }) @@ -1187,7 +1187,7 @@ func (ec *executionContext) _User_email(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Email, nil }) @@ -1231,7 +1231,7 @@ func (ec *executionContext) _User_username(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Username, nil }) @@ -1275,7 +1275,7 @@ func (ec *executionContext) __Service_sdl(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SDL, nil }) @@ -1316,7 +1316,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1360,7 +1360,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1401,7 +1401,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -1445,7 +1445,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1499,7 +1499,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -1543,7 +1543,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1587,7 +1587,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1628,7 +1628,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1672,7 +1672,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1713,7 +1713,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1757,7 +1757,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1798,7 +1798,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1852,7 +1852,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1918,7 +1918,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1962,7 +1962,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -2003,7 +2003,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2047,7 +2047,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2088,7 +2088,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -2154,7 +2154,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -2195,7 +2195,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2236,7 +2236,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -2302,7 +2302,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -2368,7 +2368,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -2431,7 +2431,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -2494,7 +2494,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -2550,7 +2550,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -2594,7 +2594,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2635,7 +2635,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2676,7 +2676,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2742,7 +2742,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -2805,7 +2805,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -2868,7 +2868,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2930,7 +2930,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -2981,7 +2981,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -3044,7 +3044,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -3798,7 +3798,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3827,7 +3827,7 @@ func (ec *executionContext) marshalNEmailHost2ᚖgithubᚗcomᚋ99designsᚋgqlg return ec._EmailHost(ctx, sel, v) } -func (ec *executionContext) unmarshalNFieldSet2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNFieldSet2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3842,7 +3842,7 @@ func (ec *executionContext) marshalNFieldSet2string(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNID2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3857,7 +3857,7 @@ func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3886,12 +3886,12 @@ func (ec *executionContext) marshalNUser2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ return ec._User(ctx, sel, v) } -func (ec *executionContext) unmarshalN_Any2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalN_Any2map(ctx context.Context, v any) (map[string]any, error) { res, err := graphql.UnmarshalMap(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.SelectionSet, v map[string]any) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -3907,13 +3907,13 @@ func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.Select return res } -func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v interface{}) ([]map[string]interface{}, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v any) ([]map[string]any, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } var err error - res := make([]map[string]interface{}, len(vSlice)) + res := make([]map[string]any, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) res[i], err = ec.unmarshalN_Any2map(ctx, vSlice[i]) @@ -3924,7 +3924,7 @@ func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v inte return res, nil } -func (ec *executionContext) marshalN_Any2ᚕmapᚄ(ctx context.Context, sel ast.SelectionSet, v []map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalN_Any2ᚕmapᚄ(ctx context.Context, sel ast.SelectionSet, v []map[string]any) graphql.Marshaler { ret := make(graphql.Array, len(v)) for i := range v { ret[i] = ec.marshalN_Any2map(ctx, sel, v[i]) @@ -4029,7 +4029,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4044,8 +4044,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4219,7 +4219,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4234,7 +4234,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalNfederation__Policy2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNfederation__Policy2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4249,8 +4249,8 @@ func (ec *executionContext) marshalNfederation__Policy2string(ctx context.Contex return res } -func (ec *executionContext) unmarshalNfederation__Policy2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNfederation__Policy2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4281,8 +4281,8 @@ func (ec *executionContext) marshalNfederation__Policy2ᚕstringᚄ(ctx context. return ret } -func (ec *executionContext) unmarshalNfederation__Policy2ᚕᚕstringᚄ(ctx context.Context, v interface{}) ([][]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNfederation__Policy2ᚕᚕstringᚄ(ctx context.Context, v any) ([][]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4313,7 +4313,7 @@ func (ec *executionContext) marshalNfederation__Policy2ᚕᚕstringᚄ(ctx conte return ret } -func (ec *executionContext) unmarshalNfederation__Scope2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNfederation__Scope2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4328,8 +4328,8 @@ func (ec *executionContext) marshalNfederation__Scope2string(ctx context.Context return res } -func (ec *executionContext) unmarshalNfederation__Scope2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNfederation__Scope2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4360,8 +4360,8 @@ func (ec *executionContext) marshalNfederation__Scope2ᚕstringᚄ(ctx context.C return ret } -func (ec *executionContext) unmarshalNfederation__Scope2ᚕᚕstringᚄ(ctx context.Context, v interface{}) ([][]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNfederation__Scope2ᚕᚕstringᚄ(ctx context.Context, v any) ([][]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4392,7 +4392,7 @@ func (ec *executionContext) marshalNfederation__Scope2ᚕᚕstringᚄ(ctx contex return ret } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4402,7 +4402,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -4418,7 +4418,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalOString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4428,11 +4428,11 @@ func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { +func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4466,7 +4466,7 @@ func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/_examples/federation/products/graph/federation.go b/_examples/federation/products/graph/federation.go index d5275011036..c5f5cc0365d 100644 --- a/_examples/federation/products/graph/federation.go +++ b/_examples/federation/products/graph/federation.go @@ -36,7 +36,7 @@ func (ec *executionContext) __resolve__service(ctx context.Context) (fedruntime. }, nil } -func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]interface{}) []fedruntime.Entity { +func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]any) []fedruntime.Entity { list := make([]fedruntime.Entity, len(representations)) repsMap := ec.buildRepresentationGroups(ctx, representations) @@ -180,7 +180,7 @@ func (ec *executionContext) resolveEntity( switch resolverName { case "findProductByManufacturerIDAndID": - id0, err := ec.unmarshalNString2string(ctx, rep["manufacturer"].(map[string]interface{})["id"]) + id0, err := ec.unmarshalNString2string(ctx, rep["manufacturer"].(map[string]any)["id"]) if err != nil { return nil, fmt.Errorf(`unmarshalling param 0 for findProductByManufacturerIDAndID(): %w`, err) } @@ -239,7 +239,7 @@ func entityResolverNameForManufacturer(ctx context.Context, rep EntityRepresenta for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -274,7 +274,7 @@ func entityResolverNameForProduct(ctx context.Context, rep EntityRepresentation) for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -288,7 +288,7 @@ func entityResolverNameForProduct(ctx context.Context, rep EntityRepresentation) fmt.Errorf("%w due to missing Key Field \"manufacturer\" for Product", ErrTypeNotFound)) break } - if m, ok = val.(map[string]interface{}); !ok { + if m, ok = val.(map[string]any); !ok { // nested field value is not a map[string]interface so don't use it entityResolverErrs = append(entityResolverErrs, fmt.Errorf("%w due to nested Key Field \"manufacturer\" value not matching map[string]any for Product", ErrTypeNotFound)) @@ -323,7 +323,7 @@ func entityResolverNameForProduct(ctx context.Context, rep EntityRepresentation) for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val diff --git a/_examples/federation/products/graph/generated.go b/_examples/federation/products/graph/generated.go index d65f535f954..9b7c65e7dca 100644 --- a/_examples/federation/products/graph/generated.go +++ b/_examples/federation/products/graph/generated.go @@ -73,7 +73,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec @@ -255,9 +255,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Entity_findManufacturerByID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findManufacturerByID_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findManufacturerByID_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -267,7 +267,7 @@ func (ec *executionContext) field_Entity_findManufacturerByID_args(ctx context.C } func (ec *executionContext) field_Entity_findManufacturerByID_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -287,9 +287,9 @@ func (ec *executionContext) field_Entity_findManufacturerByID_argsID( return zeroVal, nil } -func (ec *executionContext) field_Entity_findProductByManufacturerIDAndID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findProductByManufacturerIDAndID_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findProductByManufacturerIDAndID_argsManufacturerID(ctx, rawArgs) if err != nil { return nil, err @@ -304,7 +304,7 @@ func (ec *executionContext) field_Entity_findProductByManufacturerIDAndID_args(c } func (ec *executionContext) field_Entity_findProductByManufacturerIDAndID_argsManufacturerID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -326,7 +326,7 @@ func (ec *executionContext) field_Entity_findProductByManufacturerIDAndID_argsMa func (ec *executionContext) field_Entity_findProductByManufacturerIDAndID_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -346,9 +346,9 @@ func (ec *executionContext) field_Entity_findProductByManufacturerIDAndID_argsID return zeroVal, nil } -func (ec *executionContext) field_Entity_findProductByUpc_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findProductByUpc_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findProductByUpc_argsUpc(ctx, rawArgs) if err != nil { return nil, err @@ -358,7 +358,7 @@ func (ec *executionContext) field_Entity_findProductByUpc_args(ctx context.Conte } func (ec *executionContext) field_Entity_findProductByUpc_argsUpc( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -378,9 +378,9 @@ func (ec *executionContext) field_Entity_findProductByUpc_argsUpc( return zeroVal, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -390,7 +390,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -410,9 +410,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query__entities_argsRepresentations(ctx, rawArgs) if err != nil { return nil, err @@ -422,14 +422,14 @@ func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawA } func (ec *executionContext) field_Query__entities_argsRepresentations( ctx context.Context, - rawArgs map[string]interface{}, -) ([]map[string]interface{}, error) { + rawArgs map[string]any, +) ([]map[string]any, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives // even if the argument is null. _, ok := rawArgs["representations"] if !ok { - var zeroVal []map[string]interface{} + var zeroVal []map[string]any return zeroVal, nil } @@ -438,13 +438,13 @@ func (ec *executionContext) field_Query__entities_argsRepresentations( return ec.unmarshalN_Any2ᚕmapᚄ(ctx, tmp) } - var zeroVal []map[string]interface{} + var zeroVal []map[string]any return zeroVal, nil } -func (ec *executionContext) field_Query_topProducts_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_topProducts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_topProducts_argsFirst(ctx, rawArgs) if err != nil { return nil, err @@ -454,7 +454,7 @@ func (ec *executionContext) field_Query_topProducts_args(ctx context.Context, ra } func (ec *executionContext) field_Query_topProducts_argsFirst( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -474,9 +474,9 @@ func (ec *executionContext) field_Query_topProducts_argsFirst( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -486,7 +486,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -506,9 +506,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -518,7 +518,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -558,7 +558,7 @@ func (ec *executionContext) _Entity_findManufacturerByID(ctx context.Context, fi ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManufacturerByID(rctx, fc.Args["id"].(string)) }) @@ -619,7 +619,7 @@ func (ec *executionContext) _Entity_findProductByManufacturerIDAndID(ctx context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindProductByManufacturerIDAndID(rctx, fc.Args["manufacturerID"].(string), fc.Args["id"].(string)) }) @@ -686,7 +686,7 @@ func (ec *executionContext) _Entity_findProductByUpc(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindProductByUpc(rctx, fc.Args["upc"].(string)) }) @@ -753,7 +753,7 @@ func (ec *executionContext) _Manufacturer_id(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -797,7 +797,7 @@ func (ec *executionContext) _Manufacturer_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -841,7 +841,7 @@ func (ec *executionContext) _Product_id(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -885,7 +885,7 @@ func (ec *executionContext) _Product_manufacturer(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Manufacturer, nil }) @@ -935,7 +935,7 @@ func (ec *executionContext) _Product_upc(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Upc, nil }) @@ -979,7 +979,7 @@ func (ec *executionContext) _Product_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1023,7 +1023,7 @@ func (ec *executionContext) _Product_price(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Price, nil }) @@ -1067,7 +1067,7 @@ func (ec *executionContext) _Query_topProducts(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().TopProducts(rctx, fc.Args["first"].(*int)) }) @@ -1131,9 +1131,9 @@ func (ec *executionContext) _Query__entities(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.__resolve_entities(ctx, fc.Args["representations"].([]map[string]interface{})), nil + return ec.__resolve_entities(ctx, fc.Args["representations"].([]map[string]any)), nil }) if err != nil { ec.Error(ctx, err) @@ -1186,7 +1186,7 @@ func (ec *executionContext) _Query__service(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.__resolve__service(ctx) }) @@ -1234,7 +1234,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -1308,7 +1308,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -1363,7 +1363,7 @@ func (ec *executionContext) __Service_sdl(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SDL, nil }) @@ -1404,7 +1404,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1448,7 +1448,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1489,7 +1489,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -1533,7 +1533,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1587,7 +1587,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -1631,7 +1631,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1675,7 +1675,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1716,7 +1716,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1760,7 +1760,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1801,7 +1801,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1845,7 +1845,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1886,7 +1886,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1940,7 +1940,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -2006,7 +2006,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -2050,7 +2050,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -2091,7 +2091,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2135,7 +2135,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2176,7 +2176,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -2242,7 +2242,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -2283,7 +2283,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2324,7 +2324,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -2390,7 +2390,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -2456,7 +2456,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -2519,7 +2519,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -2582,7 +2582,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -2638,7 +2638,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -2682,7 +2682,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2723,7 +2723,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2764,7 +2764,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2830,7 +2830,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -2893,7 +2893,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -2956,7 +2956,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -3018,7 +3018,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -3069,7 +3069,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -3132,7 +3132,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -3882,7 +3882,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3897,7 +3897,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNFieldSet2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNFieldSet2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3912,7 +3912,7 @@ func (ec *executionContext) marshalNFieldSet2string(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3955,7 +3955,7 @@ func (ec *executionContext) marshalNProduct2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Product(ctx, sel, v) } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3970,12 +3970,12 @@ func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalN_Any2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalN_Any2map(ctx context.Context, v any) (map[string]any, error) { res, err := graphql.UnmarshalMap(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.SelectionSet, v map[string]any) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -3991,13 +3991,13 @@ func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.Select return res } -func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v interface{}) ([]map[string]interface{}, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v any) ([]map[string]any, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } var err error - res := make([]map[string]interface{}, len(vSlice)) + res := make([]map[string]any, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) res[i], err = ec.unmarshalN_Any2map(ctx, vSlice[i]) @@ -4008,7 +4008,7 @@ func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v inte return res, nil } -func (ec *executionContext) marshalN_Any2ᚕmapᚄ(ctx context.Context, sel ast.SelectionSet, v []map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalN_Any2ᚕmapᚄ(ctx context.Context, sel ast.SelectionSet, v []map[string]any) graphql.Marshaler { ret := make(graphql.Array, len(v)) for i := range v { ret[i] = ec.marshalN_Any2map(ctx, sel, v[i]) @@ -4113,7 +4113,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4128,8 +4128,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4303,7 +4303,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4318,7 +4318,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalNfederation__Policy2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNfederation__Policy2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4333,8 +4333,8 @@ func (ec *executionContext) marshalNfederation__Policy2string(ctx context.Contex return res } -func (ec *executionContext) unmarshalNfederation__Policy2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNfederation__Policy2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4365,8 +4365,8 @@ func (ec *executionContext) marshalNfederation__Policy2ᚕstringᚄ(ctx context. return ret } -func (ec *executionContext) unmarshalNfederation__Policy2ᚕᚕstringᚄ(ctx context.Context, v interface{}) ([][]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNfederation__Policy2ᚕᚕstringᚄ(ctx context.Context, v any) ([][]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4397,7 +4397,7 @@ func (ec *executionContext) marshalNfederation__Policy2ᚕᚕstringᚄ(ctx conte return ret } -func (ec *executionContext) unmarshalNfederation__Scope2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNfederation__Scope2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4412,8 +4412,8 @@ func (ec *executionContext) marshalNfederation__Scope2string(ctx context.Context return res } -func (ec *executionContext) unmarshalNfederation__Scope2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNfederation__Scope2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4444,8 +4444,8 @@ func (ec *executionContext) marshalNfederation__Scope2ᚕstringᚄ(ctx context.C return ret } -func (ec *executionContext) unmarshalNfederation__Scope2ᚕᚕstringᚄ(ctx context.Context, v interface{}) ([][]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNfederation__Scope2ᚕᚕstringᚄ(ctx context.Context, v any) ([][]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4476,7 +4476,7 @@ func (ec *executionContext) marshalNfederation__Scope2ᚕᚕstringᚄ(ctx contex return ret } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4486,7 +4486,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -4502,7 +4502,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { +func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v any) (*int, error) { if v == nil { return nil, nil } @@ -4566,7 +4566,7 @@ func (ec *executionContext) marshalOProduct2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Product(ctx, sel, v) } -func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalOString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4576,11 +4576,11 @@ func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { +func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4614,7 +4614,7 @@ func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/_examples/federation/reviews/graph/federation.go b/_examples/federation/reviews/graph/federation.go index 26a25e9c957..23076ddf57e 100644 --- a/_examples/federation/reviews/graph/federation.go +++ b/_examples/federation/reviews/graph/federation.go @@ -37,7 +37,7 @@ func (ec *executionContext) __resolve__service(ctx context.Context) (fedruntime. }, nil } -func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]interface{}) []fedruntime.Entity { +func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]any) []fedruntime.Entity { list := make([]fedruntime.Entity, len(representations)) repsMap := ec.buildRepresentationGroups(ctx, representations) @@ -207,7 +207,7 @@ func (ec *executionContext) resolveManyEntities( typedReps := make([]*model.ProductByManufacturerIDAndIDsInput, len(reps)) for i, rep := range reps { - id0, err := ec.unmarshalNString2string(ctx, rep.entity["manufacturer"].(map[string]interface{})["id"]) + id0, err := ec.unmarshalNString2string(ctx, rep.entity["manufacturer"].(map[string]any)["id"]) if err != nil { return errors.New(fmt.Sprintf("Field %s undefined in schema.", "manufacturerID")) } @@ -228,7 +228,7 @@ func (ec *executionContext) resolveManyEntities( } for i, entity := range entities { - entity.Manufacturer.ID, err = ec.unmarshalNString2string(ctx, reps[i].entity["manufacturer"].(map[string]interface{})["id"]) + entity.Manufacturer.ID, err = ec.unmarshalNString2string(ctx, reps[i].entity["manufacturer"].(map[string]any)["id"]) if err != nil { return err } @@ -252,7 +252,7 @@ func entityResolverNameForProduct(ctx context.Context, rep EntityRepresentation) for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -266,7 +266,7 @@ func entityResolverNameForProduct(ctx context.Context, rep EntityRepresentation) fmt.Errorf("%w due to missing Key Field \"manufacturer\" for Product", ErrTypeNotFound)) break } - if m, ok = val.(map[string]interface{}); !ok { + if m, ok = val.(map[string]any); !ok { // nested field value is not a map[string]interface so don't use it entityResolverErrs = append(entityResolverErrs, fmt.Errorf("%w due to nested Key Field \"manufacturer\" value not matching map[string]any for Product", ErrTypeNotFound)) @@ -309,7 +309,7 @@ func entityResolverNameForUser(ctx context.Context, rep EntityRepresentation) (s for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val diff --git a/_examples/federation/reviews/graph/generated.go b/_examples/federation/reviews/graph/generated.go index fcc43caa025..13f80cf29fc 100644 --- a/_examples/federation/reviews/graph/generated.go +++ b/_examples/federation/reviews/graph/generated.go @@ -56,11 +56,11 @@ type EntityResolver interface { FindUserByID(ctx context.Context, id string) (*model.User, error) } type ProductResolver interface { - ManufacturerID(ctx context.Context, obj *model.Product, federationRequires map[string]interface{}) (*string, error) + ManufacturerID(ctx context.Context, obj *model.Product, federationRequires map[string]any) (*string, error) } type UserResolver interface { Username(ctx context.Context, obj *model.User) (string, error) - Reviews(ctx context.Context, obj *model.User, federationRequires map[string]interface{}) ([]*model.Review, error) + Reviews(ctx context.Context, obj *model.User, federationRequires map[string]any) ([]*model.Review, error) } var ( @@ -102,7 +102,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec @@ -290,9 +290,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Entity_findManyProductByManufacturerIDAndIDs_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findManyProductByManufacturerIDAndIDs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findManyProductByManufacturerIDAndIDs_argsReps(ctx, rawArgs) if err != nil { return nil, err @@ -302,7 +302,7 @@ func (ec *executionContext) field_Entity_findManyProductByManufacturerIDAndIDs_a } func (ec *executionContext) field_Entity_findManyProductByManufacturerIDAndIDs_argsReps( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*model.ProductByManufacturerIDAndIDsInput, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("reps")) if tmp, ok := rawArgs["reps"]; ok { @@ -313,9 +313,9 @@ func (ec *executionContext) field_Entity_findManyProductByManufacturerIDAndIDs_a return zeroVal, nil } -func (ec *executionContext) field_Entity_findUserByID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findUserByID_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findUserByID_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -325,7 +325,7 @@ func (ec *executionContext) field_Entity_findUserByID_args(ctx context.Context, } func (ec *executionContext) field_Entity_findUserByID_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) if tmp, ok := rawArgs["id"]; ok { @@ -336,9 +336,9 @@ func (ec *executionContext) field_Entity_findUserByID_argsID( return zeroVal, nil } -func (ec *executionContext) field_Product_manufacturerID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Product_manufacturerID_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Product_manufacturerID_argsFederationRequires(ctx, rawArgs) if err != nil { return nil, err @@ -348,41 +348,41 @@ func (ec *executionContext) field_Product_manufacturerID_args(ctx context.Contex } func (ec *executionContext) field_Product_manufacturerID_argsFederationRequires( ctx context.Context, - rawArgs map[string]interface{}, -) (map[string]interface{}, error) { + rawArgs map[string]any, +) (map[string]any, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("_federationRequires")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["_federationRequires"] if !ok { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } return ec.unmarshalO_RequiresMap2map(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { return builtInDirectivePopulateFromRepresentations(ctx, rawArgs, directive0) } tmp, err := directive1(ctx) if err != nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, graphql.ErrorOnPath(ctx, err) } - if data, ok := tmp.(map[string]interface{}); ok { + if data, ok := tmp.(map[string]any); ok { return data, nil } else if tmp == nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } else { - var zeroVal map[string]interface{} - return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]interface{}`, tmp)) + var zeroVal map[string]any + return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]any`, tmp)) } } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -392,7 +392,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) if tmp, ok := rawArgs["name"]; ok { @@ -403,9 +403,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query__entities_argsRepresentations(ctx, rawArgs) if err != nil { return nil, err @@ -415,20 +415,20 @@ func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawA } func (ec *executionContext) field_Query__entities_argsRepresentations( ctx context.Context, - rawArgs map[string]interface{}, -) ([]map[string]interface{}, error) { + rawArgs map[string]any, +) ([]map[string]any, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("representations")) if tmp, ok := rawArgs["representations"]; ok { return ec.unmarshalN_Any2ᚕmapᚄ(ctx, tmp) } - var zeroVal []map[string]interface{} + var zeroVal []map[string]any return zeroVal, nil } -func (ec *executionContext) field_User_reviews_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_User_reviews_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_User_reviews_argsFederationRequires(ctx, rawArgs) if err != nil { return nil, err @@ -438,41 +438,41 @@ func (ec *executionContext) field_User_reviews_args(ctx context.Context, rawArgs } func (ec *executionContext) field_User_reviews_argsFederationRequires( ctx context.Context, - rawArgs map[string]interface{}, -) (map[string]interface{}, error) { + rawArgs map[string]any, +) (map[string]any, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("_federationRequires")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["_federationRequires"] if !ok { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } return ec.unmarshalO_RequiresMap2map(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { return builtInDirectivePopulateFromRepresentations(ctx, rawArgs, directive0) } tmp, err := directive1(ctx) if err != nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, graphql.ErrorOnPath(ctx, err) } - if data, ok := tmp.(map[string]interface{}); ok { + if data, ok := tmp.(map[string]any); ok { return data, nil } else if tmp == nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } else { - var zeroVal map[string]interface{} - return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]interface{}`, tmp)) + var zeroVal map[string]any + return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]any`, tmp)) } } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -482,7 +482,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) if tmp, ok := rawArgs["includeDeprecated"]; ok { @@ -493,9 +493,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -505,7 +505,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) if tmp, ok := rawArgs["includeDeprecated"]; ok { @@ -536,7 +536,7 @@ func (ec *executionContext) _EmailHost_id(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -580,7 +580,7 @@ func (ec *executionContext) _Entity_findManyProductByManufacturerIDAndIDs(ctx co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyProductByManufacturerIDAndIDs(rctx, fc.Args["reps"].([]*model.ProductByManufacturerIDAndIDsInput)) }) @@ -642,7 +642,7 @@ func (ec *executionContext) _Entity_findUserByID(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindUserByID(rctx, fc.Args["id"].(string)) }) @@ -709,7 +709,7 @@ func (ec *executionContext) _Manufacturer_id(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -753,7 +753,7 @@ func (ec *executionContext) _Product_id(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -797,7 +797,7 @@ func (ec *executionContext) _Product_manufacturer(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Manufacturer, nil }) @@ -845,9 +845,9 @@ func (ec *executionContext) _Product_manufacturerID(ctx context.Context, field g ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Product().ManufacturerID(rctx, obj, fc.Args["_federationRequires"].(map[string]interface{})) + return ec.resolvers.Product().ManufacturerID(rctx, obj, fc.Args["_federationRequires"].(map[string]any)) }) if err != nil { ec.Error(ctx, err) @@ -897,7 +897,7 @@ func (ec *executionContext) _Product_reviews(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Reviews, nil }) @@ -948,9 +948,9 @@ func (ec *executionContext) _Query__entities(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.__resolve_entities(ctx, fc.Args["representations"].([]map[string]interface{})), nil + return ec.__resolve_entities(ctx, fc.Args["representations"].([]map[string]any)), nil }) if err != nil { ec.Error(ctx, err) @@ -1003,7 +1003,7 @@ func (ec *executionContext) _Query__service(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.__resolve__service(ctx) }) @@ -1051,7 +1051,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -1125,7 +1125,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -1180,7 +1180,7 @@ func (ec *executionContext) _Review_body(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Body, nil }) @@ -1224,7 +1224,7 @@ func (ec *executionContext) _Review_author(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Author, nil }) @@ -1280,7 +1280,7 @@ func (ec *executionContext) _Review_product(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Product, nil }) @@ -1334,7 +1334,7 @@ func (ec *executionContext) _Review_hostIDEmail(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.HostIDEmail, nil }) @@ -1375,7 +1375,7 @@ func (ec *executionContext) _User_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -1419,7 +1419,7 @@ func (ec *executionContext) _User_host(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Host, nil }) @@ -1467,7 +1467,7 @@ func (ec *executionContext) _User_email(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Email, nil }) @@ -1511,7 +1511,7 @@ func (ec *executionContext) _User_username(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.User().Username(rctx, obj) }) @@ -1555,9 +1555,9 @@ func (ec *executionContext) _User_reviews(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.User().Reviews(rctx, obj, fc.Args["_federationRequires"].(map[string]interface{})) + return ec.resolvers.User().Reviews(rctx, obj, fc.Args["_federationRequires"].(map[string]any)) }) if err != nil { ec.Error(ctx, err) @@ -1617,7 +1617,7 @@ func (ec *executionContext) __Service_sdl(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SDL, nil }) @@ -1658,7 +1658,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1702,7 +1702,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1743,7 +1743,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -1787,7 +1787,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1841,7 +1841,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -1885,7 +1885,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1929,7 +1929,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1970,7 +1970,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -2014,7 +2014,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -2055,7 +2055,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2099,7 +2099,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2140,7 +2140,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -2194,7 +2194,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -2260,7 +2260,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -2304,7 +2304,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -2345,7 +2345,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2389,7 +2389,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2430,7 +2430,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -2496,7 +2496,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -2537,7 +2537,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2578,7 +2578,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -2644,7 +2644,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -2710,7 +2710,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -2773,7 +2773,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -2836,7 +2836,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -2892,7 +2892,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -2936,7 +2936,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2977,7 +2977,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -3018,7 +3018,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -3084,7 +3084,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -3147,7 +3147,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -3210,7 +3210,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -3272,7 +3272,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -3323,7 +3323,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -3386,7 +3386,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -3419,10 +3419,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputProductByManufacturerIDAndIDsInput(ctx context.Context, obj interface{}) (model.ProductByManufacturerIDAndIDsInput, error) { +func (ec *executionContext) unmarshalInputProductByManufacturerIDAndIDsInput(ctx context.Context, obj any) (model.ProductByManufacturerIDAndIDsInput, error) { var it model.ProductByManufacturerIDAndIDsInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -4363,7 +4363,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4388,7 +4388,7 @@ func (ec *executionContext) marshalNEmailHost2ᚖgithubᚗcomᚋ99designsᚋgqlg return ec._EmailHost(ctx, sel, v) } -func (ec *executionContext) unmarshalNFieldSet2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNFieldSet2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4403,7 +4403,7 @@ func (ec *executionContext) marshalNFieldSet2string(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNID2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4438,8 +4438,8 @@ func (ec *executionContext) marshalNProduct2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Product(ctx, sel, v) } -func (ec *executionContext) unmarshalNProductByManufacturerIDAndIDsInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋfederationᚋreviewsᚋgraphᚋmodelᚐProductByManufacturerIDAndIDsInput(ctx context.Context, v interface{}) ([]*model.ProductByManufacturerIDAndIDsInput, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNProductByManufacturerIDAndIDsInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋfederationᚋreviewsᚋgraphᚋmodelᚐProductByManufacturerIDAndIDsInput(ctx context.Context, v any) ([]*model.ProductByManufacturerIDAndIDsInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4455,7 +4455,7 @@ func (ec *executionContext) unmarshalNProductByManufacturerIDAndIDsInput2ᚕᚖg return res, nil } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4484,12 +4484,12 @@ func (ec *executionContext) marshalNUser2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ return ec._User(ctx, sel, v) } -func (ec *executionContext) unmarshalN_Any2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalN_Any2map(ctx context.Context, v any) (map[string]any, error) { res, err := graphql.UnmarshalMap(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.SelectionSet, v map[string]any) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -4505,13 +4505,13 @@ func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.Select return res } -func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v interface{}) ([]map[string]interface{}, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v any) ([]map[string]any, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } var err error - res := make([]map[string]interface{}, len(vSlice)) + res := make([]map[string]any, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) res[i], err = ec.unmarshalN_Any2map(ctx, vSlice[i]) @@ -4522,7 +4522,7 @@ func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v inte return res, nil } -func (ec *executionContext) marshalN_Any2ᚕmapᚄ(ctx context.Context, sel ast.SelectionSet, v []map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalN_Any2ᚕmapᚄ(ctx context.Context, sel ast.SelectionSet, v []map[string]any) graphql.Marshaler { ret := make(graphql.Array, len(v)) for i := range v { ret[i] = ec.marshalN_Any2map(ctx, sel, v[i]) @@ -4627,7 +4627,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4642,8 +4642,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4817,7 +4817,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4832,7 +4832,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalNfederation__Policy2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNfederation__Policy2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4847,8 +4847,8 @@ func (ec *executionContext) marshalNfederation__Policy2string(ctx context.Contex return res } -func (ec *executionContext) unmarshalNfederation__Policy2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNfederation__Policy2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4879,8 +4879,8 @@ func (ec *executionContext) marshalNfederation__Policy2ᚕstringᚄ(ctx context. return ret } -func (ec *executionContext) unmarshalNfederation__Policy2ᚕᚕstringᚄ(ctx context.Context, v interface{}) ([][]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNfederation__Policy2ᚕᚕstringᚄ(ctx context.Context, v any) ([][]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4911,7 +4911,7 @@ func (ec *executionContext) marshalNfederation__Policy2ᚕᚕstringᚄ(ctx conte return ret } -func (ec *executionContext) unmarshalNfederation__Scope2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNfederation__Scope2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4926,8 +4926,8 @@ func (ec *executionContext) marshalNfederation__Scope2string(ctx context.Context return res } -func (ec *executionContext) unmarshalNfederation__Scope2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNfederation__Scope2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4958,8 +4958,8 @@ func (ec *executionContext) marshalNfederation__Scope2ᚕstringᚄ(ctx context.C return ret } -func (ec *executionContext) unmarshalNfederation__Scope2ᚕᚕstringᚄ(ctx context.Context, v interface{}) ([][]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNfederation__Scope2ᚕᚕstringᚄ(ctx context.Context, v any) ([][]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4990,7 +4990,7 @@ func (ec *executionContext) marshalNfederation__Scope2ᚕᚕstringᚄ(ctx contex return ret } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -5000,7 +5000,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -5064,7 +5064,7 @@ func (ec *executionContext) marshalOProduct2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Product(ctx, sel, v) } -func (ec *executionContext) unmarshalOProductByManufacturerIDAndIDsInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋfederationᚋreviewsᚋgraphᚋmodelᚐProductByManufacturerIDAndIDsInput(ctx context.Context, v interface{}) (*model.ProductByManufacturerIDAndIDsInput, error) { +func (ec *executionContext) unmarshalOProductByManufacturerIDAndIDsInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋfederationᚋreviewsᚋgraphᚋmodelᚐProductByManufacturerIDAndIDsInput(ctx context.Context, v any) (*model.ProductByManufacturerIDAndIDsInput, error) { if v == nil { return nil, nil } @@ -5120,7 +5120,7 @@ func (ec *executionContext) marshalOReview2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Review(ctx, sel, v) } -func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalOString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -5130,11 +5130,11 @@ func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { +func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -5168,7 +5168,7 @@ func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } @@ -5191,7 +5191,7 @@ func (ec *executionContext) marshalO_Entity2githubᚗcomᚋ99designsᚋgqlgenᚋ return ec.__Entity(ctx, sel, v) } -func (ec *executionContext) unmarshalO_RequiresMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalO_RequiresMap2map(ctx context.Context, v any) (map[string]any, error) { if v == nil { return nil, nil } @@ -5199,7 +5199,7 @@ func (ec *executionContext) unmarshalO_RequiresMap2map(ctx context.Context, v in return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalO_RequiresMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalO_RequiresMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]any) graphql.Marshaler { if v == nil { return graphql.Null } diff --git a/_examples/federation/reviews/graph/schema.resolvers.go b/_examples/federation/reviews/graph/schema.resolvers.go index c4182525b44..2925f486fc9 100644 --- a/_examples/federation/reviews/graph/schema.resolvers.go +++ b/_examples/federation/reviews/graph/schema.resolvers.go @@ -12,7 +12,7 @@ import ( ) // ManufacturerID is the resolver for the manufacturerID field. -func (r *productResolver) ManufacturerID(ctx context.Context, obj *model.Product, federationRequires map[string]interface{}) (*string, error) { +func (r *productResolver) ManufacturerID(ctx context.Context, obj *model.Product, federationRequires map[string]any) (*string, error) { manufacturer, ok := federationRequires["manufacturer"].(map[string]any) if !ok { return nil, fmt.Errorf("manufacturer not provided or not an object") @@ -32,7 +32,7 @@ func (r *userResolver) Username(ctx context.Context, obj *model.User) (string, e } // Reviews is the resolver for the reviews field. -func (r *userResolver) Reviews(ctx context.Context, obj *model.User, federationRequires map[string]interface{}) ([]*model.Review, error) { +func (r *userResolver) Reviews(ctx context.Context, obj *model.User, federationRequires map[string]any) ([]*model.Review, error) { var productReviews []*model.Review for _, review := range reviews { if review.Author.ID == obj.ID { diff --git a/_examples/fileupload/generated.go b/_examples/fileupload/generated.go index 2a80448a360..2b7637663b8 100644 --- a/_examples/fileupload/generated.go +++ b/_examples/fileupload/generated.go @@ -90,7 +90,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -303,9 +303,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Mutation_multipleUploadWithPayload_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_multipleUploadWithPayload_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Mutation_multipleUploadWithPayload_argsReq(ctx, rawArgs) if err != nil { return nil, err @@ -315,7 +315,7 @@ func (ec *executionContext) field_Mutation_multipleUploadWithPayload_args(ctx co } func (ec *executionContext) field_Mutation_multipleUploadWithPayload_argsReq( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*model.UploadFile, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -335,9 +335,9 @@ func (ec *executionContext) field_Mutation_multipleUploadWithPayload_argsReq( return zeroVal, nil } -func (ec *executionContext) field_Mutation_multipleUpload_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_multipleUpload_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Mutation_multipleUpload_argsFiles(ctx, rawArgs) if err != nil { return nil, err @@ -347,7 +347,7 @@ func (ec *executionContext) field_Mutation_multipleUpload_args(ctx context.Conte } func (ec *executionContext) field_Mutation_multipleUpload_argsFiles( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*graphql.Upload, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -367,9 +367,9 @@ func (ec *executionContext) field_Mutation_multipleUpload_argsFiles( return zeroVal, nil } -func (ec *executionContext) field_Mutation_singleUploadWithPayload_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_singleUploadWithPayload_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Mutation_singleUploadWithPayload_argsReq(ctx, rawArgs) if err != nil { return nil, err @@ -379,7 +379,7 @@ func (ec *executionContext) field_Mutation_singleUploadWithPayload_args(ctx cont } func (ec *executionContext) field_Mutation_singleUploadWithPayload_argsReq( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (model.UploadFile, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -399,9 +399,9 @@ func (ec *executionContext) field_Mutation_singleUploadWithPayload_argsReq( return zeroVal, nil } -func (ec *executionContext) field_Mutation_singleUpload_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_singleUpload_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Mutation_singleUpload_argsFile(ctx, rawArgs) if err != nil { return nil, err @@ -411,7 +411,7 @@ func (ec *executionContext) field_Mutation_singleUpload_args(ctx context.Context } func (ec *executionContext) field_Mutation_singleUpload_argsFile( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (graphql.Upload, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -431,9 +431,9 @@ func (ec *executionContext) field_Mutation_singleUpload_argsFile( return zeroVal, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -443,7 +443,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -463,9 +463,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -475,7 +475,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -495,9 +495,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -507,7 +507,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -547,7 +547,7 @@ func (ec *executionContext) _File_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -591,7 +591,7 @@ func (ec *executionContext) _File_name(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -635,7 +635,7 @@ func (ec *executionContext) _File_content(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Content, nil }) @@ -679,7 +679,7 @@ func (ec *executionContext) _File_contentType(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ContentType, nil }) @@ -723,7 +723,7 @@ func (ec *executionContext) _Mutation_singleUpload(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().SingleUpload(rctx, fc.Args["file"].(graphql.Upload)) }) @@ -788,7 +788,7 @@ func (ec *executionContext) _Mutation_singleUploadWithPayload(ctx context.Contex ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().SingleUploadWithPayload(rctx, fc.Args["req"].(model.UploadFile)) }) @@ -853,7 +853,7 @@ func (ec *executionContext) _Mutation_multipleUpload(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().MultipleUpload(rctx, fc.Args["files"].([]*graphql.Upload)) }) @@ -918,7 +918,7 @@ func (ec *executionContext) _Mutation_multipleUploadWithPayload(ctx context.Cont ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().MultipleUploadWithPayload(rctx, fc.Args["req"].([]*model.UploadFile)) }) @@ -983,7 +983,7 @@ func (ec *executionContext) _Query_empty(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Empty(rctx) }) @@ -1027,7 +1027,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -1101,7 +1101,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -1156,7 +1156,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1200,7 +1200,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1241,7 +1241,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -1285,7 +1285,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1339,7 +1339,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -1383,7 +1383,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1427,7 +1427,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1468,7 +1468,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1512,7 +1512,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1553,7 +1553,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1597,7 +1597,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1638,7 +1638,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1692,7 +1692,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1758,7 +1758,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1802,7 +1802,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1843,7 +1843,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1887,7 +1887,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1928,7 +1928,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1994,7 +1994,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -2035,7 +2035,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2076,7 +2076,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -2142,7 +2142,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -2208,7 +2208,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -2271,7 +2271,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -2334,7 +2334,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -2390,7 +2390,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -2434,7 +2434,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2475,7 +2475,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2516,7 +2516,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2582,7 +2582,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -2645,7 +2645,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -2708,7 +2708,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2770,7 +2770,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -2821,7 +2821,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -2884,7 +2884,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -2917,10 +2917,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputUploadFile(ctx context.Context, obj interface{}) (model.UploadFile, error) { +func (ec *executionContext) unmarshalInputUploadFile(ctx context.Context, obj any) (model.UploadFile, error) { var it model.UploadFile - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -3481,7 +3481,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3554,7 +3554,7 @@ func (ec *executionContext) marshalNFile2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ return ec._File(ctx, sel, v) } -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3569,7 +3569,7 @@ func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.Selecti return res } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3584,7 +3584,7 @@ func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, v interface{}) (graphql.Upload, error) { +func (ec *executionContext) unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, v any) (graphql.Upload, error) { res, err := graphql.UnmarshalUpload(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3599,8 +3599,8 @@ func (ec *executionContext) marshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋg return res } -func (ec *executionContext) unmarshalNUpload2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUploadᚄ(ctx context.Context, v interface{}) ([]*graphql.Upload, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNUpload2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUploadᚄ(ctx context.Context, v any) ([]*graphql.Upload, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -3631,7 +3631,7 @@ func (ec *executionContext) marshalNUpload2ᚕᚖgithubᚗcomᚋ99designsᚋgqlg return ret } -func (ec *executionContext) unmarshalNUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, v interface{}) (*graphql.Upload, error) { +func (ec *executionContext) unmarshalNUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, v any) (*graphql.Upload, error) { res, err := graphql.UnmarshalUpload(v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -3652,13 +3652,13 @@ func (ec *executionContext) marshalNUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgen return res } -func (ec *executionContext) unmarshalNUploadFile2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋfileuploadᚋmodelᚐUploadFile(ctx context.Context, v interface{}) (model.UploadFile, error) { +func (ec *executionContext) unmarshalNUploadFile2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋfileuploadᚋmodelᚐUploadFile(ctx context.Context, v any) (model.UploadFile, error) { res, err := ec.unmarshalInputUploadFile(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNUploadFile2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋfileuploadᚋmodelᚐUploadFileᚄ(ctx context.Context, v interface{}) ([]*model.UploadFile, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNUploadFile2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋfileuploadᚋmodelᚐUploadFileᚄ(ctx context.Context, v any) ([]*model.UploadFile, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -3674,7 +3674,7 @@ func (ec *executionContext) unmarshalNUploadFile2ᚕᚖgithubᚗcomᚋ99designs return res, nil } -func (ec *executionContext) unmarshalNUploadFile2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋfileuploadᚋmodelᚐUploadFile(ctx context.Context, v interface{}) (*model.UploadFile, error) { +func (ec *executionContext) unmarshalNUploadFile2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋfileuploadᚋmodelᚐUploadFile(ctx context.Context, v any) (*model.UploadFile, error) { res, err := ec.unmarshalInputUploadFile(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -3727,7 +3727,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3742,8 +3742,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -3917,7 +3917,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3932,7 +3932,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3942,7 +3942,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -3958,7 +3958,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/_examples/scalars/generated.go b/_examples/scalars/generated.go index efaf4148fc2..3640ca80c4e 100644 --- a/_examples/scalars/generated.go +++ b/_examples/scalars/generated.go @@ -99,7 +99,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -341,9 +341,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -353,7 +353,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -373,9 +373,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query_search_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_search_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_search_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -385,7 +385,7 @@ func (ec *executionContext) field_Query_search_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_search_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*model.SearchArgs, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -405,9 +405,9 @@ func (ec *executionContext) field_Query_search_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Query_userByTier_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_userByTier_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_userByTier_argsTier(ctx, rawArgs) if err != nil { return nil, err @@ -422,7 +422,7 @@ func (ec *executionContext) field_Query_userByTier_args(ctx context.Context, raw } func (ec *executionContext) field_Query_userByTier_argsTier( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (model.Tier, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -444,7 +444,7 @@ func (ec *executionContext) field_Query_userByTier_argsTier( func (ec *executionContext) field_Query_userByTier_argsDarkMode( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*model.Prefs, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -464,9 +464,9 @@ func (ec *executionContext) field_Query_userByTier_argsDarkMode( return zeroVal, nil } -func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_user_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -476,7 +476,7 @@ func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs m } func (ec *executionContext) field_Query_user_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (external.ObjectID, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -496,9 +496,9 @@ func (ec *executionContext) field_Query_user_argsID( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -508,7 +508,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -528,9 +528,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -540,7 +540,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -580,7 +580,7 @@ func (ec *executionContext) _Address_id(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -624,7 +624,7 @@ func (ec *executionContext) _Address_location(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Location, nil }) @@ -665,7 +665,7 @@ func (ec *executionContext) _Query_user(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().User(rctx, fc.Args["id"].(external.ObjectID)) }) @@ -741,7 +741,7 @@ func (ec *executionContext) _Query_search(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Search(rctx, fc.Args["input"].(*model.SearchArgs)) }) @@ -820,7 +820,7 @@ func (ec *executionContext) _Query_userByTier(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().UserByTier(rctx, fc.Args["tier"].(model.Tier), fc.Args["darkMode"].(*model.Prefs)) }) @@ -899,7 +899,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -973,7 +973,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -1028,7 +1028,7 @@ func (ec *executionContext) _User_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -1072,7 +1072,7 @@ func (ec *executionContext) _User_name(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1116,7 +1116,7 @@ func (ec *executionContext) _User_created(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Created, nil }) @@ -1157,7 +1157,7 @@ func (ec *executionContext) _User_modified(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Modified, nil }) @@ -1198,7 +1198,7 @@ func (ec *executionContext) _User_valPrefs(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ValPrefs, nil }) @@ -1239,7 +1239,7 @@ func (ec *executionContext) _User_ptrPrefs(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PtrPrefs, nil }) @@ -1280,7 +1280,7 @@ func (ec *executionContext) _User_isBanned(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsBanned, nil }) @@ -1324,7 +1324,7 @@ func (ec *executionContext) _User_primitiveResolver(ctx context.Context, field g ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.User().PrimitiveResolver(rctx, obj) }) @@ -1368,7 +1368,7 @@ func (ec *executionContext) _User_customResolver(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.User().CustomResolver(rctx, obj) }) @@ -1412,7 +1412,7 @@ func (ec *executionContext) _User_address(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Address, nil }) @@ -1459,7 +1459,7 @@ func (ec *executionContext) _User_tier(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Tier, nil }) @@ -1500,7 +1500,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1544,7 +1544,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1585,7 +1585,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -1629,7 +1629,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1683,7 +1683,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -1727,7 +1727,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1771,7 +1771,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1812,7 +1812,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1856,7 +1856,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1897,7 +1897,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1941,7 +1941,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1982,7 +1982,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -2036,7 +2036,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -2102,7 +2102,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -2146,7 +2146,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -2187,7 +2187,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2231,7 +2231,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2272,7 +2272,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -2338,7 +2338,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -2379,7 +2379,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2420,7 +2420,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -2486,7 +2486,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -2552,7 +2552,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -2615,7 +2615,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -2678,7 +2678,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -2734,7 +2734,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -2778,7 +2778,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2819,7 +2819,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2860,7 +2860,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2926,7 +2926,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -2989,7 +2989,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -3052,7 +3052,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -3114,7 +3114,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -3165,7 +3165,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -3228,7 +3228,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -3261,10 +3261,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputSearchArgs(ctx context.Context, obj interface{}) (model.SearchArgs, error) { +func (ec *executionContext) unmarshalInputSearchArgs(ctx context.Context, obj any) (model.SearchArgs, error) { var it model.SearchArgs - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -3923,7 +3923,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBanned2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐBanned(ctx context.Context, v interface{}) (model.Banned, error) { +func (ec *executionContext) unmarshalNBanned2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐBanned(ctx context.Context, v any) (model.Banned, error) { var res model.Banned err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -3933,7 +3933,7 @@ func (ec *executionContext) marshalNBanned2githubᚗcomᚋ99designsᚋgqlgenᚋ_ return v } -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3948,7 +3948,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNDarkMode2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐPrefs(ctx context.Context, v interface{}) (*model.Prefs, error) { +func (ec *executionContext) unmarshalNDarkMode2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐPrefs(ctx context.Context, v any) (*model.Prefs, error) { res, err := model.UnmarshalPreferences(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3969,7 +3969,7 @@ func (ec *executionContext) marshalNDarkMode2ᚖgithubᚗcomᚋ99designsᚋgqlge return res } -func (ec *executionContext) unmarshalNID2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋexternalᚐObjectID(ctx context.Context, v interface{}) (external.ObjectID, error) { +func (ec *executionContext) unmarshalNID2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋexternalᚐObjectID(ctx context.Context, v any) (external.ObjectID, error) { res, err := model.UnmarshalID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3984,7 +3984,7 @@ func (ec *executionContext) marshalNID2githubᚗcomᚋ99designsᚋgqlgenᚋ_exam return res } -func (ec *executionContext) unmarshalNPoint2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐPoint(ctx context.Context, v interface{}) (model.Point, error) { +func (ec *executionContext) unmarshalNPoint2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐPoint(ctx context.Context, v any) (model.Point, error) { var res model.Point err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -3994,7 +3994,7 @@ func (ec *executionContext) marshalNPoint2githubᚗcomᚋ99designsᚋgqlgenᚋ_e return v } -func (ec *executionContext) unmarshalNPoint2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐPoint(ctx context.Context, v interface{}) (*model.Point, error) { +func (ec *executionContext) unmarshalNPoint2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐPoint(ctx context.Context, v any) (*model.Point, error) { var res = new(model.Point) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -4010,7 +4010,7 @@ func (ec *executionContext) marshalNPoint2ᚖgithubᚗcomᚋ99designsᚋgqlgen return v } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4025,7 +4025,7 @@ func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalNTier2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐTier(ctx context.Context, v interface{}) (model.Tier, error) { +func (ec *executionContext) unmarshalNTier2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐTier(ctx context.Context, v any) (model.Tier, error) { var res model.Tier err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -4137,7 +4137,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4152,8 +4152,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4327,7 +4327,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4346,7 +4346,7 @@ func (ec *executionContext) marshalOAddress2githubᚗcomᚋ99designsᚋgqlgenᚋ return ec._Address(ctx, sel, &v) } -func (ec *executionContext) unmarshalOBanned2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐBanned(ctx context.Context, v interface{}) (model.Banned, error) { +func (ec *executionContext) unmarshalOBanned2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐBanned(ctx context.Context, v any) (model.Banned, error) { var res model.Banned err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -4356,7 +4356,7 @@ func (ec *executionContext) marshalOBanned2githubᚗcomᚋ99designsᚋgqlgenᚋ_ return v } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4366,7 +4366,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -4382,7 +4382,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalODarkMode2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐPrefs(ctx context.Context, v interface{}) (model.Prefs, error) { +func (ec *executionContext) unmarshalODarkMode2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐPrefs(ctx context.Context, v any) (model.Prefs, error) { res, err := model.UnmarshalPreferences(v) return *res, graphql.ErrorOnPath(ctx, err) } @@ -4392,7 +4392,7 @@ func (ec *executionContext) marshalODarkMode2githubᚗcomᚋ99designsᚋgqlgen return res } -func (ec *executionContext) unmarshalODarkMode2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐPrefs(ctx context.Context, v interface{}) (*model.Prefs, error) { +func (ec *executionContext) unmarshalODarkMode2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐPrefs(ctx context.Context, v any) (*model.Prefs, error) { if v == nil { return nil, nil } @@ -4408,7 +4408,7 @@ func (ec *executionContext) marshalODarkMode2ᚖgithubᚗcomᚋ99designsᚋgqlge return res } -func (ec *executionContext) unmarshalOPoint2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐPoint(ctx context.Context, v interface{}) (*model.Point, error) { +func (ec *executionContext) unmarshalOPoint2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐPoint(ctx context.Context, v any) (*model.Point, error) { if v == nil { return nil, nil } @@ -4424,7 +4424,7 @@ func (ec *executionContext) marshalOPoint2ᚖgithubᚗcomᚋ99designsᚋgqlgen return v } -func (ec *executionContext) unmarshalOSearchArgs2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐSearchArgs(ctx context.Context, v interface{}) (*model.SearchArgs, error) { +func (ec *executionContext) unmarshalOSearchArgs2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐSearchArgs(ctx context.Context, v any) (*model.SearchArgs, error) { if v == nil { return nil, nil } @@ -4432,7 +4432,7 @@ func (ec *executionContext) unmarshalOSearchArgs2ᚖgithubᚗcomᚋ99designsᚋg return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } @@ -4448,7 +4448,7 @@ func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel as return res } -func (ec *executionContext) unmarshalOTier2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐTier(ctx context.Context, v interface{}) (model.Tier, error) { +func (ec *executionContext) unmarshalOTier2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋscalarsᚋmodelᚐTier(ctx context.Context, v any) (model.Tier, error) { var res model.Tier err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -4458,7 +4458,7 @@ func (ec *executionContext) marshalOTier2githubᚗcomᚋ99designsᚋgqlgenᚋ_ex return v } -func (ec *executionContext) unmarshalOTimestamp2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) { +func (ec *executionContext) unmarshalOTimestamp2timeᚐTime(ctx context.Context, v any) (time.Time, error) { res, err := model.UnmarshalTimestamp(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4468,7 +4468,7 @@ func (ec *executionContext) marshalOTimestamp2timeᚐTime(ctx context.Context, s return res } -func (ec *executionContext) unmarshalOTimestamp2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) { +func (ec *executionContext) unmarshalOTimestamp2ᚖtimeᚐTime(ctx context.Context, v any) (*time.Time, error) { if v == nil { return nil, nil } diff --git a/_examples/selection/generated.go b/_examples/selection/generated.go index 2380e52c4aa..a47b2182250 100644 --- a/_examples/selection/generated.go +++ b/_examples/selection/generated.go @@ -83,7 +83,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -259,9 +259,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -271,7 +271,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -291,9 +291,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -303,7 +303,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -323,9 +323,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -335,7 +335,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -375,7 +375,7 @@ func (ec *executionContext) _Like_reaction(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Reaction, nil }) @@ -419,7 +419,7 @@ func (ec *executionContext) _Like_sent(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Sent, nil }) @@ -463,7 +463,7 @@ func (ec *executionContext) _Like_selection(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Selection, nil }) @@ -504,7 +504,7 @@ func (ec *executionContext) _Like_collected(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Collected, nil }) @@ -545,7 +545,7 @@ func (ec *executionContext) _Post_message(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Message, nil }) @@ -589,7 +589,7 @@ func (ec *executionContext) _Post_sent(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Sent, nil }) @@ -633,7 +633,7 @@ func (ec *executionContext) _Post_selection(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Selection, nil }) @@ -674,7 +674,7 @@ func (ec *executionContext) _Post_collected(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Collected, nil }) @@ -715,7 +715,7 @@ func (ec *executionContext) _Query_events(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Events(rctx) }) @@ -756,7 +756,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -830,7 +830,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -885,7 +885,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -929,7 +929,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -970,7 +970,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -1014,7 +1014,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1068,7 +1068,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -1112,7 +1112,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1156,7 +1156,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1197,7 +1197,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1241,7 +1241,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1282,7 +1282,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1326,7 +1326,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1367,7 +1367,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1421,7 +1421,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1487,7 +1487,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1531,7 +1531,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1572,7 +1572,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1616,7 +1616,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1657,7 +1657,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1723,7 +1723,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -1764,7 +1764,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1805,7 +1805,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -1871,7 +1871,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -1937,7 +1937,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -2000,7 +2000,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -2063,7 +2063,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -2119,7 +2119,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -2163,7 +2163,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2204,7 +2204,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2245,7 +2245,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2311,7 +2311,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -2374,7 +2374,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -2437,7 +2437,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2499,7 +2499,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -2550,7 +2550,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -2613,7 +2613,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -3168,7 +3168,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3193,7 +3193,7 @@ func (ec *executionContext) marshalNEvent2githubᚗcomᚋ99designsᚋgqlgenᚋ_e return ec._Event(ctx, sel, v) } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3208,7 +3208,7 @@ func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) { +func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v any) (time.Time, error) { res, err := graphql.UnmarshalTime(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3271,7 +3271,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3286,8 +3286,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -3461,7 +3461,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3476,7 +3476,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3486,7 +3486,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -3549,11 +3549,11 @@ func (ec *executionContext) marshalOEvent2ᚕgithubᚗcomᚋ99designsᚋgqlgen return ret } -func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { +func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -3587,7 +3587,7 @@ func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/_examples/starwars/generated/exec.go b/_examples/starwars/generated/exec.go index 357613597c3..646b47c8e9b 100644 --- a/_examples/starwars/generated/exec.go +++ b/_examples/starwars/generated/exec.go @@ -163,7 +163,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -757,9 +757,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Droid_friendsConnection_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Droid_friendsConnection_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Droid_friendsConnection_argsFirst(ctx, rawArgs) if err != nil { return nil, err @@ -774,7 +774,7 @@ func (ec *executionContext) field_Droid_friendsConnection_args(ctx context.Conte } func (ec *executionContext) field_Droid_friendsConnection_argsFirst( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -796,7 +796,7 @@ func (ec *executionContext) field_Droid_friendsConnection_argsFirst( func (ec *executionContext) field_Droid_friendsConnection_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -816,9 +816,9 @@ func (ec *executionContext) field_Droid_friendsConnection_argsAfter( return zeroVal, nil } -func (ec *executionContext) field_Human_friendsConnection_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Human_friendsConnection_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Human_friendsConnection_argsFirst(ctx, rawArgs) if err != nil { return nil, err @@ -833,7 +833,7 @@ func (ec *executionContext) field_Human_friendsConnection_args(ctx context.Conte } func (ec *executionContext) field_Human_friendsConnection_argsFirst( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -855,7 +855,7 @@ func (ec *executionContext) field_Human_friendsConnection_argsFirst( func (ec *executionContext) field_Human_friendsConnection_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -875,9 +875,9 @@ func (ec *executionContext) field_Human_friendsConnection_argsAfter( return zeroVal, nil } -func (ec *executionContext) field_Human_height_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Human_height_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Human_height_argsUnit(ctx, rawArgs) if err != nil { return nil, err @@ -887,7 +887,7 @@ func (ec *executionContext) field_Human_height_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Human_height_argsUnit( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (models.LengthUnit, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -907,9 +907,9 @@ func (ec *executionContext) field_Human_height_argsUnit( return zeroVal, nil } -func (ec *executionContext) field_Mutation_createReview_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_createReview_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Mutation_createReview_argsEpisode(ctx, rawArgs) if err != nil { return nil, err @@ -924,7 +924,7 @@ func (ec *executionContext) field_Mutation_createReview_args(ctx context.Context } func (ec *executionContext) field_Mutation_createReview_argsEpisode( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (models.Episode, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -946,7 +946,7 @@ func (ec *executionContext) field_Mutation_createReview_argsEpisode( func (ec *executionContext) field_Mutation_createReview_argsReview( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (models.Review, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -966,9 +966,9 @@ func (ec *executionContext) field_Mutation_createReview_argsReview( return zeroVal, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -978,7 +978,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -998,9 +998,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query_character_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_character_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_character_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -1010,7 +1010,7 @@ func (ec *executionContext) field_Query_character_args(ctx context.Context, rawA } func (ec *executionContext) field_Query_character_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1030,9 +1030,9 @@ func (ec *executionContext) field_Query_character_argsID( return zeroVal, nil } -func (ec *executionContext) field_Query_droid_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_droid_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_droid_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -1042,7 +1042,7 @@ func (ec *executionContext) field_Query_droid_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_droid_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1062,9 +1062,9 @@ func (ec *executionContext) field_Query_droid_argsID( return zeroVal, nil } -func (ec *executionContext) field_Query_hero_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_hero_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_hero_argsEpisode(ctx, rawArgs) if err != nil { return nil, err @@ -1074,7 +1074,7 @@ func (ec *executionContext) field_Query_hero_args(ctx context.Context, rawArgs m } func (ec *executionContext) field_Query_hero_argsEpisode( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*models.Episode, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1094,9 +1094,9 @@ func (ec *executionContext) field_Query_hero_argsEpisode( return zeroVal, nil } -func (ec *executionContext) field_Query_human_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_human_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_human_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -1106,7 +1106,7 @@ func (ec *executionContext) field_Query_human_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_human_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1126,9 +1126,9 @@ func (ec *executionContext) field_Query_human_argsID( return zeroVal, nil } -func (ec *executionContext) field_Query_reviews_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_reviews_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_reviews_argsEpisode(ctx, rawArgs) if err != nil { return nil, err @@ -1143,7 +1143,7 @@ func (ec *executionContext) field_Query_reviews_args(ctx context.Context, rawArg } func (ec *executionContext) field_Query_reviews_argsEpisode( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (models.Episode, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1165,7 +1165,7 @@ func (ec *executionContext) field_Query_reviews_argsEpisode( func (ec *executionContext) field_Query_reviews_argsSince( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*time.Time, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1185,9 +1185,9 @@ func (ec *executionContext) field_Query_reviews_argsSince( return zeroVal, nil } -func (ec *executionContext) field_Query_search_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_search_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_search_argsText(ctx, rawArgs) if err != nil { return nil, err @@ -1197,7 +1197,7 @@ func (ec *executionContext) field_Query_search_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_search_argsText( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1217,9 +1217,9 @@ func (ec *executionContext) field_Query_search_argsText( return zeroVal, nil } -func (ec *executionContext) field_Query_starship_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_starship_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_starship_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -1229,7 +1229,7 @@ func (ec *executionContext) field_Query_starship_args(ctx context.Context, rawAr } func (ec *executionContext) field_Query_starship_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1249,9 +1249,9 @@ func (ec *executionContext) field_Query_starship_argsID( return zeroVal, nil } -func (ec *executionContext) field_Starship_length_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Starship_length_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Starship_length_argsUnit(ctx, rawArgs) if err != nil { return nil, err @@ -1261,7 +1261,7 @@ func (ec *executionContext) field_Starship_length_args(ctx context.Context, rawA } func (ec *executionContext) field_Starship_length_argsUnit( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*models.LengthUnit, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1281,9 +1281,9 @@ func (ec *executionContext) field_Starship_length_argsUnit( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -1293,7 +1293,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1313,9 +1313,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -1325,7 +1325,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1365,7 +1365,7 @@ func (ec *executionContext) _Droid_id(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -1409,7 +1409,7 @@ func (ec *executionContext) _Droid_name(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1453,7 +1453,7 @@ func (ec *executionContext) _Droid_friends(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Droid().Friends(rctx, obj) }) @@ -1494,7 +1494,7 @@ func (ec *executionContext) _Droid_friendsConnection(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Droid().FriendsConnection(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*string)) }) @@ -1559,7 +1559,7 @@ func (ec *executionContext) _Droid_appearsIn(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.AppearsIn, nil }) @@ -1603,7 +1603,7 @@ func (ec *executionContext) _Droid_primaryFunction(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PrimaryFunction, nil }) @@ -1644,7 +1644,7 @@ func (ec *executionContext) _FriendsConnection_totalCount(ctx context.Context, f ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.TotalCount(), nil }) @@ -1688,7 +1688,7 @@ func (ec *executionContext) _FriendsConnection_edges(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.FriendsConnection().Edges(rctx, obj) }) @@ -1735,7 +1735,7 @@ func (ec *executionContext) _FriendsConnection_friends(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.FriendsConnection().Friends(rctx, obj) }) @@ -1776,7 +1776,7 @@ func (ec *executionContext) _FriendsConnection_pageInfo(ctx context.Context, fie ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PageInfo(), nil }) @@ -1828,7 +1828,7 @@ func (ec *executionContext) _FriendsEdge_cursor(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Cursor, nil }) @@ -1872,7 +1872,7 @@ func (ec *executionContext) _FriendsEdge_node(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Node, nil }) @@ -1913,7 +1913,7 @@ func (ec *executionContext) _Human_id(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -1957,7 +1957,7 @@ func (ec *executionContext) _Human_name(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2001,7 +2001,7 @@ func (ec *executionContext) _Human_height(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Height(fc.Args["unit"].(models.LengthUnit)), nil }) @@ -2056,7 +2056,7 @@ func (ec *executionContext) _Human_mass(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Mass, nil }) @@ -2097,7 +2097,7 @@ func (ec *executionContext) _Human_friends(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Human().Friends(rctx, obj) }) @@ -2138,7 +2138,7 @@ func (ec *executionContext) _Human_friendsConnection(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Human().FriendsConnection(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*string)) }) @@ -2203,7 +2203,7 @@ func (ec *executionContext) _Human_appearsIn(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.AppearsIn, nil }) @@ -2247,7 +2247,7 @@ func (ec *executionContext) _Human_starships(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Human().Starships(rctx, obj) }) @@ -2382,7 +2382,7 @@ func (ec *executionContext) _Mutation_createReview(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().CreateReview(rctx, fc.Args["episode"].(models.Episode), fc.Args["review"].(models.Review)) }) @@ -2442,7 +2442,7 @@ func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.StartCursor, nil }) @@ -2486,7 +2486,7 @@ func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EndCursor, nil }) @@ -2530,7 +2530,7 @@ func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.HasNextPage, nil }) @@ -2574,7 +2574,7 @@ func (ec *executionContext) _Query_hero(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Hero(rctx, fc.Args["episode"].(*models.Episode)) }) @@ -2626,7 +2626,7 @@ func (ec *executionContext) _Query_reviews(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Reviews(rctx, fc.Args["episode"].(models.Episode), fc.Args["since"].(*time.Time)) }) @@ -2689,7 +2689,7 @@ func (ec *executionContext) _Query_search(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Search(rctx, fc.Args["text"].(string)) }) @@ -2744,7 +2744,7 @@ func (ec *executionContext) _Query_character(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Character(rctx, fc.Args["id"].(string)) }) @@ -2796,7 +2796,7 @@ func (ec *executionContext) _Query_droid(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Droid(rctx, fc.Args["id"].(string)) }) @@ -2862,7 +2862,7 @@ func (ec *executionContext) _Query_human(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Human(rctx, fc.Args["id"].(string)) }) @@ -2936,7 +2936,7 @@ func (ec *executionContext) _Query_starship(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Starship(rctx, fc.Args["id"].(string)) }) @@ -2998,7 +2998,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -3072,7 +3072,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -3127,7 +3127,7 @@ func (ec *executionContext) _Review_stars(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Stars, nil }) @@ -3171,7 +3171,7 @@ func (ec *executionContext) _Review_commentary(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Commentary, nil }) @@ -3212,7 +3212,7 @@ func (ec *executionContext) _Review_time(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Time, nil }) @@ -3253,7 +3253,7 @@ func (ec *executionContext) _Starship_id(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -3297,7 +3297,7 @@ func (ec *executionContext) _Starship_name(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3341,7 +3341,7 @@ func (ec *executionContext) _Starship_length(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Starship().Length(rctx, obj, fc.Args["unit"].(*models.LengthUnit)) }) @@ -3396,7 +3396,7 @@ func (ec *executionContext) _Starship_history(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.History, nil }) @@ -3440,7 +3440,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3484,7 +3484,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -3525,7 +3525,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -3569,7 +3569,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -3623,7 +3623,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -3667,7 +3667,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3711,7 +3711,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -3752,7 +3752,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -3796,7 +3796,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -3837,7 +3837,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3881,7 +3881,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -3922,7 +3922,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -3976,7 +3976,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -4042,7 +4042,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -4086,7 +4086,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -4127,7 +4127,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -4171,7 +4171,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -4212,7 +4212,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -4278,7 +4278,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -4319,7 +4319,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -4360,7 +4360,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -4426,7 +4426,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -4492,7 +4492,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -4555,7 +4555,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -4618,7 +4618,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -4674,7 +4674,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -4718,7 +4718,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -4759,7 +4759,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -4800,7 +4800,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -4866,7 +4866,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -4929,7 +4929,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -4992,7 +4992,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -5054,7 +5054,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -5105,7 +5105,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -5168,7 +5168,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -5201,10 +5201,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputReviewInput(ctx context.Context, obj interface{}) (models.Review, error) { +func (ec *executionContext) unmarshalInputReviewInput(ctx context.Context, obj any) (models.Review, error) { var it models.Review - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6480,7 +6480,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -6505,7 +6505,7 @@ func (ec *executionContext) marshalNCharacter2githubᚗcomᚋ99designsᚋgqlgen return ec._Character(ctx, sel, v) } -func (ec *executionContext) unmarshalNEpisode2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋstarwarsᚋmodelsᚐEpisode(ctx context.Context, v interface{}) (models.Episode, error) { +func (ec *executionContext) unmarshalNEpisode2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋstarwarsᚋmodelsᚐEpisode(ctx context.Context, v any) (models.Episode, error) { var res models.Episode err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -6515,8 +6515,8 @@ func (ec *executionContext) marshalNEpisode2githubᚗcomᚋ99designsᚋgqlgenᚋ return v } -func (ec *executionContext) unmarshalNEpisode2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋstarwarsᚋmodelsᚐEpisodeᚄ(ctx context.Context, v interface{}) ([]models.Episode, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNEpisode2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋstarwarsᚋmodelsᚐEpisodeᚄ(ctx context.Context, v any) ([]models.Episode, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -6576,7 +6576,7 @@ func (ec *executionContext) marshalNEpisode2ᚕgithubᚗcomᚋ99designsᚋgqlgen return ret } -func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v interface{}) (float64, error) { +func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v any) (float64, error) { res, err := graphql.UnmarshalFloatContext(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -6615,7 +6615,7 @@ func (ec *executionContext) marshalNFriendsEdge2ᚖgithubᚗcomᚋ99designsᚋgq return ec._FriendsEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNID2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -6630,7 +6630,7 @@ func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -6645,8 +6645,8 @@ func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.Selecti return res } -func (ec *executionContext) unmarshalNInt2ᚕintᚄ(ctx context.Context, v interface{}) ([]int, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNInt2ᚕintᚄ(ctx context.Context, v any) ([]int, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -6677,8 +6677,8 @@ func (ec *executionContext) marshalNInt2ᚕintᚄ(ctx context.Context, sel ast.S return ret } -func (ec *executionContext) unmarshalNInt2ᚕᚕintᚄ(ctx context.Context, v interface{}) ([][]int, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNInt2ᚕᚕintᚄ(ctx context.Context, v any) ([][]int, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -6775,7 +6775,7 @@ func (ec *executionContext) marshalNReview2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Review(ctx, sel, v) } -func (ec *executionContext) unmarshalNReviewInput2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋstarwarsᚋmodelsᚐReview(ctx context.Context, v interface{}) (models.Review, error) { +func (ec *executionContext) unmarshalNReviewInput2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋstarwarsᚋmodelsᚐReview(ctx context.Context, v any) (models.Review, error) { res, err := ec.unmarshalInputReviewInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -6844,7 +6844,7 @@ func (ec *executionContext) marshalNStarship2ᚖgithubᚗcomᚋ99designsᚋgqlge return ec._Starship(ctx, sel, v) } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -6907,7 +6907,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -6922,8 +6922,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -7097,7 +7097,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -7112,7 +7112,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -7122,7 +7122,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -7199,7 +7199,7 @@ func (ec *executionContext) marshalODroid2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Droid(ctx, sel, v) } -func (ec *executionContext) unmarshalOEpisode2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋstarwarsᚋmodelsᚐEpisode(ctx context.Context, v interface{}) (*models.Episode, error) { +func (ec *executionContext) unmarshalOEpisode2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋstarwarsᚋmodelsᚐEpisode(ctx context.Context, v any) (*models.Episode, error) { if v == nil { return nil, nil } @@ -7215,7 +7215,7 @@ func (ec *executionContext) marshalOEpisode2ᚖgithubᚗcomᚋ99designsᚋgqlgen return v } -func (ec *executionContext) unmarshalOFloat2float64(ctx context.Context, v interface{}) (float64, error) { +func (ec *executionContext) unmarshalOFloat2float64(ctx context.Context, v any) (float64, error) { res, err := graphql.UnmarshalFloatContext(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -7279,7 +7279,7 @@ func (ec *executionContext) marshalOHuman2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Human(ctx, sel, v) } -func (ec *executionContext) unmarshalOID2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOID2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } @@ -7295,7 +7295,7 @@ func (ec *executionContext) marshalOID2ᚖstring(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { +func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v any) (*int, error) { if v == nil { return nil, nil } @@ -7311,7 +7311,7 @@ func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.Sele return res } -func (ec *executionContext) unmarshalOLengthUnit2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋstarwarsᚋmodelsᚐLengthUnit(ctx context.Context, v interface{}) (models.LengthUnit, error) { +func (ec *executionContext) unmarshalOLengthUnit2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋstarwarsᚋmodelsᚐLengthUnit(ctx context.Context, v any) (models.LengthUnit, error) { var res models.LengthUnit err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -7321,7 +7321,7 @@ func (ec *executionContext) marshalOLengthUnit2githubᚗcomᚋ99designsᚋgqlgen return v } -func (ec *executionContext) unmarshalOLengthUnit2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋstarwarsᚋmodelsᚐLengthUnit(ctx context.Context, v interface{}) (*models.LengthUnit, error) { +func (ec *executionContext) unmarshalOLengthUnit2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋstarwarsᚋmodelsᚐLengthUnit(ctx context.Context, v any) (*models.LengthUnit, error) { if v == nil { return nil, nil } @@ -7398,7 +7398,7 @@ func (ec *executionContext) marshalOStarship2ᚖgithubᚗcomᚋ99designsᚋgqlge return ec._Starship(ctx, sel, v) } -func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalOString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -7408,7 +7408,7 @@ func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } @@ -7424,7 +7424,7 @@ func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel as return res } -func (ec *executionContext) unmarshalOTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) { +func (ec *executionContext) unmarshalOTime2timeᚐTime(ctx context.Context, v any) (time.Time, error) { res, err := graphql.UnmarshalTime(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -7434,7 +7434,7 @@ func (ec *executionContext) marshalOTime2timeᚐTime(ctx context.Context, sel as return res } -func (ec *executionContext) unmarshalOTime2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) { +func (ec *executionContext) unmarshalOTime2ᚖtimeᚐTime(ctx context.Context, v any) (*time.Time, error) { if v == nil { return nil, nil } diff --git a/_examples/starwars/models/generated.go b/_examples/starwars/models/generated.go index 7a3fd230516..4bcb6657281 100644 --- a/_examples/starwars/models/generated.go +++ b/_examples/starwars/models/generated.go @@ -73,7 +73,7 @@ func (e Episode) String() string { return string(e) } -func (e *Episode) UnmarshalGQL(v interface{}) error { +func (e *Episode) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -114,7 +114,7 @@ func (e LengthUnit) String() string { return string(e) } -func (e *LengthUnit) UnmarshalGQL(v interface{}) error { +func (e *LengthUnit) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/_examples/todo/generated.go b/_examples/todo/generated.go index 0ff80352d40..ceb478c2b0c 100644 --- a/_examples/todo/generated.go +++ b/_examples/todo/generated.go @@ -43,14 +43,14 @@ type ResolverRoot interface { } type DirectiveRoot struct { - HasRole func(ctx context.Context, obj interface{}, next graphql.Resolver, role Role) (res interface{}, err error) - User func(ctx context.Context, obj interface{}, next graphql.Resolver, id int) (res interface{}, err error) + HasRole func(ctx context.Context, obj any, next graphql.Resolver, role Role) (res any, err error) + User func(ctx context.Context, obj any, next graphql.Resolver, id int) (res any, err error) } type ComplexityRoot struct { MyMutation struct { CreateTodo func(childComplexity int, todo TodoInput) int - UpdateTodo func(childComplexity int, id int, changes map[string]interface{}) int + UpdateTodo func(childComplexity int, id int, changes map[string]any) int } MyQuery struct { @@ -68,7 +68,7 @@ type ComplexityRoot struct { type MyMutationResolver interface { CreateTodo(ctx context.Context, todo TodoInput) (*Todo, error) - UpdateTodo(ctx context.Context, id int, changes map[string]interface{}) (*Todo, error) + UpdateTodo(ctx context.Context, id int, changes map[string]any) (*Todo, error) } type MyQueryResolver interface { Todo(ctx context.Context, id int) (*Todo, error) @@ -90,7 +90,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -117,7 +117,7 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return 0, false } - return e.complexity.MyMutation.UpdateTodo(childComplexity, args["id"].(int), args["changes"].(map[string]interface{})), true + return e.complexity.MyMutation.UpdateTodo(childComplexity, args["id"].(int), args["changes"].(map[string]any)), true case "MyQuery.lastTodo": if e.complexity.MyQuery.LastTodo == nil { @@ -186,7 +186,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { if first { first = false ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data = ec._queryMiddleware(ctx, opCtx.Operation, func(ctx context.Context) (interface{}, error) { + data = ec._queryMiddleware(ctx, opCtx.Operation, func(ctx context.Context) (any, error) { return ec._MyQuery(ctx, opCtx.Operation.SelectionSet), nil }) } else { @@ -218,7 +218,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { } first = false ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data := ec._mutationMiddleware(ctx, opCtx.Operation, func(ctx context.Context) (interface{}, error) { + data := ec._mutationMiddleware(ctx, opCtx.Operation, func(ctx context.Context) (any, error) { return ec._MyMutation(ctx, opCtx.Operation.SelectionSet), nil }) var buf bytes.Buffer @@ -295,9 +295,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) dir_hasRole_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_hasRole_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_hasRole_argsRole(ctx, rawArgs) if err != nil { return nil, err @@ -307,7 +307,7 @@ func (ec *executionContext) dir_hasRole_args(ctx context.Context, rawArgs map[st } func (ec *executionContext) dir_hasRole_argsRole( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (Role, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -327,9 +327,9 @@ func (ec *executionContext) dir_hasRole_argsRole( return zeroVal, nil } -func (ec *executionContext) dir_user_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_user_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_user_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -339,7 +339,7 @@ func (ec *executionContext) dir_user_args(ctx context.Context, rawArgs map[strin } func (ec *executionContext) dir_user_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -359,9 +359,9 @@ func (ec *executionContext) dir_user_argsID( return zeroVal, nil } -func (ec *executionContext) field_MyMutation_createTodo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_MyMutation_createTodo_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_MyMutation_createTodo_argsTodo(ctx, rawArgs) if err != nil { return nil, err @@ -371,7 +371,7 @@ func (ec *executionContext) field_MyMutation_createTodo_args(ctx context.Context } func (ec *executionContext) field_MyMutation_createTodo_argsTodo( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (TodoInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -391,9 +391,9 @@ func (ec *executionContext) field_MyMutation_createTodo_argsTodo( return zeroVal, nil } -func (ec *executionContext) field_MyMutation_updateTodo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_MyMutation_updateTodo_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_MyMutation_updateTodo_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -408,7 +408,7 @@ func (ec *executionContext) field_MyMutation_updateTodo_args(ctx context.Context } func (ec *executionContext) field_MyMutation_updateTodo_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -430,14 +430,14 @@ func (ec *executionContext) field_MyMutation_updateTodo_argsID( func (ec *executionContext) field_MyMutation_updateTodo_argsChanges( ctx context.Context, - rawArgs map[string]interface{}, -) (map[string]interface{}, error) { + rawArgs map[string]any, +) (map[string]any, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives // even if the argument is null. _, ok := rawArgs["changes"] if !ok { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } @@ -446,13 +446,13 @@ func (ec *executionContext) field_MyMutation_updateTodo_argsChanges( return ec.unmarshalNMap2map(ctx, tmp) } - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } -func (ec *executionContext) field_MyQuery___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_MyQuery___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_MyQuery___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -462,7 +462,7 @@ func (ec *executionContext) field_MyQuery___type_args(ctx context.Context, rawAr } func (ec *executionContext) field_MyQuery___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -482,9 +482,9 @@ func (ec *executionContext) field_MyQuery___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_MyQuery_todo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_MyQuery_todo_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_MyQuery_todo_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -494,7 +494,7 @@ func (ec *executionContext) field_MyQuery_todo_args(ctx context.Context, rawArgs } func (ec *executionContext) field_MyQuery_todo_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -514,9 +514,9 @@ func (ec *executionContext) field_MyQuery_todo_argsID( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -526,7 +526,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -546,9 +546,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -558,7 +558,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -582,7 +582,7 @@ func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( // region ************************** directives.gotpl ************************** -func (ec *executionContext) _queryMiddleware(ctx context.Context, obj *ast.OperationDefinition, next func(ctx context.Context) (interface{}, error)) graphql.Marshaler { +func (ec *executionContext) _queryMiddleware(ctx context.Context, obj *ast.OperationDefinition, next func(ctx context.Context) (any, error)) graphql.Marshaler { for _, d := range obj.Directives { switch d.Name { @@ -594,7 +594,7 @@ func (ec *executionContext) _queryMiddleware(ctx context.Context, obj *ast.Opera return graphql.Null } n := next - next = func(ctx context.Context) (interface{}, error) { + next = func(ctx context.Context) (any, error) { if ec.directives.User == nil { return nil, errors.New("directive user is not implemented") } @@ -615,7 +615,7 @@ func (ec *executionContext) _queryMiddleware(ctx context.Context, obj *ast.Opera } -func (ec *executionContext) _mutationMiddleware(ctx context.Context, obj *ast.OperationDefinition, next func(ctx context.Context) (interface{}, error)) graphql.Marshaler { +func (ec *executionContext) _mutationMiddleware(ctx context.Context, obj *ast.OperationDefinition, next func(ctx context.Context) (any, error)) graphql.Marshaler { for _, d := range obj.Directives { switch d.Name { @@ -627,7 +627,7 @@ func (ec *executionContext) _mutationMiddleware(ctx context.Context, obj *ast.Op return graphql.Null } n := next - next = func(ctx context.Context) (interface{}, error) { + next = func(ctx context.Context) (any, error) { if ec.directives.User == nil { return nil, errors.New("directive user is not implemented") } @@ -648,7 +648,7 @@ func (ec *executionContext) _mutationMiddleware(ctx context.Context, obj *ast.Op } -func (ec *executionContext) _fieldMiddleware(ctx context.Context, obj interface{}, next graphql.Resolver) interface{} { +func (ec *executionContext) _fieldMiddleware(ctx context.Context, obj any, next graphql.Resolver) any { fc := graphql.GetFieldContext(ctx) for _, d := range fc.Field.Directives { switch d.Name { @@ -660,7 +660,7 @@ func (ec *executionContext) _fieldMiddleware(ctx context.Context, obj interface{ return nil } n := next - next = func(ctx context.Context) (interface{}, error) { + next = func(ctx context.Context) (any, error) { if ec.directives.User == nil { return nil, errors.New("directive user is not implemented") } @@ -692,7 +692,7 @@ func (ec *executionContext) _MyMutation_createTodo(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.MyMutation().CreateTodo(rctx, fc.Args["todo"].(TodoInput)) }) @@ -752,9 +752,9 @@ func (ec *executionContext) _MyMutation_updateTodo(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.MyMutation().UpdateTodo(rctx, fc.Args["id"].(int), fc.Args["changes"].(map[string]interface{})) + return ec.resolvers.MyMutation().UpdateTodo(rctx, fc.Args["id"].(int), fc.Args["changes"].(map[string]any)) }) if resTmp == nil { @@ -809,7 +809,7 @@ func (ec *executionContext) _MyQuery_todo(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.MyQuery().Todo(rctx, fc.Args["id"].(int)) }) @@ -866,7 +866,7 @@ func (ec *executionContext) _MyQuery_lastTodo(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.MyQuery().LastTodo(rctx) }) @@ -912,7 +912,7 @@ func (ec *executionContext) _MyQuery_todos(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.MyQuery().Todos(rctx) }) @@ -961,7 +961,7 @@ func (ec *executionContext) _MyQuery___type(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -1032,7 +1032,7 @@ func (ec *executionContext) _MyQuery___schema(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -1084,7 +1084,7 @@ func (ec *executionContext) _Todo_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -1125,7 +1125,7 @@ func (ec *executionContext) _Todo_text(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Text, nil }) @@ -1166,13 +1166,13 @@ func (ec *executionContext) _Todo_done(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Done, nil } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { role, err := ec.unmarshalNRole2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋtodoᚐRole(ctx, "OWNER") if err != nil { var zeroVal bool @@ -1234,7 +1234,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1275,7 +1275,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1313,7 +1313,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -1354,7 +1354,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1405,7 +1405,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -1446,7 +1446,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1487,7 +1487,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1525,7 +1525,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1566,7 +1566,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1604,7 +1604,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1645,7 +1645,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1683,7 +1683,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1734,7 +1734,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1797,7 +1797,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1838,7 +1838,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1876,7 +1876,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1917,7 +1917,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1955,7 +1955,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -2018,7 +2018,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -2056,7 +2056,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2094,7 +2094,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -2157,7 +2157,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -2220,7 +2220,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -2280,7 +2280,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -2340,7 +2340,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -2393,7 +2393,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -2434,7 +2434,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2472,7 +2472,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2510,7 +2510,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2573,7 +2573,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -2633,7 +2633,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -2693,7 +2693,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2752,7 +2752,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -2800,7 +2800,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -2860,7 +2860,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -2890,10 +2890,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputTodoInput(ctx context.Context, obj interface{}) (TodoInput, error) { +func (ec *executionContext) unmarshalInputTodoInput(ctx context.Context, obj any) (TodoInput, error) { var it TodoInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -3470,7 +3470,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3485,7 +3485,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNID2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalNID2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalIntID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3500,12 +3500,12 @@ func (ec *executionContext) marshalNID2int(ctx context.Context, sel ast.Selectio return res } -func (ec *executionContext) unmarshalNMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalNMap2map(ctx context.Context, v any) (map[string]any, error) { res, err := graphql.UnmarshalMap(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalNMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]any) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -3521,7 +3521,7 @@ func (ec *executionContext) marshalNMap2map(ctx context.Context, sel ast.Selecti return res } -func (ec *executionContext) unmarshalNRole2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋtodoᚐRole(ctx context.Context, v interface{}) (Role, error) { +func (ec *executionContext) unmarshalNRole2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋtodoᚐRole(ctx context.Context, v any) (Role, error) { var res Role err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -3531,7 +3531,7 @@ func (ec *executionContext) marshalNRole2githubᚗcomᚋ99designsᚋgqlgenᚋ_ex return v } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3604,7 +3604,7 @@ func (ec *executionContext) marshalNTodo2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ return ec._Todo(ctx, sel, v) } -func (ec *executionContext) unmarshalNTodoInput2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋtodoᚐTodoInput(ctx context.Context, v interface{}) (TodoInput, error) { +func (ec *executionContext) unmarshalNTodoInput2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋtodoᚐTodoInput(ctx context.Context, v any) (TodoInput, error) { res, err := ec.unmarshalInputTodoInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3657,7 +3657,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3672,8 +3672,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -3847,7 +3847,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3862,7 +3862,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3872,7 +3872,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -3888,7 +3888,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/_examples/todo/models_gen.go b/_examples/todo/models_gen.go index 0f2db9c8d08..29a318452af 100644 --- a/_examples/todo/models_gen.go +++ b/_examples/todo/models_gen.go @@ -46,7 +46,7 @@ func (e Role) String() string { return string(e) } -func (e *Role) UnmarshalGQL(v interface{}) error { +func (e *Role) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/_examples/type-system-extension/generated.go b/_examples/type-system-extension/generated.go index 511aa235571..b22cacd981f 100644 --- a/_examples/type-system-extension/generated.go +++ b/_examples/type-system-extension/generated.go @@ -43,13 +43,13 @@ type ResolverRoot interface { } type DirectiveRoot struct { - EnumLogging func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - FieldLogging func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - InputLogging func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - InterfaceLogging func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - ObjectLogging func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - ScalarLogging func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - UnionLogging func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) + EnumLogging func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + FieldLogging func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + InputLogging func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + InterfaceLogging func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + ObjectLogging func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + ScalarLogging func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + UnionLogging func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) } type ComplexityRoot struct { @@ -92,7 +92,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -289,9 +289,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_MyMutation_createTodo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_MyMutation_createTodo_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_MyMutation_createTodo_argsTodo(ctx, rawArgs) if err != nil { return nil, err @@ -301,7 +301,7 @@ func (ec *executionContext) field_MyMutation_createTodo_args(ctx context.Context } func (ec *executionContext) field_MyMutation_createTodo_argsTodo( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (TodoInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -321,9 +321,9 @@ func (ec *executionContext) field_MyMutation_createTodo_argsTodo( return zeroVal, nil } -func (ec *executionContext) field_MyQuery___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_MyQuery___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_MyQuery___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -333,7 +333,7 @@ func (ec *executionContext) field_MyQuery___type_args(ctx context.Context, rawAr } func (ec *executionContext) field_MyQuery___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -353,9 +353,9 @@ func (ec *executionContext) field_MyQuery___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_MyQuery_todo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_MyQuery_todo_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_MyQuery_todo_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -365,7 +365,7 @@ func (ec *executionContext) field_MyQuery_todo_args(ctx context.Context, rawArgs } func (ec *executionContext) field_MyQuery_todo_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -385,9 +385,9 @@ func (ec *executionContext) field_MyQuery_todo_argsID( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -397,7 +397,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -417,9 +417,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -429,7 +429,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -469,13 +469,13 @@ func (ec *executionContext) _MyMutation_createTodo(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.MyMutation().CreateTodo(rctx, fc.Args["todo"].(TodoInput)) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.ObjectLogging == nil { var zeroVal *Todo return zeroVal, errors.New("directive objectLogging is not implemented") @@ -556,13 +556,13 @@ func (ec *executionContext) _MyQuery_todos(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.MyQuery().Todos(rctx) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.ObjectLogging == nil { var zeroVal []*Todo return zeroVal, errors.New("directive objectLogging is not implemented") @@ -632,13 +632,13 @@ func (ec *executionContext) _MyQuery_todo(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.MyQuery().Todo(rctx, fc.Args["id"].(string)) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.ObjectLogging == nil { var zeroVal *Todo return zeroVal, errors.New("directive objectLogging is not implemented") @@ -716,7 +716,7 @@ func (ec *executionContext) _MyQuery___type(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -790,7 +790,7 @@ func (ec *executionContext) _MyQuery___schema(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -845,7 +845,7 @@ func (ec *executionContext) _Todo_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -889,7 +889,7 @@ func (ec *executionContext) _Todo_text(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Text, nil }) @@ -933,7 +933,7 @@ func (ec *executionContext) _Todo_state(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.State, nil }) @@ -977,13 +977,13 @@ func (ec *executionContext) _Todo_verified(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Verified, nil } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.FieldLogging == nil { var zeroVal bool return zeroVal, errors.New("directive fieldLogging is not implemented") @@ -1043,7 +1043,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1087,7 +1087,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1128,7 +1128,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -1172,7 +1172,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1226,7 +1226,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -1270,7 +1270,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1314,7 +1314,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1355,7 +1355,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1399,7 +1399,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1440,7 +1440,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1484,7 +1484,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1525,7 +1525,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1579,7 +1579,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1645,7 +1645,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1689,7 +1689,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1730,7 +1730,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1774,7 +1774,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1815,7 +1815,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1881,7 +1881,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -1922,7 +1922,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1963,7 +1963,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -2029,7 +2029,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -2095,7 +2095,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -2158,7 +2158,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -2221,7 +2221,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -2277,7 +2277,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -2321,7 +2321,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2362,7 +2362,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2403,7 +2403,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2469,7 +2469,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -2532,7 +2532,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -2595,7 +2595,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2657,7 +2657,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -2708,7 +2708,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -2771,7 +2771,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -2804,10 +2804,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputTodoInput(ctx context.Context, obj interface{}) (TodoInput, error) { +func (ec *executionContext) unmarshalInputTodoInput(ctx context.Context, obj any) (TodoInput, error) { var it TodoInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -2820,9 +2820,9 @@ func (ec *executionContext) unmarshalInputTodoInput(ctx context.Context, obj int switch k { case "text": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) - directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, v) } + directive0 := func(ctx context.Context) (any, error) { return ec.unmarshalNString2string(ctx, v) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.InputLogging == nil { var zeroVal string return zeroVal, errors.New("directive inputLogging is not implemented") @@ -3406,7 +3406,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3421,7 +3421,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNID2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3436,7 +3436,7 @@ func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalNState2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋtypeᚑsystemᚑextensionᚐState(ctx context.Context, v interface{}) (State, error) { +func (ec *executionContext) unmarshalNState2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋtypeᚑsystemᚑextensionᚐState(ctx context.Context, v any) (State, error) { var res State err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -3446,7 +3446,7 @@ func (ec *executionContext) marshalNState2githubᚗcomᚋ99designsᚋgqlgenᚋ_e return v } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3519,7 +3519,7 @@ func (ec *executionContext) marshalNTodo2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ return ec._Todo(ctx, sel, v) } -func (ec *executionContext) unmarshalNTodoInput2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋtypeᚑsystemᚑextensionᚐTodoInput(ctx context.Context, v interface{}) (TodoInput, error) { +func (ec *executionContext) unmarshalNTodoInput2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋtypeᚑsystemᚑextensionᚐTodoInput(ctx context.Context, v any) (TodoInput, error) { res, err := ec.unmarshalInputTodoInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3572,7 +3572,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3587,8 +3587,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -3762,7 +3762,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3777,7 +3777,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3787,7 +3787,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -3803,7 +3803,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/_examples/type-system-extension/models_gen.go b/_examples/type-system-extension/models_gen.go index c1df9a199be..2cc2fee3dc2 100644 --- a/_examples/type-system-extension/models_gen.go +++ b/_examples/type-system-extension/models_gen.go @@ -63,7 +63,7 @@ func (e State) String() string { return string(e) } -func (e *State) UnmarshalGQL(v interface{}) error { +func (e *State) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/_examples/uuid/graph/generated.go b/_examples/uuid/graph/generated.go index 18af57b7f19..413399f93a9 100644 --- a/_examples/uuid/graph/generated.go +++ b/_examples/uuid/graph/generated.go @@ -79,7 +79,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -256,9 +256,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Mutation_createTodo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_createTodo_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} var arg0 model.NewTodo if tmp, ok := rawArgs["input"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) @@ -271,9 +271,9 @@ func (ec *executionContext) field_Mutation_createTodo_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} var arg0 string if tmp, ok := rawArgs["name"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) @@ -286,9 +286,9 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) @@ -301,9 +301,9 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) @@ -336,7 +336,7 @@ func (ec *executionContext) _Mutation_createTodo(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().CreateTodo(rctx, fc.Args["input"].(model.NewTodo)) }) @@ -401,7 +401,7 @@ func (ec *executionContext) _Query_todos(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Todos(rctx) }) @@ -455,7 +455,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -529,7 +529,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -584,7 +584,7 @@ func (ec *executionContext) _Todo_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -628,7 +628,7 @@ func (ec *executionContext) _Todo_text(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Text, nil }) @@ -672,7 +672,7 @@ func (ec *executionContext) _Todo_done(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Done, nil }) @@ -716,7 +716,7 @@ func (ec *executionContext) _Todo_uid(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.UID, nil }) @@ -760,7 +760,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -804,7 +804,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -845,7 +845,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -889,7 +889,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -943,7 +943,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -987,7 +987,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1031,7 +1031,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1072,7 +1072,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1116,7 +1116,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1157,7 +1157,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1201,7 +1201,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1242,7 +1242,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1296,7 +1296,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1362,7 +1362,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1406,7 +1406,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1447,7 +1447,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1491,7 +1491,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1532,7 +1532,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1598,7 +1598,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -1639,7 +1639,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1680,7 +1680,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -1746,7 +1746,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -1812,7 +1812,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -1875,7 +1875,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -1938,7 +1938,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -1994,7 +1994,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -2038,7 +2038,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2079,7 +2079,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2120,7 +2120,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2186,7 +2186,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -2249,7 +2249,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -2312,7 +2312,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2374,7 +2374,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -2425,7 +2425,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -2488,7 +2488,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -2521,10 +2521,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(ctx context.Conte // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputNewTodo(ctx context.Context, obj interface{}) (model.NewTodo, error) { +func (ec *executionContext) unmarshalInputNewTodo(ctx context.Context, obj any) (model.NewTodo, error) { var it model.NewTodo - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -3077,7 +3077,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3092,7 +3092,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNID2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3107,12 +3107,12 @@ func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalNNewTodo2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋuuidᚋgraphᚋmodelᚐNewTodo(ctx context.Context, v interface{}) (model.NewTodo, error) { +func (ec *executionContext) unmarshalNNewTodo2githubᚗcomᚋ99designsᚋgqlgenᚋ_examplesᚋuuidᚋgraphᚋmodelᚐNewTodo(ctx context.Context, v any) (model.NewTodo, error) { res, err := ec.unmarshalInputNewTodo(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3185,7 +3185,7 @@ func (ec *executionContext) marshalNTodo2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ return ec._Todo(ctx, sel, v) } -func (ec *executionContext) unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, v interface{}) (uuid.UUID, error) { +func (ec *executionContext) unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, v any) (uuid.UUID, error) { res, err := graphql.UnmarshalUUID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3248,7 +3248,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3263,8 +3263,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -3438,7 +3438,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3453,7 +3453,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3463,7 +3463,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -3479,7 +3479,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/_examples/websocket-initfunc/server/graph/generated.go b/_examples/websocket-initfunc/server/graph/generated.go index f11ac45af2a..4633e992fdf 100644 --- a/_examples/websocket-initfunc/server/graph/generated.go +++ b/_examples/websocket-initfunc/server/graph/generated.go @@ -80,7 +80,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e} _ = ec switch typeName + "." + field { @@ -233,9 +233,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Mutation_postMessageTo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_postMessageTo_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} var arg0 string if tmp, ok := rawArgs["subscriber"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriber")) @@ -257,9 +257,9 @@ func (ec *executionContext) field_Mutation_postMessageTo_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} var arg0 string if tmp, ok := rawArgs["name"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) @@ -272,9 +272,9 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Subscription_subscribe_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Subscription_subscribe_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} var arg0 string if tmp, ok := rawArgs["subscriber"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriber")) @@ -287,9 +287,9 @@ func (ec *executionContext) field_Subscription_subscribe_args(ctx context.Contex return args, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) @@ -302,9 +302,9 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) @@ -337,7 +337,7 @@ func (ec *executionContext) _Dummy_id(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -381,7 +381,7 @@ func (ec *executionContext) _Dummy_text(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Text, nil }) @@ -425,7 +425,7 @@ func (ec *executionContext) _Dummy_done(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Done, nil }) @@ -469,7 +469,7 @@ func (ec *executionContext) _Mutation_postMessageTo(ctx context.Context, field g ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().PostMessageTo(rctx, fc.Args["subscriber"].(string), fc.Args["content"].(string)) }) @@ -524,7 +524,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -598,7 +598,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -653,7 +653,7 @@ func (ec *executionContext) _Subscription_subscribe(ctx context.Context, field g ret = nil } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().Subscribe(rctx, fc.Args["subscriber"].(string)) }) @@ -722,7 +722,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -766,7 +766,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -807,7 +807,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -851,7 +851,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -905,7 +905,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -949,7 +949,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -993,7 +993,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1034,7 +1034,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1078,7 +1078,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1119,7 +1119,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1163,7 +1163,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1204,7 +1204,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1258,7 +1258,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1324,7 +1324,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1368,7 +1368,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1409,7 +1409,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1453,7 +1453,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1494,7 +1494,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1560,7 +1560,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -1601,7 +1601,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1642,7 +1642,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -1708,7 +1708,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -1774,7 +1774,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -1837,7 +1837,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -1900,7 +1900,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -1956,7 +1956,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -2000,7 +2000,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2041,7 +2041,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2082,7 +2082,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2148,7 +2148,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -2211,7 +2211,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -2274,7 +2274,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2336,7 +2336,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -2387,7 +2387,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -2450,7 +2450,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -2952,7 +2952,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2967,7 +2967,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNID2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2982,7 +2982,7 @@ func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3045,7 +3045,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3060,8 +3060,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -3235,7 +3235,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3250,7 +3250,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3260,7 +3260,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -3276,7 +3276,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/codegen/args.gotpl b/codegen/args.gotpl index 98d6e288758..7b0b452abb1 100644 --- a/codegen/args.gotpl +++ b/codegen/args.gotpl @@ -2,12 +2,12 @@ {{ range $name, $args := .Args }} {{ if $useFunctionSyntaxForExecutionContext -}} -func {{ $name }}(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func {{ $name }}(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { {{- else -}} -func (ec *executionContext) {{ $name }}(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) {{ $name }}(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { {{- end }} var err error - args := map[string]interface{}{} + args := map[string]any{} {{- range $i, $arg := . }} {{ if $useFunctionSyntaxForExecutionContext -}} @@ -28,12 +28,12 @@ func (ec *executionContext) {{ $name }}(ctx context.Context, rawArgs map[string] func {{ $name }}{{$arg.Name | go}}( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ({{ $arg.TypeReference.GO | ref}}, error) { {{- else -}} func (ec *executionContext) {{ $name }}{{$arg.Name | go}}( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ({{ $arg.TypeReference.GO | ref}}, error) { {{- end }} {{- if not .CallArgumentDirectivesWithNull}} @@ -48,7 +48,7 @@ func (ec *executionContext) {{ $name }}(ctx context.Context, rawArgs map[string] {{end}} ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField({{$arg.Name|quote}})) {{- if $arg.ImplDirectives }} - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs[{{$arg.Name|quote}}] if !ok { var zeroVal {{ $arg.TypeReference.GO | ref}} diff --git a/codegen/config/binder.go b/codegen/config/binder.go index fc7b2edc4a0..2146035a6d9 100644 --- a/codegen/config/binder.go +++ b/codegen/config/binder.go @@ -63,11 +63,11 @@ func (b *Binder) FindTypeFromName(name string) (types.Type, error) { func (b *Binder) FindType(pkgName, typeName string) (types.Type, error) { if pkgName == "" { - if typeName == "map[string]interface{}" { + if typeName == "map[string]any" { return MapType, nil } - if typeName == "interface{}" { + if typeName == "any" { return InterfaceType, nil } } @@ -103,11 +103,11 @@ func (b *Binder) DefaultUserObject(name string) (types.Type, error) { return nil, fmt.Errorf("%s not found in typemap", name) } - if models[0] == "map[string]interface{}" { + if models[0] == "map[string]any" { return MapType, nil } - if models[0] == "interface{}" { + if models[0] == "any" { return InterfaceType, nil } @@ -398,7 +398,7 @@ func (b *Binder) TypeReference(schemaType *ast.Type, bindTarget types.Type) (ret } for _, model := range b.cfg.Models[schemaType.Name()].Model { - if model == "map[string]interface{}" { + if model == "map[string]any" { if !isMap(bindTarget) { continue } @@ -410,7 +410,7 @@ func (b *Binder) TypeReference(schemaType *ast.Type, bindTarget types.Type) (ret }, nil } - if model == "interface{}" { + if model == "any" { if !isIntf(bindTarget) { continue } diff --git a/codegen/config/config.go b/codegen/config/config.go index 1dac73bb245..7c791895077 100644 --- a/codegen/config/config.go +++ b/codegen/config/config.go @@ -647,7 +647,7 @@ func (tm TypeMap) ReferencedPackages() []string { for _, typ := range tm { for _, model := range typ.Model { - if model == "map[string]interface{}" || model == "interface{}" { + if model == "map[string]any" || model == "any" { continue } pkg, _ := code.PkgAndType(model) diff --git a/codegen/config/config_test.go b/codegen/config/config_test.go index 2afc60c8570..a6e38d97eb4 100644 --- a/codegen/config/config_test.go +++ b/codegen/config/config_test.go @@ -135,7 +135,7 @@ func TestReferencedPackages(t *testing.T) { "Foo": {Model: StringList{"github.com/test.Foo"}}, "Bar": {Model: StringList{"github.com/test.Bar"}}, "Baz": {Model: StringList{"github.com/otherpkg.Baz"}}, - "Map": {Model: StringList{"map[string]interface{}"}}, + "Map": {Model: StringList{"map[string]any"}}, "SkipResolver": { Fields: map[string]TypeMapField{ "field": {Resolver: false}, diff --git a/codegen/directive.go b/codegen/directive.go index aaf3be64d63..f7a7c1c8ada 100644 --- a/codegen/directive.go +++ b/codegen/directive.go @@ -168,13 +168,13 @@ func (d *Directive) CallName() string { } func (d *Directive) Declaration() string { - res := d.CallName() + " func(ctx context.Context, obj interface{}, next graphql.Resolver" + res := d.CallName() + " func(ctx context.Context, obj any, next graphql.Resolver" for _, arg := range d.Args { res += fmt.Sprintf(", %s %s", templates.ToGoPrivate(arg.Name), templates.CurrentImports.LookupType(arg.TypeReference.GO)) } - res += ") (res interface{}, err error)" + res += ") (res any, err error)" return res } diff --git a/codegen/directives.gotpl b/codegen/directives.gotpl index a66a53bd206..e575c3d6c08 100644 --- a/codegen/directives.gotpl +++ b/codegen/directives.gotpl @@ -5,7 +5,7 @@ {{ $useFunctionSyntaxForExecutionContext := .UseFunctionSyntaxForExecutionContext }} {{ $zeroVal := .Field.TypeReference.GO | ref}} {{- range $i, $directive := .Field.ImplDirectives -}} - directive{{add $i 1}} := func(ctx context.Context) (interface{}, error) { + directive{{add $i 1}} := func(ctx context.Context) (any, error) { {{- range $arg := $directive.Args }} {{- if notNil "Value" $arg }} {{ if $useFunctionSyntaxForExecutionContext -}} @@ -59,7 +59,7 @@ } {{- end }} n := next - next = func(ctx context.Context) (interface{}, error) { + next = func(ctx context.Context) (any, error) { {{- template "callDirective" $directive -}} } {{- end }} @@ -88,9 +88,9 @@ {{ if .Directives.LocationDirectives "QUERY" }} {{ if $useFunctionSyntaxForExecutionContext -}} -func _queryMiddleware(ctx context.Context, ec *executionContext, obj *ast.OperationDefinition, next func(ctx context.Context) (interface{}, error)) graphql.Marshaler { +func _queryMiddleware(ctx context.Context, ec *executionContext, obj *ast.OperationDefinition, next func(ctx context.Context) (any, error)) graphql.Marshaler { {{- else -}} -func (ec *executionContext) _queryMiddleware(ctx context.Context, obj *ast.OperationDefinition, next func(ctx context.Context) (interface{}, error)) graphql.Marshaler { +func (ec *executionContext) _queryMiddleware(ctx context.Context, obj *ast.OperationDefinition, next func(ctx context.Context) (any, error)) graphql.Marshaler { {{- end }} {{ template "queryDirectives" (dict "DirectiveList" (.Directives.LocationDirectives "QUERY") "UseFunctionSyntaxForExecutionContext" $useFunctionSyntaxForExecutionContext) }} } @@ -98,9 +98,9 @@ func (ec *executionContext) _queryMiddleware(ctx context.Context, obj *ast.Opera {{ if .Directives.LocationDirectives "MUTATION" }} {{ if $useFunctionSyntaxForExecutionContext -}} -func _mutationMiddleware(ctx context.Context, ec *executionContext, obj *ast.OperationDefinition, next func(ctx context.Context) (interface{}, error)) graphql.Marshaler { +func _mutationMiddleware(ctx context.Context, ec *executionContext, obj *ast.OperationDefinition, next func(ctx context.Context) (any, error)) graphql.Marshaler { {{- else -}} -func (ec *executionContext) _mutationMiddleware(ctx context.Context, obj *ast.OperationDefinition, next func(ctx context.Context) (interface{}, error)) graphql.Marshaler { +func (ec *executionContext) _mutationMiddleware(ctx context.Context, obj *ast.OperationDefinition, next func(ctx context.Context) (any, error)) graphql.Marshaler { {{- end }} {{ template "queryDirectives" (dict "DirectiveList" (.Directives.LocationDirectives "MUTATION") "UseFunctionSyntaxForExecutionContext" $useFunctionSyntaxForExecutionContext) }} } @@ -108,9 +108,9 @@ func (ec *executionContext) _mutationMiddleware(ctx context.Context, obj *ast.Op {{ if .Directives.LocationDirectives "SUBSCRIPTION" }} {{ if $useFunctionSyntaxForExecutionContext -}} -func _subscriptionMiddleware(ctx context.Context, ec *executionContext, obj *ast.OperationDefinition, next func(ctx context.Context) (interface{}, error)) func(ctx context.Context) graphql.Marshaler { +func _subscriptionMiddleware(ctx context.Context, ec *executionContext, obj *ast.OperationDefinition, next func(ctx context.Context) (any, error)) func(ctx context.Context) graphql.Marshaler { {{- else -}} -func (ec *executionContext) _subscriptionMiddleware(ctx context.Context, obj *ast.OperationDefinition, next func(ctx context.Context) (interface{}, error)) func(ctx context.Context) graphql.Marshaler { +func (ec *executionContext) _subscriptionMiddleware(ctx context.Context, obj *ast.OperationDefinition, next func(ctx context.Context) (any, error)) func(ctx context.Context) graphql.Marshaler { {{- end }} for _, d := range obj.Directives { switch d.Name { @@ -131,7 +131,7 @@ func (ec *executionContext) _subscriptionMiddleware(ctx context.Context, obj *as } {{- end }} n := next - next = func(ctx context.Context) (interface{}, error) { + next = func(ctx context.Context) (any, error) { {{- template "callDirective" $directive -}} } {{- end }} @@ -156,9 +156,9 @@ func (ec *executionContext) _subscriptionMiddleware(ctx context.Context, obj *as {{ if .Directives.LocationDirectives "FIELD" }} {{ if $useFunctionSyntaxForExecutionContext -}} - func _fieldMiddleware(ctx context.Context, ec *executionContext, obj interface{}, next graphql.Resolver) interface{} { + func _fieldMiddleware(ctx context.Context, ec *executionContext, obj any, next graphql.Resolver) any { {{- else -}} - func (ec *executionContext) _fieldMiddleware(ctx context.Context, obj interface{}, next graphql.Resolver) interface{} { + func (ec *executionContext) _fieldMiddleware(ctx context.Context, obj any, next graphql.Resolver) any { {{- end }} {{- if .Directives.LocationDirectives "FIELD" }} fc := graphql.GetFieldContext(ctx) @@ -179,7 +179,7 @@ func (ec *executionContext) _subscriptionMiddleware(ctx context.Context, obj *as } {{- end }} n := next - next = func(ctx context.Context) (interface{}, error) { + next = func(ctx context.Context) (any, error) { {{- template "callDirective" $directive -}} } {{- end }} diff --git a/codegen/field.go b/codegen/field.go index 7f4a5ad1b0f..c387059295c 100644 --- a/codegen/field.go +++ b/codegen/field.go @@ -30,7 +30,7 @@ type Field struct { Args []*FieldArgument // A list of arguments to be passed to this field MethodHasContext bool // If this is bound to a go method, does the method also take a context NoErr bool // If this is bound to a go method, does that method have an error as the second argument - VOkFunc bool // If this is bound to a go method, is it of shape (interface{}, bool) + VOkFunc bool // If this is bound to a go method, is it of shape (any, bool) Object *Object // A link back to the parent object Default any // The default value Stream bool // does this field return a channel? @@ -602,11 +602,11 @@ func (f *Field) CallArgs() string { if iface, ok := arg.TypeReference.GO.(*types.Interface); ok && iface.Empty() { tmp = fmt.Sprintf(` - func () interface{} { + func () any { if fc.Args["%s"] == nil { return nil } - return fc.Args["%s"].(interface{}) + return fc.Args["%s"].(any) }()`, arg.Name, arg.Name, ) } diff --git a/codegen/field.gotpl b/codegen/field.gotpl index 470139d87fe..1c7ba70a526 100644 --- a/codegen/field.gotpl +++ b/codegen/field.gotpl @@ -43,14 +43,14 @@ func (ec *executionContext) _{{$object.Name}}_{{$field.Name}}(ctx context.Contex {{- else}} {{- if $.AllDirectives.LocationDirectives "FIELD" }} {{ if $useFunctionSyntaxForExecutionContext -}} - resTmp := _fieldMiddleware(ctx, ec, {{if $object.Root}}nil{{else}}obj{{end}}, func(rctx context.Context) (interface{}, error) { + resTmp := _fieldMiddleware(ctx, ec, {{if $object.Root}}nil{{else}}obj{{end}}, func(rctx context.Context) (any, error) { {{- else -}} - resTmp := ec._fieldMiddleware(ctx, {{if $object.Root}}nil{{else}}obj{{end}}, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, {{if $object.Root}}nil{{else}}obj{{end}}, func(rctx context.Context) (any, error) { {{- end }} {{ template "field" (dict "Field" $field "UseFunctionSyntaxForExecutionContext" $useFunctionSyntaxForExecutionContext) }} }) {{ else }} - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { {{ template "field" (dict "Field" $field "UseFunctionSyntaxForExecutionContext" $useFunctionSyntaxForExecutionContext) }} }) if err != nil { @@ -157,7 +157,7 @@ func (ec *executionContext) {{ $field.FieldContextFunc }}({{ if not $field.Args {{ define "field" }} {{- $useFunctionSyntaxForExecutionContext := .UseFunctionSyntaxForExecutionContext -}} {{- if .Field.HasDirectives -}} - directive0 := func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children {{ template "fieldDefinition" .Field }} } diff --git a/codegen/field_test.go b/codegen/field_test.go index 00f214a7097..0ecff58fa2a 100644 --- a/codegen/field_test.go +++ b/codegen/field_test.go @@ -159,11 +159,11 @@ func TestField_CallArgs(t *testing.T) { }, }, Expected: `ctx, ` + ` - func () interface{} { + func () any { if fc.Args["test"] == nil { return nil } - return fc.Args["test"].(interface{}) + return fc.Args["test"].(any) }(), fc.Args["test2"].(TestInterface), fc.Args["test3"].(string)`, }, { diff --git a/codegen/generated!.gotpl b/codegen/generated!.gotpl index f631d02cfb1..8a31d2b5238 100644 --- a/codegen/generated!.gotpl +++ b/codegen/generated!.gotpl @@ -118,7 +118,7 @@ return parsedSchema } - func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { + func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec {{ if not .Config.OmitComplexity -}} @@ -182,10 +182,10 @@ ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) {{ if .Directives.LocationDirectives "QUERY" -}} {{ if $useFunctionSyntaxForExecutionContext -}} - data = _queryMiddleware(ctx, &ec, opCtx.Operation, func(ctx context.Context) (interface{}, error){ + data = _queryMiddleware(ctx, &ec, opCtx.Operation, func(ctx context.Context) (any, error){ return _{{.QueryRoot.Name}}(ctx, ec, opCtx.Operation.SelectionSet), nil {{- else -}} - data = ec._queryMiddleware(ctx, opCtx.Operation, func(ctx context.Context) (interface{}, error){ + data = ec._queryMiddleware(ctx, opCtx.Operation, func(ctx context.Context) (any, error){ return ec._{{.QueryRoot.Name}}(ctx, opCtx.Operation.SelectionSet), nil {{- end }} }) @@ -227,10 +227,10 @@ ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) {{ if .Directives.LocationDirectives "MUTATION" -}} {{ if $useFunctionSyntaxForExecutionContext -}} - data := _mutationMiddleware(ctx, &ec, opCtx.Operation, func(ctx context.Context) (interface{}, error){ + data := _mutationMiddleware(ctx, &ec, opCtx.Operation, func(ctx context.Context) (any, error){ return _{{.MutationRoot.Name}}(ctx, ec, opCtx.Operation.SelectionSet), nil {{- else -}} - data := ec._mutationMiddleware(ctx, opCtx.Operation, func(ctx context.Context) (interface{}, error){ + data := ec._mutationMiddleware(ctx, opCtx.Operation, func(ctx context.Context) (any, error){ return ec._{{.MutationRoot.Name}}(ctx, opCtx.Operation.SelectionSet), nil {{- end }} }) @@ -253,10 +253,10 @@ {{- if .SubscriptionRoot }} case ast.Subscription: {{ if .Directives.LocationDirectives "SUBSCRIPTION" -}} {{ if $useFunctionSyntaxForExecutionContext -}} - next := _subscriptionMiddleware(ctx, &ec, opCtx.Operation, func(ctx context.Context) (interface{}, error){ + next := _subscriptionMiddleware(ctx, &ec, opCtx.Operation, func(ctx context.Context) (any, error){ return _{{.SubscriptionRoot.Name}}(ctx, ec, opCtx.Operation.SelectionSet),nil {{- else -}} - next := ec._subscriptionMiddleware(ctx, opCtx.Operation, func(ctx context.Context) (interface{}, error){ + next := ec._subscriptionMiddleware(ctx, opCtx.Operation, func(ctx context.Context) (any, error){ return ec._{{.SubscriptionRoot.Name}}(ctx, opCtx.Operation.SelectionSet),nil {{- end }} }) diff --git a/codegen/input.gotpl b/codegen/input.gotpl index 23677a7a03e..6b674b6f90b 100644 --- a/codegen/input.gotpl +++ b/codegen/input.gotpl @@ -7,17 +7,17 @@ {{- $it = "&it" }} {{- end }} {{ if $useFunctionSyntaxForExecutionContext -}} - func unmarshalInput{{ .Name }}(ctx context.Context, ec *executionContext, obj interface{}) ({{ if .PointersInUnmarshalInput }}*{{ end }}{{.Type | ref}}, error) { + func unmarshalInput{{ .Name }}(ctx context.Context, ec *executionContext, obj any) ({{ if .PointersInUnmarshalInput }}*{{ end }}{{.Type | ref}}, error) { {{- else -}} - func (ec *executionContext) unmarshalInput{{ .Name }}(ctx context.Context, obj interface{}) ({{ if .PointersInUnmarshalInput }}*{{ end }}{{.Type | ref}}, error) { + func (ec *executionContext) unmarshalInput{{ .Name }}(ctx context.Context, obj any) ({{ if .PointersInUnmarshalInput }}*{{ end }}{{.Type | ref}}, error) { {{- end }} {{- if $input.IsMap }} - it := make(map[string]interface{}, len(obj.(map[string]interface{}))) + it := make(map[string]any, len(obj.(map[string]any))) {{- else }} var it {{.Type | ref}} {{- end }} - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } {{ range $field := .Fields}} @@ -44,9 +44,9 @@ ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField({{$field.Name|quote}})) {{- if $field.ImplDirectives }} {{ if $useFunctionSyntaxForExecutionContext -}} - directive0 := func(ctx context.Context) (interface{}, error) { return {{ $field.TypeReference.UnmarshalFunc }}(ctx, ec, v) } + directive0 := func(ctx context.Context) (any, error) { return {{ $field.TypeReference.UnmarshalFunc }}(ctx, ec, v) } {{- else -}} - directive0 := func(ctx context.Context) (interface{}, error) { return ec.{{ $field.TypeReference.UnmarshalFunc }}(ctx, v) } + directive0 := func(ctx context.Context) (any, error) { return ec.{{ $field.TypeReference.UnmarshalFunc }}(ctx, v) } {{- end }} {{ template "implDirectives" (dict "Field" $field "UseFunctionSyntaxForExecutionContext" $useFunctionSyntaxForExecutionContext) }} tmp, err := directive{{$field.ImplDirectives|len}}(ctx) diff --git a/codegen/root_.gotpl b/codegen/root_.gotpl index 70e25c381f1..3988a695d8f 100644 --- a/codegen/root_.gotpl +++ b/codegen/root_.gotpl @@ -90,7 +90,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec {{- if not .Config.OmitComplexity }} @@ -154,10 +154,10 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) {{ if .Directives.LocationDirectives "QUERY" -}} {{ if $useFunctionSyntaxForExecutionContext -}} - data = _queryMiddleware(ctx, ec, opCtx.Operation, func(ctx context.Context) (interface{}, error){ + data = _queryMiddleware(ctx, ec, opCtx.Operation, func(ctx context.Context) (any, error){ return _{{.QueryRoot.Name}}(ctx, &ec, opCtx.Operation.SelectionSet), nil {{- else -}} - data = ec._queryMiddleware(ctx, opCtx.Operation, func(ctx context.Context) (interface{}, error){ + data = ec._queryMiddleware(ctx, opCtx.Operation, func(ctx context.Context) (any, error){ return ec._{{.QueryRoot.Name}}(ctx, opCtx.Operation.SelectionSet), nil {{- end }} }) @@ -199,10 +199,10 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) {{ if .Directives.LocationDirectives "MUTATION" -}} {{ if $useFunctionSyntaxForExecutionContext -}} - data := _mutationMiddleware(ctx, &ec, opCtx.Operation, func(ctx context.Context) (interface{}, error){ + data := _mutationMiddleware(ctx, &ec, opCtx.Operation, func(ctx context.Context) (any, error){ return _{{.MutationRoot.Name}}(ctx, ec, opCtx.Operation.SelectionSet), nil {{- else -}} - data := ec._mutationMiddleware(ctx, opCtx.Operation, func(ctx context.Context) (interface{}, error){ + data := ec._mutationMiddleware(ctx, opCtx.Operation, func(ctx context.Context) (any, error){ return ec._{{.MutationRoot.Name}}(ctx, opCtx.Operation.SelectionSet), nil {{- end }} }) @@ -225,10 +225,10 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { {{- if .SubscriptionRoot }} case ast.Subscription: {{ if .Directives.LocationDirectives "SUBSCRIPTION" -}} {{ if $useFunctionSyntaxForExecutionContext -}} - next := _subscriptionMiddleware(ctx, &ec, opCtx.Operation, func(ctx context.Context) (interface{}, error){ + next := _subscriptionMiddleware(ctx, &ec, opCtx.Operation, func(ctx context.Context) (any, error){ return _{{.SubscriptionRoot.Name}}(ctx, ec, opCtx.Operation.SelectionSet),nil {{- else -}} - next := ec._subscriptionMiddleware(ctx, opCtx.Operation, func(ctx context.Context) (interface{}, error){ + next := ec._subscriptionMiddleware(ctx, opCtx.Operation, func(ctx context.Context) (any, error){ return ec._{{.SubscriptionRoot.Name}}(ctx, opCtx.Operation.SelectionSet),nil {{- end }} }) diff --git a/codegen/templates/templates.go b/codegen/templates/templates.go index 23468d20459..df6c65e326d 100644 --- a/codegen/templates/templates.go +++ b/codegen/templates/templates.go @@ -622,10 +622,10 @@ func Dump(val any) string { for _, part := range val { parts = append(parts, Dump(part)) } - return "[]interface{}{" + strings.Join(parts, ",") + "}" + return "[]any{" + strings.Join(parts, ",") + "}" case map[string]any: buf := bytes.Buffer{} - buf.WriteString("map[string]interface{}{") + buf.WriteString("map[string]any{") var keys []string for key := range val { keys = append(keys, key) diff --git a/codegen/testserver/compliant-int/generated-compliant-strict/schema.go b/codegen/testserver/compliant-int/generated-compliant-strict/schema.go index 0face0def66..17aa887f192 100644 --- a/codegen/testserver/compliant-int/generated-compliant-strict/schema.go +++ b/codegen/testserver/compliant-int/generated-compliant-strict/schema.go @@ -81,7 +81,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -272,9 +272,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -284,7 +284,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -304,9 +304,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query_echoInt64InputToInt64Object_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_echoInt64InputToInt64Object_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_echoInt64InputToInt64Object_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -316,7 +316,7 @@ func (ec *executionContext) field_Query_echoInt64InputToInt64Object_args(ctx con } func (ec *executionContext) field_Query_echoInt64InputToInt64Object_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (Input64, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -336,9 +336,9 @@ func (ec *executionContext) field_Query_echoInt64InputToInt64Object_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Query_echoInt64ToInt64_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_echoInt64ToInt64_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_echoInt64ToInt64_argsN(ctx, rawArgs) if err != nil { return nil, err @@ -348,7 +348,7 @@ func (ec *executionContext) field_Query_echoInt64ToInt64_args(ctx context.Contex } func (ec *executionContext) field_Query_echoInt64ToInt64_argsN( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -368,9 +368,9 @@ func (ec *executionContext) field_Query_echoInt64ToInt64_argsN( return zeroVal, nil } -func (ec *executionContext) field_Query_echoIntInputToIntObject_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_echoIntInputToIntObject_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_echoIntInputToIntObject_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -380,7 +380,7 @@ func (ec *executionContext) field_Query_echoIntInputToIntObject_args(ctx context } func (ec *executionContext) field_Query_echoIntInputToIntObject_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (Input, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -400,9 +400,9 @@ func (ec *executionContext) field_Query_echoIntInputToIntObject_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Query_echoIntToInt_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_echoIntToInt_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_echoIntToInt_argsN(ctx, rawArgs) if err != nil { return nil, err @@ -412,7 +412,7 @@ func (ec *executionContext) field_Query_echoIntToInt_args(ctx context.Context, r } func (ec *executionContext) field_Query_echoIntToInt_argsN( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int32, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -432,9 +432,9 @@ func (ec *executionContext) field_Query_echoIntToInt_argsN( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -444,7 +444,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -464,9 +464,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -476,7 +476,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -516,7 +516,7 @@ func (ec *executionContext) _Query_echoIntToInt(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().EchoIntToInt(rctx, fc.Args["n"].(*int32)) }) @@ -571,7 +571,7 @@ func (ec *executionContext) _Query_echoInt64ToInt64(ctx context.Context, field g ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().EchoInt64ToInt64(rctx, fc.Args["n"].(*int)) }) @@ -626,7 +626,7 @@ func (ec *executionContext) _Query_echoIntInputToIntObject(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().EchoIntInputToIntObject(rctx, fc.Args["input"].(Input)) }) @@ -682,7 +682,7 @@ func (ec *executionContext) _Query_echoInt64InputToInt64Object(ctx context.Conte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().EchoInt64InputToInt64Object(rctx, fc.Args["input"].(Input64)) }) @@ -738,7 +738,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -812,7 +812,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -867,7 +867,7 @@ func (ec *executionContext) _Result_n(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.N, nil }) @@ -911,7 +911,7 @@ func (ec *executionContext) _Result64_n(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.N, nil }) @@ -955,7 +955,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -999,7 +999,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1040,7 +1040,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -1084,7 +1084,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1138,7 +1138,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -1182,7 +1182,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1226,7 +1226,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1267,7 +1267,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1311,7 +1311,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1352,7 +1352,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1396,7 +1396,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1437,7 +1437,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1491,7 +1491,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1557,7 +1557,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1601,7 +1601,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1642,7 +1642,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1686,7 +1686,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1727,7 +1727,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1793,7 +1793,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -1834,7 +1834,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1875,7 +1875,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -1941,7 +1941,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -2007,7 +2007,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -2070,7 +2070,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -2133,7 +2133,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -2189,7 +2189,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -2233,7 +2233,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2274,7 +2274,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2315,7 +2315,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2381,7 +2381,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -2444,7 +2444,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -2507,7 +2507,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2569,7 +2569,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -2620,7 +2620,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -2683,7 +2683,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -2716,10 +2716,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputInput(ctx context.Context, obj interface{}) (Input, error) { +func (ec *executionContext) unmarshalInputInput(ctx context.Context, obj any) (Input, error) { var it Input - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -2743,10 +2743,10 @@ func (ec *executionContext) unmarshalInputInput(ctx context.Context, obj interfa return it, nil } -func (ec *executionContext) unmarshalInputInput64(ctx context.Context, obj interface{}) (Input64, error) { +func (ec *executionContext) unmarshalInputInput64(ctx context.Context, obj any) (Input64, error) { var it Input64 - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -3314,7 +3314,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3329,17 +3329,17 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋcompliantᚑintᚋgeneratedᚑcompliantᚑstrictᚐInput(ctx context.Context, v interface{}) (Input, error) { +func (ec *executionContext) unmarshalNInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋcompliantᚑintᚋgeneratedᚑcompliantᚑstrictᚐInput(ctx context.Context, v any) (Input, error) { res, err := ec.unmarshalInputInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNInput642githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋcompliantᚑintᚋgeneratedᚑcompliantᚑstrictᚐInput64(ctx context.Context, v interface{}) (Input64, error) { +func (ec *executionContext) unmarshalNInput642githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋcompliantᚑintᚋgeneratedᚑcompliantᚑstrictᚐInput64(ctx context.Context, v any) (Input64, error) { res, err := ec.unmarshalInputInput64(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNInt2int32(ctx context.Context, v interface{}) (int32, error) { +func (ec *executionContext) unmarshalNInt2int32(ctx context.Context, v any) (int32, error) { res, err := graphql.UnmarshalInt32(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3354,7 +3354,7 @@ func (ec *executionContext) marshalNInt2int32(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalNInt642int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalNInt642int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3369,7 +3369,7 @@ func (ec *executionContext) marshalNInt642int(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3432,7 +3432,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3447,8 +3447,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -3622,7 +3622,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3637,7 +3637,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3647,7 +3647,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -3663,7 +3663,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOInt2ᚖint32(ctx context.Context, v interface{}) (*int32, error) { +func (ec *executionContext) unmarshalOInt2ᚖint32(ctx context.Context, v any) (*int32, error) { if v == nil { return nil, nil } @@ -3679,7 +3679,7 @@ func (ec *executionContext) marshalOInt2ᚖint32(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOInt642ᚖint(ctx context.Context, v interface{}) (*int, error) { +func (ec *executionContext) unmarshalOInt642ᚖint(ctx context.Context, v any) (*int, error) { if v == nil { return nil, nil } @@ -3709,7 +3709,7 @@ func (ec *executionContext) marshalOResult642ᚖgithubᚗcomᚋ99designsᚋgqlge return ec._Result64(ctx, sel, v) } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/codegen/testserver/compliant-int/generated-default/schema.go b/codegen/testserver/compliant-int/generated-default/schema.go index 419ad225ee4..d23ef12fe8d 100644 --- a/codegen/testserver/compliant-int/generated-default/schema.go +++ b/codegen/testserver/compliant-int/generated-default/schema.go @@ -81,7 +81,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -272,9 +272,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -284,7 +284,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -304,9 +304,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query_echoInt64InputToInt64Object_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_echoInt64InputToInt64Object_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_echoInt64InputToInt64Object_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -316,7 +316,7 @@ func (ec *executionContext) field_Query_echoInt64InputToInt64Object_args(ctx con } func (ec *executionContext) field_Query_echoInt64InputToInt64Object_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (Input64, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -336,9 +336,9 @@ func (ec *executionContext) field_Query_echoInt64InputToInt64Object_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Query_echoInt64ToInt64_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_echoInt64ToInt64_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_echoInt64ToInt64_argsN(ctx, rawArgs) if err != nil { return nil, err @@ -348,7 +348,7 @@ func (ec *executionContext) field_Query_echoInt64ToInt64_args(ctx context.Contex } func (ec *executionContext) field_Query_echoInt64ToInt64_argsN( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -368,9 +368,9 @@ func (ec *executionContext) field_Query_echoInt64ToInt64_argsN( return zeroVal, nil } -func (ec *executionContext) field_Query_echoIntInputToIntObject_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_echoIntInputToIntObject_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_echoIntInputToIntObject_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -380,7 +380,7 @@ func (ec *executionContext) field_Query_echoIntInputToIntObject_args(ctx context } func (ec *executionContext) field_Query_echoIntInputToIntObject_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (Input, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -400,9 +400,9 @@ func (ec *executionContext) field_Query_echoIntInputToIntObject_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Query_echoIntToInt_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_echoIntToInt_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_echoIntToInt_argsN(ctx, rawArgs) if err != nil { return nil, err @@ -412,7 +412,7 @@ func (ec *executionContext) field_Query_echoIntToInt_args(ctx context.Context, r } func (ec *executionContext) field_Query_echoIntToInt_argsN( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -432,9 +432,9 @@ func (ec *executionContext) field_Query_echoIntToInt_argsN( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -444,7 +444,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -464,9 +464,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -476,7 +476,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -516,7 +516,7 @@ func (ec *executionContext) _Query_echoIntToInt(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().EchoIntToInt(rctx, fc.Args["n"].(*int)) }) @@ -571,7 +571,7 @@ func (ec *executionContext) _Query_echoInt64ToInt64(ctx context.Context, field g ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().EchoInt64ToInt64(rctx, fc.Args["n"].(*int)) }) @@ -626,7 +626,7 @@ func (ec *executionContext) _Query_echoIntInputToIntObject(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().EchoIntInputToIntObject(rctx, fc.Args["input"].(Input)) }) @@ -682,7 +682,7 @@ func (ec *executionContext) _Query_echoInt64InputToInt64Object(ctx context.Conte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().EchoInt64InputToInt64Object(rctx, fc.Args["input"].(Input64)) }) @@ -738,7 +738,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -812,7 +812,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -867,7 +867,7 @@ func (ec *executionContext) _Result_n(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.N, nil }) @@ -911,7 +911,7 @@ func (ec *executionContext) _Result64_n(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.N, nil }) @@ -955,7 +955,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -999,7 +999,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1040,7 +1040,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -1084,7 +1084,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1138,7 +1138,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -1182,7 +1182,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1226,7 +1226,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1267,7 +1267,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1311,7 +1311,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1352,7 +1352,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1396,7 +1396,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1437,7 +1437,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1491,7 +1491,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1557,7 +1557,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1601,7 +1601,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1642,7 +1642,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1686,7 +1686,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1727,7 +1727,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1793,7 +1793,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -1834,7 +1834,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1875,7 +1875,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -1941,7 +1941,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -2007,7 +2007,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -2070,7 +2070,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -2133,7 +2133,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -2189,7 +2189,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -2233,7 +2233,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2274,7 +2274,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2315,7 +2315,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2381,7 +2381,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -2444,7 +2444,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -2507,7 +2507,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2569,7 +2569,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -2620,7 +2620,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -2683,7 +2683,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -2716,10 +2716,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputInput(ctx context.Context, obj interface{}) (Input, error) { +func (ec *executionContext) unmarshalInputInput(ctx context.Context, obj any) (Input, error) { var it Input - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -2743,10 +2743,10 @@ func (ec *executionContext) unmarshalInputInput(ctx context.Context, obj interfa return it, nil } -func (ec *executionContext) unmarshalInputInput64(ctx context.Context, obj interface{}) (Input64, error) { +func (ec *executionContext) unmarshalInputInput64(ctx context.Context, obj any) (Input64, error) { var it Input64 - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -3314,7 +3314,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3329,17 +3329,17 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋcompliantᚑintᚋgeneratedᚑdefaultᚐInput(ctx context.Context, v interface{}) (Input, error) { +func (ec *executionContext) unmarshalNInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋcompliantᚑintᚋgeneratedᚑdefaultᚐInput(ctx context.Context, v any) (Input, error) { res, err := ec.unmarshalInputInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNInput642githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋcompliantᚑintᚋgeneratedᚑdefaultᚐInput64(ctx context.Context, v interface{}) (Input64, error) { +func (ec *executionContext) unmarshalNInput642githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋcompliantᚑintᚋgeneratedᚑdefaultᚐInput64(ctx context.Context, v any) (Input64, error) { res, err := ec.unmarshalInputInput64(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3354,7 +3354,7 @@ func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.Selecti return res } -func (ec *executionContext) unmarshalNInt642int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalNInt642int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3369,7 +3369,7 @@ func (ec *executionContext) marshalNInt642int(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3432,7 +3432,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3447,8 +3447,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -3622,7 +3622,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3637,7 +3637,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3647,7 +3647,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -3663,7 +3663,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { +func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v any) (*int, error) { if v == nil { return nil, nil } @@ -3679,7 +3679,7 @@ func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.Sele return res } -func (ec *executionContext) unmarshalOInt642ᚖint(ctx context.Context, v interface{}) (*int, error) { +func (ec *executionContext) unmarshalOInt642ᚖint(ctx context.Context, v any) (*int, error) { if v == nil { return nil, nil } @@ -3709,7 +3709,7 @@ func (ec *executionContext) marshalOResult642ᚖgithubᚗcomᚋ99designsᚋgqlge return ec._Result64(ctx, sel, v) } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/codegen/testserver/followschema/builtinscalar.generated.go b/codegen/testserver/followschema/builtinscalar.generated.go index 0c65e6c9a36..07e82aef9eb 100644 --- a/codegen/testserver/followschema/builtinscalar.generated.go +++ b/codegen/testserver/followschema/builtinscalar.generated.go @@ -38,7 +38,7 @@ func (ec *executionContext) _Map_id(ctx context.Context, field graphql.Collected ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) diff --git a/codegen/testserver/followschema/complexity.generated.go b/codegen/testserver/followschema/complexity.generated.go index 20f0617d7ad..77926c906b6 100644 --- a/codegen/testserver/followschema/complexity.generated.go +++ b/codegen/testserver/followschema/complexity.generated.go @@ -42,7 +42,7 @@ func (ec *executionContext) _OverlappingFields_oneFoo(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Foo, nil }) @@ -83,7 +83,7 @@ func (ec *executionContext) _OverlappingFields_twoFoo(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Foo, nil }) @@ -124,7 +124,7 @@ func (ec *executionContext) _OverlappingFields_oldFoo(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.OverlappingFields().OldFoo(rctx, obj) }) @@ -165,7 +165,7 @@ func (ec *executionContext) _OverlappingFields_newFoo(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.NewFoo, nil }) @@ -206,7 +206,7 @@ func (ec *executionContext) _OverlappingFields_new_foo(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.NewFoo, nil }) diff --git a/codegen/testserver/followschema/defaults.generated.go b/codegen/testserver/followschema/defaults.generated.go index 19f8cee1c8b..614fd6a1efe 100644 --- a/codegen/testserver/followschema/defaults.generated.go +++ b/codegen/testserver/followschema/defaults.generated.go @@ -26,9 +26,9 @@ type MutationResolver interface { // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Mutation_defaultInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_defaultInput_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Mutation_defaultInput_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -38,7 +38,7 @@ func (ec *executionContext) field_Mutation_defaultInput_args(ctx context.Context } func (ec *executionContext) field_Mutation_defaultInput_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (DefaultInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -58,9 +58,9 @@ func (ec *executionContext) field_Mutation_defaultInput_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Mutation_overrideValueViaInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_overrideValueViaInput_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Mutation_overrideValueViaInput_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -70,7 +70,7 @@ func (ec *executionContext) field_Mutation_overrideValueViaInput_args(ctx contex } func (ec *executionContext) field_Mutation_overrideValueViaInput_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (FieldsOrderInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -90,9 +90,9 @@ func (ec *executionContext) field_Mutation_overrideValueViaInput_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Mutation_updatePtrToPtr_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_updatePtrToPtr_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Mutation_updatePtrToPtr_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -102,7 +102,7 @@ func (ec *executionContext) field_Mutation_updatePtrToPtr_args(ctx context.Conte } func (ec *executionContext) field_Mutation_updatePtrToPtr_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (UpdatePtrToPtrOuter, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -122,9 +122,9 @@ func (ec *executionContext) field_Mutation_updatePtrToPtr_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Mutation_updateSomething_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_updateSomething_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Mutation_updateSomething_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -134,7 +134,7 @@ func (ec *executionContext) field_Mutation_updateSomething_args(ctx context.Cont } func (ec *executionContext) field_Mutation_updateSomething_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (SpecialInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -174,7 +174,7 @@ func (ec *executionContext) _DefaultParametersMirror_falsyBoolean(ctx context.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.FalsyBoolean, nil }) @@ -212,7 +212,7 @@ func (ec *executionContext) _DefaultParametersMirror_truthyBoolean(ctx context.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.TruthyBoolean, nil }) @@ -250,7 +250,7 @@ func (ec *executionContext) _Mutation_defaultInput(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().DefaultInput(rctx, fc.Args["input"].(DefaultInput)) }) @@ -308,7 +308,7 @@ func (ec *executionContext) _Mutation_overrideValueViaInput(ctx context.Context, ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().OverrideValueViaInput(rctx, fc.Args["input"].(FieldsOrderInput)) }) @@ -364,7 +364,7 @@ func (ec *executionContext) _Mutation_updateSomething(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().UpdateSomething(rctx, fc.Args["input"].(SpecialInput)) }) @@ -416,7 +416,7 @@ func (ec *executionContext) _Mutation_updatePtrToPtr(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().UpdatePtrToPtr(rctx, fc.Args["input"].(UpdatePtrToPtrOuter)) }) @@ -468,10 +468,10 @@ func (ec *executionContext) fieldContext_Mutation_updatePtrToPtr(ctx context.Con // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputDefaultInput(ctx context.Context, obj interface{}) (DefaultInput, error) { +func (ec *executionContext) unmarshalInputDefaultInput(ctx context.Context, obj any) (DefaultInput, error) { var it DefaultInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -629,7 +629,7 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNDefaultInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐDefaultInput(ctx context.Context, v interface{}) (DefaultInput, error) { +func (ec *executionContext) unmarshalNDefaultInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐDefaultInput(ctx context.Context, v any) (DefaultInput, error) { res, err := ec.unmarshalInputDefaultInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } diff --git a/codegen/testserver/followschema/defer.generated.go b/codegen/testserver/followschema/defer.generated.go index cf1e26ac5ae..b7c9bd5159c 100644 --- a/codegen/testserver/followschema/defer.generated.go +++ b/codegen/testserver/followschema/defer.generated.go @@ -43,7 +43,7 @@ func (ec *executionContext) _DeferModel_id(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -84,7 +84,7 @@ func (ec *executionContext) _DeferModel_name(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -125,7 +125,7 @@ func (ec *executionContext) _DeferModel_values(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.DeferModel().Values(rctx, obj) }) diff --git a/codegen/testserver/followschema/directive.generated.go b/codegen/testserver/followschema/directive.generated.go index b694064fad1..2aa702a8868 100644 --- a/codegen/testserver/followschema/directive.generated.go +++ b/codegen/testserver/followschema/directive.generated.go @@ -19,9 +19,9 @@ import ( // region ***************************** args.gotpl ***************************** -func (ec *executionContext) dir_length_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_length_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_length_argsMin(ctx, rawArgs) if err != nil { return nil, err @@ -41,7 +41,7 @@ func (ec *executionContext) dir_length_args(ctx context.Context, rawArgs map[str } func (ec *executionContext) dir_length_argsMin( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -63,7 +63,7 @@ func (ec *executionContext) dir_length_argsMin( func (ec *executionContext) dir_length_argsMax( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -85,7 +85,7 @@ func (ec *executionContext) dir_length_argsMax( func (ec *executionContext) dir_length_argsMessage( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -105,9 +105,9 @@ func (ec *executionContext) dir_length_argsMessage( return zeroVal, nil } -func (ec *executionContext) dir_logged_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_logged_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_logged_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -117,7 +117,7 @@ func (ec *executionContext) dir_logged_args(ctx context.Context, rawArgs map[str } func (ec *executionContext) dir_logged_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -137,9 +137,9 @@ func (ec *executionContext) dir_logged_argsID( return zeroVal, nil } -func (ec *executionContext) dir_order1_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_order1_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_order1_argsLocation(ctx, rawArgs) if err != nil { return nil, err @@ -149,7 +149,7 @@ func (ec *executionContext) dir_order1_args(ctx context.Context, rawArgs map[str } func (ec *executionContext) dir_order1_argsLocation( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -169,9 +169,9 @@ func (ec *executionContext) dir_order1_argsLocation( return zeroVal, nil } -func (ec *executionContext) dir_order2_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_order2_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_order2_argsLocation(ctx, rawArgs) if err != nil { return nil, err @@ -181,7 +181,7 @@ func (ec *executionContext) dir_order2_args(ctx context.Context, rawArgs map[str } func (ec *executionContext) dir_order2_argsLocation( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -201,9 +201,9 @@ func (ec *executionContext) dir_order2_argsLocation( return zeroVal, nil } -func (ec *executionContext) dir_populate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_populate_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_populate_argsValue(ctx, rawArgs) if err != nil { return nil, err @@ -213,7 +213,7 @@ func (ec *executionContext) dir_populate_args(ctx context.Context, rawArgs map[s } func (ec *executionContext) dir_populate_argsValue( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -233,9 +233,9 @@ func (ec *executionContext) dir_populate_argsValue( return zeroVal, nil } -func (ec *executionContext) dir_range_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_range_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_range_argsMin(ctx, rawArgs) if err != nil { return nil, err @@ -250,7 +250,7 @@ func (ec *executionContext) dir_range_args(ctx context.Context, rawArgs map[stri } func (ec *executionContext) dir_range_argsMin( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -272,7 +272,7 @@ func (ec *executionContext) dir_range_argsMin( func (ec *executionContext) dir_range_argsMax( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -296,7 +296,7 @@ func (ec *executionContext) dir_range_argsMax( // region ************************** directives.gotpl ************************** -func (ec *executionContext) _fieldMiddleware(ctx context.Context, obj interface{}, next graphql.Resolver) interface{} { +func (ec *executionContext) _fieldMiddleware(ctx context.Context, obj any, next graphql.Resolver) any { fc := graphql.GetFieldContext(ctx) for _, d := range fc.Field.Directives { switch d.Name { @@ -308,7 +308,7 @@ func (ec *executionContext) _fieldMiddleware(ctx context.Context, obj interface{ return nil } n := next - next = func(ctx context.Context) (interface{}, error) { + next = func(ctx context.Context) (any, error) { if ec.directives.Logged == nil { return nil, errors.New("directive logged is not implemented") } @@ -340,13 +340,13 @@ func (ec *executionContext) _ObjectDirectives_text(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Text, nil } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalNInt2int(ctx, 0) if err != nil { var zeroVal string @@ -418,13 +418,13 @@ func (ec *executionContext) _ObjectDirectives_nullableText(ctx context.Context, ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.NullableText, nil } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.ToNull == nil { var zeroVal *string return zeroVal, errors.New("directive toNull is not implemented") @@ -478,7 +478,7 @@ func (ec *executionContext) _ObjectDirectives_order(ctx context.Context, field g ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Order, nil }) @@ -519,13 +519,13 @@ func (ec *executionContext) _ObjectDirectivesWithCustomGoModel_nullableText(ctx ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.NullableText, nil } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.ToNull == nil { var zeroVal string return zeroVal, errors.New("directive toNull is not implemented") @@ -571,10 +571,10 @@ func (ec *executionContext) fieldContext_ObjectDirectivesWithCustomGoModel_nulla // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputInnerDirectives(ctx context.Context, obj interface{}) (InnerDirectives, error) { +func (ec *executionContext) unmarshalInputInnerDirectives(ctx context.Context, obj any) (InnerDirectives, error) { var it InnerDirectives - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -587,9 +587,9 @@ func (ec *executionContext) unmarshalInputInnerDirectives(ctx context.Context, o switch k { case "message": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("message")) - directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, v) } + directive0 := func(ctx context.Context) (any, error) { return ec.unmarshalNString2string(ctx, v) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalNInt2int(ctx, 1) if err != nil { var zeroVal string @@ -623,10 +623,10 @@ func (ec *executionContext) unmarshalInputInnerDirectives(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, obj interface{}) (InputDirectives, error) { +func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, obj any) (InputDirectives, error) { var it InputDirectives - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -639,16 +639,16 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o switch k { case "text": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) - directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, v) } + directive0 := func(ctx context.Context) (any, error) { return ec.unmarshalNString2string(ctx, v) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Directive3 == nil { var zeroVal string return zeroVal, errors.New("directive directive3 is not implemented") } return ec.directives.Directive3(ctx, obj, directive0) } - directive2 := func(ctx context.Context) (interface{}, error) { + directive2 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalNInt2int(ctx, 0) if err != nil { var zeroVal string @@ -683,16 +683,16 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o } case "nullableText": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nullableText")) - directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(ctx, v) } + directive0 := func(ctx context.Context) (any, error) { return ec.unmarshalOString2ᚖstring(ctx, v) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Directive3 == nil { var zeroVal *string return zeroVal, errors.New("directive directive3 is not implemented") } return ec.directives.Directive3(ctx, obj, directive0) } - directive2 := func(ctx context.Context) (interface{}, error) { + directive2 := func(ctx context.Context) (any, error) { if ec.directives.ToNull == nil { var zeroVal *string return zeroVal, errors.New("directive toNull is not implemented") @@ -714,11 +714,11 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o } case "inner": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inner")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { return ec.unmarshalNInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInnerDirectives(ctx, v) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Directive3 == nil { var zeroVal *InnerDirectives return zeroVal, errors.New("directive directive3 is not implemented") @@ -740,11 +740,11 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o } case "innerNullable": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("innerNullable")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { return ec.unmarshalOInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInnerDirectives(ctx, v) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Directive3 == nil { var zeroVal *InnerDirectives return zeroVal, errors.New("directive directive3 is not implemented") @@ -766,18 +766,18 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o } case "thirdParty": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("thirdParty")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { return ec.unmarshalOThirdParty2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐThirdParty(ctx, v) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Directive3 == nil { var zeroVal *ThirdParty return zeroVal, errors.New("directive directive3 is not implemented") } return ec.directives.Directive3(ctx, obj, directive0) } - directive2 := func(ctx context.Context) (interface{}, error) { + directive2 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalNInt2int(ctx, 0) if err != nil { var zeroVal *ThirdParty @@ -907,17 +907,17 @@ func (ec *executionContext) _ObjectDirectivesWithCustomGoModel(ctx context.Conte // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInnerDirectives(ctx context.Context, v interface{}) (*InnerDirectives, error) { +func (ec *executionContext) unmarshalNInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInnerDirectives(ctx context.Context, v any) (*InnerDirectives, error) { res, err := ec.unmarshalInputInnerDirectives(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNInputDirectives2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInputDirectives(ctx context.Context, v interface{}) (InputDirectives, error) { +func (ec *executionContext) unmarshalNInputDirectives2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInputDirectives(ctx context.Context, v any) (InputDirectives, error) { res, err := ec.unmarshalInputInputDirectives(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInnerDirectives(ctx context.Context, v interface{}) (*InnerDirectives, error) { +func (ec *executionContext) unmarshalOInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInnerDirectives(ctx context.Context, v any) (*InnerDirectives, error) { if v == nil { return nil, nil } @@ -925,7 +925,7 @@ func (ec *executionContext) unmarshalOInnerDirectives2ᚖgithubᚗcomᚋ99design return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOInputDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInputDirectives(ctx context.Context, v interface{}) (*InputDirectives, error) { +func (ec *executionContext) unmarshalOInputDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInputDirectives(ctx context.Context, v any) (*InputDirectives, error) { if v == nil { return nil, nil } diff --git a/codegen/testserver/followschema/embedded.generated.go b/codegen/testserver/followschema/embedded.generated.go index 88847832bd4..0fd96ffe6c5 100644 --- a/codegen/testserver/followschema/embedded.generated.go +++ b/codegen/testserver/followschema/embedded.generated.go @@ -38,7 +38,7 @@ func (ec *executionContext) _EmbeddedCase1_exportedEmbeddedPointerExportedMethod ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ExportedEmbeddedPointerExportedMethod(), nil }) @@ -79,7 +79,7 @@ func (ec *executionContext) _EmbeddedCase2_unexportedEmbeddedPointerExportedMeth ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.UnexportedEmbeddedPointerExportedMethod(), nil }) @@ -120,7 +120,7 @@ func (ec *executionContext) _EmbeddedCase3_unexportedEmbeddedInterfaceExportedMe ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.UnexportedEmbeddedInterfaceExportedMethod(), nil }) diff --git a/codegen/testserver/followschema/enum.generated.go b/codegen/testserver/followschema/enum.generated.go index 37fd16fd3e4..00c45bda7dd 100644 --- a/codegen/testserver/followschema/enum.generated.go +++ b/codegen/testserver/followschema/enum.generated.go @@ -27,10 +27,10 @@ import ( // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputInputWithEnumValue(ctx context.Context, obj interface{}) (InputWithEnumValue, error) { +func (ec *executionContext) unmarshalInputInputWithEnumValue(ctx context.Context, obj any) (InputWithEnumValue, error) { var it InputWithEnumValue - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -66,7 +66,7 @@ func (ec *executionContext) unmarshalInputInputWithEnumValue(ctx context.Context // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNEnumTest2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐEnumTest(ctx context.Context, v interface{}) (EnumTest, error) { +func (ec *executionContext) unmarshalNEnumTest2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐEnumTest(ctx context.Context, v any) (EnumTest, error) { var res EnumTest err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -76,7 +76,7 @@ func (ec *executionContext) marshalNEnumTest2githubᚗcomᚋ99designsᚋgqlgen return v } -func (ec *executionContext) unmarshalOInputWithEnumValue2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInputWithEnumValue(ctx context.Context, v interface{}) (*InputWithEnumValue, error) { +func (ec *executionContext) unmarshalOInputWithEnumValue2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInputWithEnumValue(ctx context.Context, v any) (*InputWithEnumValue, error) { if v == nil { return nil, nil } diff --git a/codegen/testserver/followschema/fields_order.generated.go b/codegen/testserver/followschema/fields_order.generated.go index 9739345ddfe..3bd2f89b214 100644 --- a/codegen/testserver/followschema/fields_order.generated.go +++ b/codegen/testserver/followschema/fields_order.generated.go @@ -42,7 +42,7 @@ func (ec *executionContext) _FieldsOrderPayload_firstFieldValue(ctx context.Cont ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.FirstFieldValue, nil }) @@ -72,10 +72,10 @@ func (ec *executionContext) fieldContext_FieldsOrderPayload_firstFieldValue(_ co // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputFieldsOrderInput(ctx context.Context, obj interface{}) (FieldsOrderInput, error) { +func (ec *executionContext) unmarshalInputFieldsOrderInput(ctx context.Context, obj any) (FieldsOrderInput, error) { var it FieldsOrderInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -156,7 +156,7 @@ func (ec *executionContext) _FieldsOrderPayload(ctx context.Context, sel ast.Sel // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNFieldsOrderInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐFieldsOrderInput(ctx context.Context, v interface{}) (FieldsOrderInput, error) { +func (ec *executionContext) unmarshalNFieldsOrderInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐFieldsOrderInput(ctx context.Context, v any) (FieldsOrderInput, error) { res, err := ec.unmarshalInputFieldsOrderInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } diff --git a/codegen/testserver/followschema/interfaces.generated.go b/codegen/testserver/followschema/interfaces.generated.go index 6c76eb570cf..4bff2555d3c 100644 --- a/codegen/testserver/followschema/interfaces.generated.go +++ b/codegen/testserver/followschema/interfaces.generated.go @@ -44,7 +44,7 @@ func (ec *executionContext) _BackedByInterface_id(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.BackedByInterface().ID(rctx, obj) }) @@ -85,7 +85,7 @@ func (ec *executionContext) _BackedByInterface_thisShouldBind(ctx context.Contex ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ThisShouldBind(), nil }) @@ -126,7 +126,7 @@ func (ec *executionContext) _BackedByInterface_thisShouldBindWithError(ctx conte ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ThisShouldBindWithError() }) @@ -167,7 +167,7 @@ func (ec *executionContext) _Cat_species(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Species, nil }) @@ -208,7 +208,7 @@ func (ec *executionContext) _Cat_size(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Size, nil }) @@ -255,7 +255,7 @@ func (ec *executionContext) _Cat_catBreed(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.CatBreed, nil }) @@ -296,7 +296,7 @@ func (ec *executionContext) _Circle_radius(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Radius, nil }) @@ -334,7 +334,7 @@ func (ec *executionContext) _Circle_area(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Area(), nil }) @@ -372,7 +372,7 @@ func (ec *executionContext) _Circle_coordinates(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Coordinates, nil }) @@ -416,7 +416,7 @@ func (ec *executionContext) _ConcreteNodeA_id(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -457,7 +457,7 @@ func (ec *executionContext) _ConcreteNodeA_child(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Child() }) @@ -498,7 +498,7 @@ func (ec *executionContext) _ConcreteNodeA_name(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -539,7 +539,7 @@ func (ec *executionContext) _ConcreteNodeInterface_id(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID(), nil }) @@ -580,7 +580,7 @@ func (ec *executionContext) _ConcreteNodeInterface_child(ctx context.Context, fi ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Child() }) @@ -621,7 +621,7 @@ func (ec *executionContext) _Coordinates_x(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.X, nil }) @@ -662,7 +662,7 @@ func (ec *executionContext) _Coordinates_y(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Y, nil }) @@ -703,7 +703,7 @@ func (ec *executionContext) _Dog_species(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Species, nil }) @@ -744,7 +744,7 @@ func (ec *executionContext) _Dog_size(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Size, nil }) @@ -791,7 +791,7 @@ func (ec *executionContext) _Dog_dogBreed(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DogBreed, nil }) @@ -832,7 +832,7 @@ func (ec *executionContext) _Horse_species(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Species, nil }) @@ -873,7 +873,7 @@ func (ec *executionContext) _Horse_size(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Size, nil }) @@ -920,7 +920,7 @@ func (ec *executionContext) _Horse_horseBreed(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.HorseBreed, nil }) @@ -961,7 +961,7 @@ func (ec *executionContext) _Rectangle_length(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Length, nil }) @@ -999,7 +999,7 @@ func (ec *executionContext) _Rectangle_width(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Width, nil }) @@ -1037,7 +1037,7 @@ func (ec *executionContext) _Rectangle_area(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Area(), nil }) @@ -1075,7 +1075,7 @@ func (ec *executionContext) _Rectangle_coordinates(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Coordinates, nil }) @@ -1119,7 +1119,7 @@ func (ec *executionContext) _Size_height(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Height, nil }) @@ -1160,7 +1160,7 @@ func (ec *executionContext) _Size_weight(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Weight, nil }) diff --git a/codegen/testserver/followschema/issue896.generated.go b/codegen/testserver/followschema/issue896.generated.go index 919d92f8921..baae04ed8c3 100644 --- a/codegen/testserver/followschema/issue896.generated.go +++ b/codegen/testserver/followschema/issue896.generated.go @@ -39,7 +39,7 @@ func (ec *executionContext) _CheckIssue896_id(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) diff --git a/codegen/testserver/followschema/loops.generated.go b/codegen/testserver/followschema/loops.generated.go index 679c93a48be..e52749733d8 100644 --- a/codegen/testserver/followschema/loops.generated.go +++ b/codegen/testserver/followschema/loops.generated.go @@ -38,7 +38,7 @@ func (ec *executionContext) _LoopA_b(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.B, nil }) @@ -83,7 +83,7 @@ func (ec *executionContext) _LoopB_a(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.A, nil }) diff --git a/codegen/testserver/followschema/maps.generated.go b/codegen/testserver/followschema/maps.generated.go index e5886f63146..fa4622e2540 100644 --- a/codegen/testserver/followschema/maps.generated.go +++ b/codegen/testserver/followschema/maps.generated.go @@ -39,7 +39,7 @@ func (ec *executionContext) _MapNested_value(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Value, nil }) @@ -68,7 +68,7 @@ func (ec *executionContext) fieldContext_MapNested_value(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _MapStringInterfaceType_a(ctx context.Context, field graphql.CollectedField, obj map[string]interface{}) (ret graphql.Marshaler) { +func (ec *executionContext) _MapStringInterfaceType_a(ctx context.Context, field graphql.CollectedField, obj map[string]any) (ret graphql.Marshaler) { fc, err := ec.fieldContext_MapStringInterfaceType_a(ctx, field) if err != nil { return graphql.Null @@ -80,7 +80,7 @@ func (ec *executionContext) _MapStringInterfaceType_a(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children switch v := obj["a"].(type) { case *string: @@ -115,7 +115,7 @@ func (ec *executionContext) fieldContext_MapStringInterfaceType_a(_ context.Cont return fc, nil } -func (ec *executionContext) _MapStringInterfaceType_b(ctx context.Context, field graphql.CollectedField, obj map[string]interface{}) (ret graphql.Marshaler) { +func (ec *executionContext) _MapStringInterfaceType_b(ctx context.Context, field graphql.CollectedField, obj map[string]any) (ret graphql.Marshaler) { fc, err := ec.fieldContext_MapStringInterfaceType_b(ctx, field) if err != nil { return graphql.Null @@ -127,7 +127,7 @@ func (ec *executionContext) _MapStringInterfaceType_b(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children switch v := obj["b"].(type) { case *int: @@ -162,7 +162,7 @@ func (ec *executionContext) fieldContext_MapStringInterfaceType_b(_ context.Cont return fc, nil } -func (ec *executionContext) _MapStringInterfaceType_c(ctx context.Context, field graphql.CollectedField, obj map[string]interface{}) (ret graphql.Marshaler) { +func (ec *executionContext) _MapStringInterfaceType_c(ctx context.Context, field graphql.CollectedField, obj map[string]any) (ret graphql.Marshaler) { fc, err := ec.fieldContext_MapStringInterfaceType_c(ctx, field) if err != nil { return graphql.Null @@ -174,7 +174,7 @@ func (ec *executionContext) _MapStringInterfaceType_c(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children switch v := obj["c"].(type) { case *CustomScalar: @@ -209,7 +209,7 @@ func (ec *executionContext) fieldContext_MapStringInterfaceType_c(_ context.Cont return fc, nil } -func (ec *executionContext) _MapStringInterfaceType_nested(ctx context.Context, field graphql.CollectedField, obj map[string]interface{}) (ret graphql.Marshaler) { +func (ec *executionContext) _MapStringInterfaceType_nested(ctx context.Context, field graphql.CollectedField, obj map[string]any) (ret graphql.Marshaler) { fc, err := ec.fieldContext_MapStringInterfaceType_nested(ctx, field) if err != nil { return graphql.Null @@ -221,7 +221,7 @@ func (ec *executionContext) _MapStringInterfaceType_nested(ctx context.Context, ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children switch v := obj["nested"].(type) { case *MapNested: @@ -264,10 +264,10 @@ func (ec *executionContext) fieldContext_MapStringInterfaceType_nested(_ context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputMapNestedInput(ctx context.Context, obj interface{}) (MapNested, error) { +func (ec *executionContext) unmarshalInputMapNestedInput(ctx context.Context, obj any) (MapNested, error) { var it MapNested - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -291,10 +291,10 @@ func (ec *executionContext) unmarshalInputMapNestedInput(ctx context.Context, ob return it, nil } -func (ec *executionContext) unmarshalInputMapStringInterfaceInput(ctx context.Context, obj interface{}) (map[string]interface{}, error) { - it := make(map[string]interface{}, len(obj.(map[string]interface{}))) - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { +func (ec *executionContext) unmarshalInputMapStringInterfaceInput(ctx context.Context, obj any) (map[string]any, error) { + it := make(map[string]any, len(obj.(map[string]any))) + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -339,10 +339,10 @@ func (ec *executionContext) unmarshalInputMapStringInterfaceInput(ctx context.Co return it, nil } -func (ec *executionContext) unmarshalInputNestedMapInput(ctx context.Context, obj interface{}) (NestedMapInput, error) { +func (ec *executionContext) unmarshalInputNestedMapInput(ctx context.Context, obj any) (NestedMapInput, error) { var it NestedMapInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -415,7 +415,7 @@ func (ec *executionContext) _MapNested(ctx context.Context, sel ast.SelectionSet var mapStringInterfaceTypeImplementors = []string{"MapStringInterfaceType"} -func (ec *executionContext) _MapStringInterfaceType(ctx context.Context, sel ast.SelectionSet, obj map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) _MapStringInterfaceType(ctx context.Context, sel ast.SelectionSet, obj map[string]any) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, mapStringInterfaceTypeImplementors) out := graphql.NewFieldSet(fields) @@ -459,7 +459,7 @@ func (ec *executionContext) _MapStringInterfaceType(ctx context.Context, sel ast // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNCustomScalar2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐCustomScalar(ctx context.Context, v interface{}) (CustomScalar, error) { +func (ec *executionContext) unmarshalNCustomScalar2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐCustomScalar(ctx context.Context, v any) (CustomScalar, error) { var res CustomScalar err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -469,7 +469,7 @@ func (ec *executionContext) marshalNCustomScalar2githubᚗcomᚋ99designsᚋgqlg return v } -func (ec *executionContext) unmarshalOCustomScalar2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐCustomScalar(ctx context.Context, v interface{}) (*CustomScalar, error) { +func (ec *executionContext) unmarshalOCustomScalar2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐCustomScalar(ctx context.Context, v any) (*CustomScalar, error) { if v == nil { return nil, nil } @@ -492,7 +492,7 @@ func (ec *executionContext) marshalOMapNested2ᚖgithubᚗcomᚋ99designsᚋgqlg return ec._MapNested(ctx, sel, v) } -func (ec *executionContext) unmarshalOMapNestedInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐMapNested(ctx context.Context, v interface{}) (*MapNested, error) { +func (ec *executionContext) unmarshalOMapNestedInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐMapNested(ctx context.Context, v any) (*MapNested, error) { if v == nil { return nil, nil } @@ -500,7 +500,7 @@ func (ec *executionContext) unmarshalOMapNestedInput2ᚖgithubᚗcomᚋ99designs return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOMapStringInterfaceInput2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalOMapStringInterfaceInput2map(ctx context.Context, v any) (map[string]any, error) { if v == nil { return nil, nil } @@ -508,14 +508,14 @@ func (ec *executionContext) unmarshalOMapStringInterfaceInput2map(ctx context.Co return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOMapStringInterfaceType2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalOMapStringInterfaceType2map(ctx context.Context, sel ast.SelectionSet, v map[string]any) graphql.Marshaler { if v == nil { return graphql.Null } return ec._MapStringInterfaceType(ctx, sel, v) } -func (ec *executionContext) unmarshalONestedMapInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐNestedMapInput(ctx context.Context, v interface{}) (*NestedMapInput, error) { +func (ec *executionContext) unmarshalONestedMapInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐNestedMapInput(ctx context.Context, v any) (*NestedMapInput, error) { if v == nil { return nil, nil } diff --git a/codegen/testserver/followschema/models-gen.go b/codegen/testserver/followschema/models-gen.go index 5915e039fee..668bf3bdbd8 100644 --- a/codegen/testserver/followschema/models-gen.go +++ b/codegen/testserver/followschema/models-gen.go @@ -175,7 +175,7 @@ type NestedInput struct { } type NestedMapInput struct { - Map map[string]interface{} `json:"map,omitempty"` + Map map[string]any `json:"map,omitempty"` } type ObjectDirectives struct { @@ -315,7 +315,7 @@ func (e EnumTest) String() string { return string(e) } -func (e *EnumTest) UnmarshalGQL(v interface{}) error { +func (e *EnumTest) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -356,7 +356,7 @@ func (e Status) String() string { return string(e) } -func (e *Status) UnmarshalGQL(v interface{}) error { +func (e *Status) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/codegen/testserver/followschema/mutation_with_custom_scalar.generated.go b/codegen/testserver/followschema/mutation_with_custom_scalar.generated.go index 4a165ecd203..fb61a6a5d9f 100644 --- a/codegen/testserver/followschema/mutation_with_custom_scalar.generated.go +++ b/codegen/testserver/followschema/mutation_with_custom_scalar.generated.go @@ -27,10 +27,10 @@ import ( // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputNestedInput(ctx context.Context, obj interface{}) (NestedInput, error) { +func (ec *executionContext) unmarshalInputNestedInput(ctx context.Context, obj any) (NestedInput, error) { var it NestedInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -54,10 +54,10 @@ func (ec *executionContext) unmarshalInputNestedInput(ctx context.Context, obj i return it, nil } -func (ec *executionContext) unmarshalInputSpecialInput(ctx context.Context, obj interface{}) (SpecialInput, error) { +func (ec *executionContext) unmarshalInputSpecialInput(ctx context.Context, obj any) (SpecialInput, error) { var it SpecialInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -93,7 +93,7 @@ func (ec *executionContext) unmarshalInputSpecialInput(ctx context.Context, obj // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNEmail2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐEmail(ctx context.Context, v interface{}) (Email, error) { +func (ec *executionContext) unmarshalNEmail2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐEmail(ctx context.Context, v any) (Email, error) { var res Email err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -103,12 +103,12 @@ func (ec *executionContext) marshalNEmail2githubᚗcomᚋ99designsᚋgqlgenᚋco return v } -func (ec *executionContext) unmarshalNNestedInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐNestedInput(ctx context.Context, v interface{}) (*NestedInput, error) { +func (ec *executionContext) unmarshalNNestedInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐNestedInput(ctx context.Context, v any) (*NestedInput, error) { res, err := ec.unmarshalInputNestedInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNSpecialInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐSpecialInput(ctx context.Context, v interface{}) (SpecialInput, error) { +func (ec *executionContext) unmarshalNSpecialInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐSpecialInput(ctx context.Context, v any) (SpecialInput, error) { res, err := ec.unmarshalInputSpecialInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } diff --git a/codegen/testserver/followschema/nulls.generated.go b/codegen/testserver/followschema/nulls.generated.go index 232584c7d7b..2ddb3db4651 100644 --- a/codegen/testserver/followschema/nulls.generated.go +++ b/codegen/testserver/followschema/nulls.generated.go @@ -48,7 +48,7 @@ func (ec *executionContext) _Error_id(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -89,7 +89,7 @@ func (ec *executionContext) _Error_errorOnNonRequiredField(ctx context.Context, ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ErrorOnNonRequiredField() }) @@ -127,7 +127,7 @@ func (ec *executionContext) _Error_errorOnRequiredField(ctx context.Context, fie ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ErrorOnRequiredField() }) @@ -168,7 +168,7 @@ func (ec *executionContext) _Error_nilOnRequiredField(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.NilOnRequiredField(), nil }) @@ -209,7 +209,7 @@ func (ec *executionContext) _Errors_a(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Errors().A(rctx, obj) }) @@ -260,7 +260,7 @@ func (ec *executionContext) _Errors_b(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Errors().B(rctx, obj) }) @@ -311,7 +311,7 @@ func (ec *executionContext) _Errors_c(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Errors().C(rctx, obj) }) @@ -362,7 +362,7 @@ func (ec *executionContext) _Errors_d(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Errors().D(rctx, obj) }) @@ -413,7 +413,7 @@ func (ec *executionContext) _Errors_e(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Errors().E(rctx, obj) }) diff --git a/codegen/testserver/followschema/panics.generated.go b/codegen/testserver/followschema/panics.generated.go index edaf7071f08..a64525bdd28 100644 --- a/codegen/testserver/followschema/panics.generated.go +++ b/codegen/testserver/followschema/panics.generated.go @@ -24,9 +24,9 @@ type PanicsResolver interface { // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Panics_argUnmarshal_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Panics_argUnmarshal_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Panics_argUnmarshal_argsU(ctx, rawArgs) if err != nil { return nil, err @@ -36,7 +36,7 @@ func (ec *executionContext) field_Panics_argUnmarshal_args(ctx context.Context, } func (ec *executionContext) field_Panics_argUnmarshal_argsU( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]MarshalPanic, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -56,9 +56,9 @@ func (ec *executionContext) field_Panics_argUnmarshal_argsU( return zeroVal, nil } -func (ec *executionContext) field_Panics_fieldFuncMarshal_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Panics_fieldFuncMarshal_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Panics_fieldFuncMarshal_argsU(ctx, rawArgs) if err != nil { return nil, err @@ -68,7 +68,7 @@ func (ec *executionContext) field_Panics_fieldFuncMarshal_args(ctx context.Conte } func (ec *executionContext) field_Panics_fieldFuncMarshal_argsU( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]MarshalPanic, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -108,7 +108,7 @@ func (ec *executionContext) _Panics_fieldScalarMarshal(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Panics().FieldScalarMarshal(rctx, obj) }) @@ -149,7 +149,7 @@ func (ec *executionContext) _Panics_fieldFuncMarshal(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.FieldFuncMarshal(ctx, fc.Args["u"].([]MarshalPanic)), nil }) @@ -201,7 +201,7 @@ func (ec *executionContext) _Panics_argUnmarshal(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Panics().ArgUnmarshal(rctx, obj, fc.Args["u"].([]MarshalPanic)) }) @@ -399,7 +399,7 @@ func (ec *executionContext) _Panics(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNMarshalPanic2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐMarshalPanic(ctx context.Context, v interface{}) (MarshalPanic, error) { +func (ec *executionContext) unmarshalNMarshalPanic2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐMarshalPanic(ctx context.Context, v any) (MarshalPanic, error) { var res MarshalPanic err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -409,8 +409,8 @@ func (ec *executionContext) marshalNMarshalPanic2githubᚗcomᚋ99designsᚋgqlg return v } -func (ec *executionContext) unmarshalNMarshalPanic2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐMarshalPanicᚄ(ctx context.Context, v interface{}) ([]MarshalPanic, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNMarshalPanic2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐMarshalPanicᚄ(ctx context.Context, v any) ([]MarshalPanic, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } diff --git a/codegen/testserver/followschema/prelude.generated.go b/codegen/testserver/followschema/prelude.generated.go index 36cf9b2bbc3..0443f4eb92c 100644 --- a/codegen/testserver/followschema/prelude.generated.go +++ b/codegen/testserver/followschema/prelude.generated.go @@ -21,9 +21,9 @@ import ( // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -33,7 +33,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -53,9 +53,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -65,7 +65,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -105,7 +105,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -146,7 +146,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -184,7 +184,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -225,7 +225,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -276,7 +276,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -317,7 +317,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -358,7 +358,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -396,7 +396,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -437,7 +437,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -475,7 +475,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -516,7 +516,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -554,7 +554,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -605,7 +605,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -668,7 +668,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -709,7 +709,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -747,7 +747,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -788,7 +788,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -826,7 +826,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -889,7 +889,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -927,7 +927,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -965,7 +965,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -1028,7 +1028,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -1091,7 +1091,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -1151,7 +1151,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -1211,7 +1211,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -1264,7 +1264,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -1305,7 +1305,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -1343,7 +1343,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1381,7 +1381,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -1444,7 +1444,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -1504,7 +1504,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -1564,7 +1564,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -1623,7 +1623,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -1671,7 +1671,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -1731,7 +1731,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -2095,7 +2095,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2110,7 +2110,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v interface{}) (float64, error) { +func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v any) (float64, error) { res, err := graphql.UnmarshalFloatContext(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2125,7 +2125,7 @@ func (ec *executionContext) marshalNFloat2float64(ctx context.Context, sel ast.S return graphql.WrapContextMarshaler(ctx, res) } -func (ec *executionContext) unmarshalNID2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalNID2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalIntID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2140,7 +2140,7 @@ func (ec *executionContext) marshalNID2int(ctx context.Context, sel ast.Selectio return res } -func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNID2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2155,7 +2155,7 @@ func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2170,7 +2170,7 @@ func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.Selecti return res } -func (ec *executionContext) unmarshalNInt2int32(ctx context.Context, v interface{}) (int32, error) { +func (ec *executionContext) unmarshalNInt2int32(ctx context.Context, v any) (int32, error) { res, err := graphql.UnmarshalInt32(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2185,7 +2185,7 @@ func (ec *executionContext) marshalNInt2int32(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalNInt2int64(ctx context.Context, v interface{}) (int64, error) { +func (ec *executionContext) unmarshalNInt2int64(ctx context.Context, v any) (int64, error) { res, err := graphql.UnmarshalInt64(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2200,7 +2200,7 @@ func (ec *executionContext) marshalNInt2int64(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2215,8 +2215,8 @@ func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -2247,8 +2247,8 @@ func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalNString2ᚕᚖstring(ctx context.Context, v interface{}) ([]*string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNString2ᚕᚖstring(ctx context.Context, v any) ([]*string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -2273,7 +2273,7 @@ func (ec *executionContext) marshalNString2ᚕᚖstring(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalNString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalNString2ᚖstring(ctx context.Context, v any) (*string, error) { res, err := graphql.UnmarshalString(v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -2342,7 +2342,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2357,8 +2357,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -2532,7 +2532,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2547,7 +2547,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2557,7 +2557,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -2573,7 +2573,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOFloat2float64(ctx context.Context, v interface{}) (float64, error) { +func (ec *executionContext) unmarshalOFloat2float64(ctx context.Context, v any) (float64, error) { res, err := graphql.UnmarshalFloatContext(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2583,7 +2583,7 @@ func (ec *executionContext) marshalOFloat2float64(ctx context.Context, sel ast.S return graphql.WrapContextMarshaler(ctx, res) } -func (ec *executionContext) unmarshalOID2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOID2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } @@ -2599,7 +2599,7 @@ func (ec *executionContext) marshalOID2ᚖstring(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { +func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v any) (*int, error) { if v == nil { return nil, nil } @@ -2615,7 +2615,7 @@ func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.Sele return res } -func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalOString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2625,11 +2625,11 @@ func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { +func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -2663,11 +2663,11 @@ func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalOString2ᚕᚖstring(ctx context.Context, v interface{}) ([]*string, error) { +func (ec *executionContext) unmarshalOString2ᚕᚖstring(ctx context.Context, v any) ([]*string, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -2695,7 +2695,7 @@ func (ec *executionContext) marshalOString2ᚕᚖstring(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } @@ -2711,7 +2711,7 @@ func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel as return res } -func (ec *executionContext) unmarshalOString2ᚖᚕstringᚄ(ctx context.Context, v interface{}) (*[]string, error) { +func (ec *executionContext) unmarshalOString2ᚖᚕstringᚄ(ctx context.Context, v any) (*[]string, error) { if v == nil { return nil, nil } diff --git a/codegen/testserver/followschema/primitive_objects.generated.go b/codegen/testserver/followschema/primitive_objects.generated.go index 962e589535e..5bd75a7ef48 100644 --- a/codegen/testserver/followschema/primitive_objects.generated.go +++ b/codegen/testserver/followschema/primitive_objects.generated.go @@ -48,7 +48,7 @@ func (ec *executionContext) _Primitive_value(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Primitive().Value(rctx, obj) }) @@ -89,7 +89,7 @@ func (ec *executionContext) _Primitive_squared(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Squared(), nil }) @@ -130,7 +130,7 @@ func (ec *executionContext) _PrimitiveString_value(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.PrimitiveString().Value(rctx, obj) }) @@ -171,7 +171,7 @@ func (ec *executionContext) _PrimitiveString_doubled(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Doubled(), nil }) @@ -212,7 +212,7 @@ func (ec *executionContext) _PrimitiveString_len(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.PrimitiveString().Len(rctx, obj) }) diff --git a/codegen/testserver/followschema/ptr_to_any.generated.go b/codegen/testserver/followschema/ptr_to_any.generated.go index 063bb4bd012..e5ea6704d8d 100644 --- a/codegen/testserver/followschema/ptr_to_any.generated.go +++ b/codegen/testserver/followschema/ptr_to_any.generated.go @@ -38,7 +38,7 @@ func (ec *executionContext) _PtrToAnyContainer_ptrToAny(ctx context.Context, fie ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PtrToAny, nil }) @@ -76,7 +76,7 @@ func (ec *executionContext) _PtrToAnyContainer_binding(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Binding(), nil }) @@ -170,7 +170,7 @@ func (ec *executionContext) marshalNPtrToAnyContainer2ᚖgithubᚗcomᚋ99design return ec._PtrToAnyContainer(ctx, sel, v) } -func (ec *executionContext) unmarshalOAny2interface(ctx context.Context, v interface{}) (any, error) { +func (ec *executionContext) unmarshalOAny2interface(ctx context.Context, v any) (any, error) { if v == nil { return nil, nil } @@ -186,7 +186,7 @@ func (ec *executionContext) marshalOAny2interface(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOAny2ᚖinterface(ctx context.Context, v interface{}) (*any, error) { +func (ec *executionContext) unmarshalOAny2ᚖinterface(ctx context.Context, v any) (*any, error) { if v == nil { return nil, nil } diff --git a/codegen/testserver/followschema/ptr_to_ptr_input.generated.go b/codegen/testserver/followschema/ptr_to_ptr_input.generated.go index f0781568aae..a1b045911c7 100644 --- a/codegen/testserver/followschema/ptr_to_ptr_input.generated.go +++ b/codegen/testserver/followschema/ptr_to_ptr_input.generated.go @@ -39,7 +39,7 @@ func (ec *executionContext) _PtrToPtrInner_key(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key, nil }) @@ -80,7 +80,7 @@ func (ec *executionContext) _PtrToPtrInner_value(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Value, nil }) @@ -121,7 +121,7 @@ func (ec *executionContext) _PtrToPtrOuter_name(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -162,7 +162,7 @@ func (ec *executionContext) _PtrToPtrOuter_inner(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Inner, nil }) @@ -206,7 +206,7 @@ func (ec *executionContext) _PtrToPtrOuter_stupidInner(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.StupidInner, nil }) @@ -242,10 +242,10 @@ func (ec *executionContext) fieldContext_PtrToPtrOuter_stupidInner(_ context.Con // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputUpdatePtrToPtrInner(ctx context.Context, obj interface{}) (UpdatePtrToPtrInner, error) { +func (ec *executionContext) unmarshalInputUpdatePtrToPtrInner(ctx context.Context, obj any) (UpdatePtrToPtrInner, error) { var it UpdatePtrToPtrInner - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -276,10 +276,10 @@ func (ec *executionContext) unmarshalInputUpdatePtrToPtrInner(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputUpdatePtrToPtrOuter(ctx context.Context, obj interface{}) (UpdatePtrToPtrOuter, error) { +func (ec *executionContext) unmarshalInputUpdatePtrToPtrOuter(ctx context.Context, obj any) (UpdatePtrToPtrOuter, error) { var it UpdatePtrToPtrOuter - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -430,7 +430,7 @@ func (ec *executionContext) marshalNPtrToPtrOuter2ᚖgithubᚗcomᚋ99designsᚋ return ec._PtrToPtrOuter(ctx, sel, v) } -func (ec *executionContext) unmarshalNUpdatePtrToPtrOuter2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrOuter(ctx context.Context, v interface{}) (UpdatePtrToPtrOuter, error) { +func (ec *executionContext) unmarshalNUpdatePtrToPtrOuter2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrOuter(ctx context.Context, v any) (UpdatePtrToPtrOuter, error) { res, err := ec.unmarshalInputUpdatePtrToPtrOuter(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -484,7 +484,7 @@ func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗ return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐPtrToPtrInner(ctx, sel, *v) } -func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*UpdatePtrToPtrInner, error) { +func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v any) (*UpdatePtrToPtrInner, error) { if v == nil { return nil, nil } @@ -492,7 +492,7 @@ func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖgithubᚗcomᚋ99de return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (**UpdatePtrToPtrInner, error) { +func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v any) (**UpdatePtrToPtrInner, error) { var pres *UpdatePtrToPtrInner if v != nil { res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) @@ -504,7 +504,7 @@ func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ9 return &pres, nil } -func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (***UpdatePtrToPtrInner, error) { +func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v any) (***UpdatePtrToPtrInner, error) { var pres **UpdatePtrToPtrInner if v != nil { res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) @@ -516,7 +516,7 @@ func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖgithubᚗcom return &pres, nil } -func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (****UpdatePtrToPtrInner, error) { +func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v any) (****UpdatePtrToPtrInner, error) { var pres ***UpdatePtrToPtrInner if v != nil { res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) @@ -528,7 +528,7 @@ func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖgithubᚗc return &pres, nil } -func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*****UpdatePtrToPtrInner, error) { +func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v any) (*****UpdatePtrToPtrInner, error) { var pres ****UpdatePtrToPtrInner if v != nil { res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) @@ -540,7 +540,7 @@ func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖgithub return &pres, nil } -func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (******UpdatePtrToPtrInner, error) { +func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v any) (******UpdatePtrToPtrInner, error) { var pres *****UpdatePtrToPtrInner if v != nil { res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) @@ -552,7 +552,7 @@ func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖgith return &pres, nil } -func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*******UpdatePtrToPtrInner, error) { +func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v any) (*******UpdatePtrToPtrInner, error) { var pres ******UpdatePtrToPtrInner if v != nil { res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) @@ -564,7 +564,7 @@ func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖg return &pres, nil } -func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (********UpdatePtrToPtrInner, error) { +func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx context.Context, v any) (********UpdatePtrToPtrInner, error) { var pres *******UpdatePtrToPtrInner if v != nil { res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐUpdatePtrToPtrInner(ctx, v) diff --git a/codegen/testserver/followschema/ptr_to_slice.generated.go b/codegen/testserver/followschema/ptr_to_slice.generated.go index a17f4b938b5..5dbd6725986 100644 --- a/codegen/testserver/followschema/ptr_to_slice.generated.go +++ b/codegen/testserver/followschema/ptr_to_slice.generated.go @@ -38,7 +38,7 @@ func (ec *executionContext) _PtrToSliceContainer_ptrToSlice(ctx context.Context, ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PtrToSlice, nil }) diff --git a/codegen/testserver/followschema/resolver.go b/codegen/testserver/followschema/resolver.go index 2b5f8f6fbbf..3742b62cc7b 100644 --- a/codegen/testserver/followschema/resolver.go +++ b/codegen/testserver/followschema/resolver.go @@ -123,7 +123,7 @@ func (r *queryResolver) Collision(ctx context.Context) (*introspection1.It, erro } // MapInput is the resolver for the mapInput field. -func (r *queryResolver) MapInput(ctx context.Context, input map[string]interface{}) (*bool, error) { +func (r *queryResolver) MapInput(ctx context.Context, input map[string]any) (*bool, error) { panic("not implemented") } @@ -328,12 +328,12 @@ func (r *queryResolver) Issue896a(ctx context.Context) ([]*CheckIssue896, error) } // MapStringInterface is the resolver for the mapStringInterface field. -func (r *queryResolver) MapStringInterface(ctx context.Context, in map[string]interface{}) (map[string]interface{}, error) { +func (r *queryResolver) MapStringInterface(ctx context.Context, in map[string]any) (map[string]any, error) { panic("not implemented") } // MapNestedStringInterface is the resolver for the mapNestedStringInterface field. -func (r *queryResolver) MapNestedStringInterface(ctx context.Context, in *NestedMapInput) (map[string]interface{}, error) { +func (r *queryResolver) MapNestedStringInterface(ctx context.Context, in *NestedMapInput) (map[string]any, error) { panic("not implemented") } diff --git a/codegen/testserver/followschema/root_.generated.go b/codegen/testserver/followschema/root_.generated.go index b863f1a64b7..75c2a1e6cd3 100644 --- a/codegen/testserver/followschema/root_.generated.go +++ b/codegen/testserver/followschema/root_.generated.go @@ -54,22 +54,22 @@ type ResolverRoot interface { } type DirectiveRoot struct { - Custom func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - Defer func(ctx context.Context, obj interface{}, next graphql.Resolver, ifArg *bool, label *string) (res interface{}, err error) - Directive1 func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - Directive2 func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - Directive3 func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - Length func(ctx context.Context, obj interface{}, next graphql.Resolver, min int, max *int, message *string) (res interface{}, err error) - Logged func(ctx context.Context, obj interface{}, next graphql.Resolver, id string) (res interface{}, err error) - MakeNil func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - MakeTypedNil func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - Noop func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - Order1 func(ctx context.Context, obj interface{}, next graphql.Resolver, location string) (res interface{}, err error) - Order2 func(ctx context.Context, obj interface{}, next graphql.Resolver, location string) (res interface{}, err error) - Populate func(ctx context.Context, obj interface{}, next graphql.Resolver, value string) (res interface{}, err error) - Range func(ctx context.Context, obj interface{}, next graphql.Resolver, min *int, max *int) (res interface{}, err error) - ToNull func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - Unimplemented func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) + Custom func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + Defer func(ctx context.Context, obj any, next graphql.Resolver, ifArg *bool, label *string) (res any, err error) + Directive1 func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + Directive2 func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + Directive3 func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + Length func(ctx context.Context, obj any, next graphql.Resolver, min int, max *int, message *string) (res any, err error) + Logged func(ctx context.Context, obj any, next graphql.Resolver, id string) (res any, err error) + MakeNil func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + MakeTypedNil func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + Noop func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + Order1 func(ctx context.Context, obj any, next graphql.Resolver, location string) (res any, err error) + Order2 func(ctx context.Context, obj any, next graphql.Resolver, location string) (res any, err error) + Populate func(ctx context.Context, obj any, next graphql.Resolver, value string) (res any, err error) + Range func(ctx context.Context, obj any, next graphql.Resolver, min *int, max *int) (res any, err error) + ToNull func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + Unimplemented func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) } type ComplexityRoot struct { @@ -358,9 +358,9 @@ type ComplexityRoot struct { Invalid func(childComplexity int) int InvalidIdentifier func(childComplexity int) int Issue896a func(childComplexity int) int - MapInput func(childComplexity int, input map[string]interface{}) int + MapInput func(childComplexity int, input map[string]any) int MapNestedStringInterface func(childComplexity int, in *NestedMapInput) int - MapStringInterface func(childComplexity int, in map[string]interface{}) int + MapStringInterface func(childComplexity int, in map[string]any) int ModelMethods func(childComplexity int) int NestedInputs func(childComplexity int, input [][]*OuterInput) int NestedOutputs func(childComplexity int) int @@ -496,7 +496,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -1575,7 +1575,7 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return 0, false } - return e.complexity.Query.MapInput(childComplexity, args["input"].(map[string]interface{})), true + return e.complexity.Query.MapInput(childComplexity, args["input"].(map[string]any)), true case "Query.mapNestedStringInterface": if e.complexity.Query.MapNestedStringInterface == nil { @@ -1599,7 +1599,7 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return 0, false } - return e.complexity.Query.MapStringInterface(childComplexity, args["in"].(map[string]interface{})), true + return e.complexity.Query.MapStringInterface(childComplexity, args["in"].(map[string]any)), true case "Query.modelMethods": if e.complexity.Query.ModelMethods == nil { diff --git a/codegen/testserver/followschema/scalar_context.generated.go b/codegen/testserver/followschema/scalar_context.generated.go index 1b1879def0d..91129ba62f9 100644 --- a/codegen/testserver/followschema/scalar_context.generated.go +++ b/codegen/testserver/followschema/scalar_context.generated.go @@ -39,7 +39,7 @@ import ( // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNStringFromContextFunction2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNStringFromContextFunction2string(ctx context.Context, v any) (string, error) { res, err := UnmarshalStringFromContextFunction(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -54,7 +54,7 @@ func (ec *executionContext) marshalNStringFromContextFunction2string(ctx context return graphql.WrapContextMarshaler(ctx, res) } -func (ec *executionContext) unmarshalNStringFromContextInterface2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐStringFromContextInterface(ctx context.Context, v interface{}) (StringFromContextInterface, error) { +func (ec *executionContext) unmarshalNStringFromContextInterface2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐStringFromContextInterface(ctx context.Context, v any) (StringFromContextInterface, error) { var res StringFromContextInterface err := res.UnmarshalGQLContext(ctx, v) return res, graphql.ErrorOnPath(ctx, err) @@ -64,7 +64,7 @@ func (ec *executionContext) marshalNStringFromContextInterface2githubᚗcomᚋ99 return graphql.WrapContextMarshaler(ctx, v) } -func (ec *executionContext) unmarshalNStringFromContextInterface2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐStringFromContextInterface(ctx context.Context, v interface{}) (*StringFromContextInterface, error) { +func (ec *executionContext) unmarshalNStringFromContextInterface2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐStringFromContextInterface(ctx context.Context, v any) (*StringFromContextInterface, error) { var res = new(StringFromContextInterface) err := res.UnmarshalGQLContext(ctx, v) return res, graphql.ErrorOnPath(ctx, err) diff --git a/codegen/testserver/followschema/scalar_default.generated.go b/codegen/testserver/followschema/scalar_default.generated.go index e4152949bbc..3bfc46e3bf6 100644 --- a/codegen/testserver/followschema/scalar_default.generated.go +++ b/codegen/testserver/followschema/scalar_default.generated.go @@ -38,7 +38,7 @@ func (ec *executionContext) _EmbeddedDefaultScalar_value(ctx context.Context, fi ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Value, nil }) @@ -116,7 +116,7 @@ func (ec *executionContext) _EmbeddedDefaultScalar(ctx context.Context, sel ast. // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNDefaultScalarImplementation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNDefaultScalarImplementation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -131,7 +131,7 @@ func (ec *executionContext) marshalNDefaultScalarImplementation2string(ctx conte return res } -func (ec *executionContext) unmarshalODefaultScalarImplementation2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalODefaultScalarImplementation2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/codegen/testserver/followschema/schema.generated.go b/codegen/testserver/followschema/schema.generated.go index 89e58f7c398..0185da0a6ed 100644 --- a/codegen/testserver/followschema/schema.generated.go +++ b/codegen/testserver/followschema/schema.generated.go @@ -34,7 +34,7 @@ type PetResolver interface { type QueryResolver interface { InvalidIdentifier(ctx context.Context) (*invalid_packagename.InvalidIdentifier, error) Collision(ctx context.Context) (*introspection1.It, error) - MapInput(ctx context.Context, input map[string]interface{}) (*bool, error) + MapInput(ctx context.Context, input map[string]any) (*bool, error) Recursive(ctx context.Context, input *RecursiveInputSlice) (*bool, error) NestedInputs(ctx context.Context, input [][]*OuterInput) (*bool, error) NestedOutputs(ctx context.Context) ([][]*OuterObject, error) @@ -75,8 +75,8 @@ type QueryResolver interface { NotAnInterface(ctx context.Context) (BackedByInterface, error) Dog(ctx context.Context) (*Dog, error) Issue896a(ctx context.Context) ([]*CheckIssue896, error) - MapStringInterface(ctx context.Context, in map[string]interface{}) (map[string]interface{}, error) - MapNestedStringInterface(ctx context.Context, in *NestedMapInput) (map[string]interface{}, error) + MapStringInterface(ctx context.Context, in map[string]any) (map[string]any, error) + MapNestedStringInterface(ctx context.Context, in *NestedMapInput) (map[string]any, error) ErrorBubble(ctx context.Context) (*Error, error) ErrorBubbleList(ctx context.Context) ([]*Error, error) ErrorList(ctx context.Context) ([]*Error, error) @@ -125,9 +125,9 @@ type UserResolver interface { // region ***************************** args.gotpl ***************************** -func (ec *executionContext) dir_defer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_defer_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_defer_argsIf(ctx, rawArgs) if err != nil { return nil, err @@ -142,7 +142,7 @@ func (ec *executionContext) dir_defer_args(ctx context.Context, rawArgs map[stri } func (ec *executionContext) dir_defer_argsIf( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -164,7 +164,7 @@ func (ec *executionContext) dir_defer_argsIf( func (ec *executionContext) dir_defer_argsLabel( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -184,9 +184,9 @@ func (ec *executionContext) dir_defer_argsLabel( return zeroVal, nil } -func (ec *executionContext) field_Pet_friends_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Pet_friends_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Pet_friends_argsLimit(ctx, rawArgs) if err != nil { return nil, err @@ -196,7 +196,7 @@ func (ec *executionContext) field_Pet_friends_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Pet_friends_argsLimit( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -216,9 +216,9 @@ func (ec *executionContext) field_Pet_friends_argsLimit( return zeroVal, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -228,7 +228,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -248,9 +248,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query_defaultParameters_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_defaultParameters_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_defaultParameters_argsFalsyBoolean(ctx, rawArgs) if err != nil { return nil, err @@ -265,7 +265,7 @@ func (ec *executionContext) field_Query_defaultParameters_args(ctx context.Conte } func (ec *executionContext) field_Query_defaultParameters_argsFalsyBoolean( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -287,7 +287,7 @@ func (ec *executionContext) field_Query_defaultParameters_argsFalsyBoolean( func (ec *executionContext) field_Query_defaultParameters_argsTruthyBoolean( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -307,9 +307,9 @@ func (ec *executionContext) field_Query_defaultParameters_argsTruthyBoolean( return zeroVal, nil } -func (ec *executionContext) field_Query_defaultScalar_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_defaultScalar_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_defaultScalar_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -319,7 +319,7 @@ func (ec *executionContext) field_Query_defaultScalar_args(ctx context.Context, } func (ec *executionContext) field_Query_defaultScalar_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -339,9 +339,9 @@ func (ec *executionContext) field_Query_defaultScalar_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_directiveArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_directiveArg_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_directiveArg_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -351,7 +351,7 @@ func (ec *executionContext) field_Query_directiveArg_args(ctx context.Context, r } func (ec *executionContext) field_Query_directiveArg_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -363,7 +363,7 @@ func (ec *executionContext) field_Query_directiveArg_argsArg( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg"] if !ok { var zeroVal string @@ -372,7 +372,7 @@ func (ec *executionContext) field_Query_directiveArg_argsArg( return ec.unmarshalNString2string(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalNInt2int(ctx, 1) if err != nil { var zeroVal string @@ -408,9 +408,9 @@ func (ec *executionContext) field_Query_directiveArg_argsArg( } } -func (ec *executionContext) field_Query_directiveFieldDef_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_directiveFieldDef_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_directiveFieldDef_argsRet(ctx, rawArgs) if err != nil { return nil, err @@ -420,7 +420,7 @@ func (ec *executionContext) field_Query_directiveFieldDef_args(ctx context.Conte } func (ec *executionContext) field_Query_directiveFieldDef_argsRet( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -440,9 +440,9 @@ func (ec *executionContext) field_Query_directiveFieldDef_argsRet( return zeroVal, nil } -func (ec *executionContext) field_Query_directiveInputNullable_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_directiveInputNullable_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_directiveInputNullable_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -452,7 +452,7 @@ func (ec *executionContext) field_Query_directiveInputNullable_args(ctx context. } func (ec *executionContext) field_Query_directiveInputNullable_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*InputDirectives, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -472,9 +472,9 @@ func (ec *executionContext) field_Query_directiveInputNullable_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_directiveInputType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_directiveInputType_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_directiveInputType_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -484,7 +484,7 @@ func (ec *executionContext) field_Query_directiveInputType_args(ctx context.Cont } func (ec *executionContext) field_Query_directiveInputType_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (InnerInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -496,7 +496,7 @@ func (ec *executionContext) field_Query_directiveInputType_argsArg( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg"] if !ok { var zeroVal InnerInput @@ -505,7 +505,7 @@ func (ec *executionContext) field_Query_directiveInputType_argsArg( return ec.unmarshalNInnerInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInnerInput(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Custom == nil { var zeroVal InnerInput return zeroVal, errors.New("directive custom is not implemented") @@ -526,9 +526,9 @@ func (ec *executionContext) field_Query_directiveInputType_argsArg( } } -func (ec *executionContext) field_Query_directiveInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_directiveInput_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_directiveInput_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -538,7 +538,7 @@ func (ec *executionContext) field_Query_directiveInput_args(ctx context.Context, } func (ec *executionContext) field_Query_directiveInput_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (InputDirectives, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -558,9 +558,9 @@ func (ec *executionContext) field_Query_directiveInput_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_directiveNullableArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_directiveNullableArg_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_directiveNullableArg_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -580,7 +580,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_args(ctx context.Co } func (ec *executionContext) field_Query_directiveNullableArg_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -592,7 +592,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_argsArg( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg"] if !ok { var zeroVal *int @@ -601,7 +601,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_argsArg( return ec.unmarshalOInt2ᚖint(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalOInt2ᚖint(ctx, 0) if err != nil { var zeroVal *int @@ -632,7 +632,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_argsArg( func (ec *executionContext) field_Query_directiveNullableArg_argsArg2( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -644,7 +644,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_argsArg2( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg2")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg2"] if !ok { var zeroVal *int @@ -653,7 +653,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_argsArg2( return ec.unmarshalOInt2ᚖint(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalOInt2ᚖint(ctx, 0) if err != nil { var zeroVal *int @@ -684,7 +684,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_argsArg2( func (ec *executionContext) field_Query_directiveNullableArg_argsArg3( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -696,7 +696,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_argsArg3( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg3")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg3"] if !ok { var zeroVal *string @@ -705,7 +705,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_argsArg3( return ec.unmarshalOString2ᚖstring(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.ToNull == nil { var zeroVal *string return zeroVal, errors.New("directive toNull is not implemented") @@ -729,9 +729,9 @@ func (ec *executionContext) field_Query_directiveNullableArg_argsArg3( } } -func (ec *executionContext) field_Query_directiveSingleNullableArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_directiveSingleNullableArg_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_directiveSingleNullableArg_argsArg1(ctx, rawArgs) if err != nil { return nil, err @@ -741,7 +741,7 @@ func (ec *executionContext) field_Query_directiveSingleNullableArg_args(ctx cont } func (ec *executionContext) field_Query_directiveSingleNullableArg_argsArg1( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -753,7 +753,7 @@ func (ec *executionContext) field_Query_directiveSingleNullableArg_argsArg1( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg1")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg1"] if !ok { var zeroVal *string @@ -762,7 +762,7 @@ func (ec *executionContext) field_Query_directiveSingleNullableArg_argsArg1( return ec.unmarshalOString2ᚖstring(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { value, err := ec.unmarshalNString2string(ctx, "test") if err != nil { var zeroVal *string @@ -774,7 +774,7 @@ func (ec *executionContext) field_Query_directiveSingleNullableArg_argsArg1( } return ec.directives.Populate(ctx, rawArgs, directive0, value) } - directive2 := func(ctx context.Context) (interface{}, error) { + directive2 := func(ctx context.Context) (any, error) { if ec.directives.Noop == nil { var zeroVal *string return zeroVal, errors.New("directive noop is not implemented") @@ -798,9 +798,9 @@ func (ec *executionContext) field_Query_directiveSingleNullableArg_argsArg1( } } -func (ec *executionContext) field_Query_enumInInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_enumInInput_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_enumInInput_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -810,7 +810,7 @@ func (ec *executionContext) field_Query_enumInInput_args(ctx context.Context, ra } func (ec *executionContext) field_Query_enumInInput_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*InputWithEnumValue, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -830,9 +830,9 @@ func (ec *executionContext) field_Query_enumInInput_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Query_fallback_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_fallback_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_fallback_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -842,7 +842,7 @@ func (ec *executionContext) field_Query_fallback_args(ctx context.Context, rawAr } func (ec *executionContext) field_Query_fallback_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (FallbackToStringEncoding, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -862,9 +862,9 @@ func (ec *executionContext) field_Query_fallback_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_inputNullableSlice_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_inputNullableSlice_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_inputNullableSlice_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -874,7 +874,7 @@ func (ec *executionContext) field_Query_inputNullableSlice_args(ctx context.Cont } func (ec *executionContext) field_Query_inputNullableSlice_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -894,9 +894,9 @@ func (ec *executionContext) field_Query_inputNullableSlice_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_inputOmittable_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_inputOmittable_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_inputOmittable_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -906,7 +906,7 @@ func (ec *executionContext) field_Query_inputOmittable_args(ctx context.Context, } func (ec *executionContext) field_Query_inputOmittable_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (OmittableInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -926,9 +926,9 @@ func (ec *executionContext) field_Query_inputOmittable_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_inputSlice_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_inputSlice_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_inputSlice_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -938,7 +938,7 @@ func (ec *executionContext) field_Query_inputSlice_args(ctx context.Context, raw } func (ec *executionContext) field_Query_inputSlice_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -958,9 +958,9 @@ func (ec *executionContext) field_Query_inputSlice_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_mapInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_mapInput_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_mapInput_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -970,14 +970,14 @@ func (ec *executionContext) field_Query_mapInput_args(ctx context.Context, rawAr } func (ec *executionContext) field_Query_mapInput_argsInput( ctx context.Context, - rawArgs map[string]interface{}, -) (map[string]interface{}, error) { + rawArgs map[string]any, +) (map[string]any, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives // even if the argument is null. _, ok := rawArgs["input"] if !ok { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } @@ -986,13 +986,13 @@ func (ec *executionContext) field_Query_mapInput_argsInput( return ec.unmarshalOChanges2map(ctx, tmp) } - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } -func (ec *executionContext) field_Query_mapNestedStringInterface_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_mapNestedStringInterface_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_mapNestedStringInterface_argsIn(ctx, rawArgs) if err != nil { return nil, err @@ -1002,7 +1002,7 @@ func (ec *executionContext) field_Query_mapNestedStringInterface_args(ctx contex } func (ec *executionContext) field_Query_mapNestedStringInterface_argsIn( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*NestedMapInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1022,9 +1022,9 @@ func (ec *executionContext) field_Query_mapNestedStringInterface_argsIn( return zeroVal, nil } -func (ec *executionContext) field_Query_mapStringInterface_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_mapStringInterface_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_mapStringInterface_argsIn(ctx, rawArgs) if err != nil { return nil, err @@ -1034,14 +1034,14 @@ func (ec *executionContext) field_Query_mapStringInterface_args(ctx context.Cont } func (ec *executionContext) field_Query_mapStringInterface_argsIn( ctx context.Context, - rawArgs map[string]interface{}, -) (map[string]interface{}, error) { + rawArgs map[string]any, +) (map[string]any, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives // even if the argument is null. _, ok := rawArgs["in"] if !ok { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } @@ -1050,13 +1050,13 @@ func (ec *executionContext) field_Query_mapStringInterface_argsIn( return ec.unmarshalOMapStringInterfaceInput2map(ctx, tmp) } - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } -func (ec *executionContext) field_Query_nestedInputs_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_nestedInputs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_nestedInputs_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -1066,7 +1066,7 @@ func (ec *executionContext) field_Query_nestedInputs_args(ctx context.Context, r } func (ec *executionContext) field_Query_nestedInputs_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([][]*OuterInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1086,9 +1086,9 @@ func (ec *executionContext) field_Query_nestedInputs_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Query_nullableArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_nullableArg_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_nullableArg_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -1098,7 +1098,7 @@ func (ec *executionContext) field_Query_nullableArg_args(ctx context.Context, ra } func (ec *executionContext) field_Query_nullableArg_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1118,9 +1118,9 @@ func (ec *executionContext) field_Query_nullableArg_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_recursive_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_recursive_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_recursive_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -1130,7 +1130,7 @@ func (ec *executionContext) field_Query_recursive_args(ctx context.Context, rawA } func (ec *executionContext) field_Query_recursive_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*RecursiveInputSlice, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1150,9 +1150,9 @@ func (ec *executionContext) field_Query_recursive_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_user_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -1162,7 +1162,7 @@ func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs m } func (ec *executionContext) field_Query_user_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1182,9 +1182,9 @@ func (ec *executionContext) field_Query_user_argsID( return zeroVal, nil } -func (ec *executionContext) field_Subscription_directiveArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Subscription_directiveArg_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Subscription_directiveArg_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -1194,7 +1194,7 @@ func (ec *executionContext) field_Subscription_directiveArg_args(ctx context.Con } func (ec *executionContext) field_Subscription_directiveArg_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1206,7 +1206,7 @@ func (ec *executionContext) field_Subscription_directiveArg_argsArg( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg"] if !ok { var zeroVal string @@ -1215,7 +1215,7 @@ func (ec *executionContext) field_Subscription_directiveArg_argsArg( return ec.unmarshalNString2string(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalNInt2int(ctx, 1) if err != nil { var zeroVal string @@ -1251,9 +1251,9 @@ func (ec *executionContext) field_Subscription_directiveArg_argsArg( } } -func (ec *executionContext) field_Subscription_directiveNullableArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Subscription_directiveNullableArg_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Subscription_directiveNullableArg_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -1273,7 +1273,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_args(ctx con } func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1285,7 +1285,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg"] if !ok { var zeroVal *int @@ -1294,7 +1294,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg( return ec.unmarshalOInt2ᚖint(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalOInt2ᚖint(ctx, 0) if err != nil { var zeroVal *int @@ -1325,7 +1325,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg( func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg2( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1337,7 +1337,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg2( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg2")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg2"] if !ok { var zeroVal *int @@ -1346,7 +1346,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg2( return ec.unmarshalOInt2ᚖint(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalOInt2ᚖint(ctx, 0) if err != nil { var zeroVal *int @@ -1377,7 +1377,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg2( func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg3( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1389,7 +1389,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg3( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg3")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg3"] if !ok { var zeroVal *string @@ -1398,7 +1398,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg3( return ec.unmarshalOString2ᚖstring(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.ToNull == nil { var zeroVal *string return zeroVal, errors.New("directive toNull is not implemented") @@ -1422,9 +1422,9 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg3( } } -func (ec *executionContext) field_User_pets_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_User_pets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_User_pets_argsLimit(ctx, rawArgs) if err != nil { return nil, err @@ -1434,7 +1434,7 @@ func (ec *executionContext) field_User_pets_args(ctx context.Context, rawArgs ma } func (ec *executionContext) field_User_pets_argsLimit( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1474,7 +1474,7 @@ func (ec *executionContext) _Autobind_int(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Int, nil }) @@ -1515,7 +1515,7 @@ func (ec *executionContext) _Autobind_int32(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Int32, nil }) @@ -1556,7 +1556,7 @@ func (ec *executionContext) _Autobind_int64(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Int64, nil }) @@ -1597,7 +1597,7 @@ func (ec *executionContext) _Autobind_idStr(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IdStr, nil }) @@ -1638,7 +1638,7 @@ func (ec *executionContext) _Autobind_idInt(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IdInt, nil }) @@ -1679,7 +1679,7 @@ func (ec *executionContext) _EmbeddedPointer_ID(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -1717,7 +1717,7 @@ func (ec *executionContext) _EmbeddedPointer_Title(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Title, nil }) @@ -1755,7 +1755,7 @@ func (ec *executionContext) _ForcedResolver_field(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.ForcedResolver().Field(rctx, obj) }) @@ -1801,7 +1801,7 @@ func (ec *executionContext) _InnerObject_id(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -1842,7 +1842,7 @@ func (ec *executionContext) _InvalidIdentifier_id(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -1883,7 +1883,7 @@ func (ec *executionContext) _It_id(ctx context.Context, field graphql.CollectedF ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -1924,7 +1924,7 @@ func (ec *executionContext) _ModelMethods_resolverField(ctx context.Context, fie ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.ModelMethods().ResolverField(rctx, obj) }) @@ -1965,7 +1965,7 @@ func (ec *executionContext) _ModelMethods_noContext(ctx context.Context, field g ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.NoContext(), nil }) @@ -2006,7 +2006,7 @@ func (ec *executionContext) _ModelMethods_withContext(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.WithContext(ctx), nil }) @@ -2047,7 +2047,7 @@ func (ec *executionContext) _OuterObject_inner(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Inner, nil }) @@ -2092,7 +2092,7 @@ func (ec *executionContext) _Pet_id(ctx context.Context, field graphql.Collected ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -2133,7 +2133,7 @@ func (ec *executionContext) _Pet_friends(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Pet().Friends(rctx, obj, fc.Args["limit"].(*int)) }) @@ -2188,7 +2188,7 @@ func (ec *executionContext) _Query_invalidIdentifier(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().InvalidIdentifier(rctx) }) @@ -2230,7 +2230,7 @@ func (ec *executionContext) _Query_collision(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Collision(rctx) }) @@ -2272,9 +2272,9 @@ func (ec *executionContext) _Query_mapInput(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().MapInput(rctx, fc.Args["input"].(map[string]interface{})) + return ec.resolvers.Query().MapInput(rctx, fc.Args["input"].(map[string]any)) }) if resTmp == nil { @@ -2321,7 +2321,7 @@ func (ec *executionContext) _Query_recursive(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Recursive(rctx, fc.Args["input"].(*RecursiveInputSlice)) }) @@ -2370,7 +2370,7 @@ func (ec *executionContext) _Query_nestedInputs(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().NestedInputs(rctx, fc.Args["input"].([][]*OuterInput)) }) @@ -2419,7 +2419,7 @@ func (ec *executionContext) _Query_nestedOutputs(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().NestedOutputs(rctx) }) @@ -2461,7 +2461,7 @@ func (ec *executionContext) _Query_modelMethods(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().ModelMethods(rctx) }) @@ -2507,7 +2507,7 @@ func (ec *executionContext) _Query_user(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().User(rctx, fc.Args["id"].(int)) }) @@ -2571,7 +2571,7 @@ func (ec *executionContext) _Query_nullableArg(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().NullableArg(rctx, fc.Args["arg"].(*int)) }) @@ -2620,7 +2620,7 @@ func (ec *executionContext) _Query_inputSlice(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().InputSlice(rctx, fc.Args["arg"].([]string)) }) @@ -2672,7 +2672,7 @@ func (ec *executionContext) _Query_inputNullableSlice(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().InputNullableSlice(rctx, fc.Args["arg"].([]string)) }) @@ -2724,7 +2724,7 @@ func (ec *executionContext) _Query_inputOmittable(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().InputOmittable(rctx, fc.Args["arg"].(OmittableInput)) }) @@ -2776,7 +2776,7 @@ func (ec *executionContext) _Query_shapeUnion(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().ShapeUnion(rctx) }) @@ -2817,7 +2817,7 @@ func (ec *executionContext) _Query_autobind(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Autobind(rctx) }) @@ -2867,7 +2867,7 @@ func (ec *executionContext) _Query_deprecatedField(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DeprecatedField(rctx) }) @@ -2908,7 +2908,7 @@ func (ec *executionContext) _Query_overlapping(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Overlapping(rctx) }) @@ -2958,7 +2958,7 @@ func (ec *executionContext) _Query_defaultParameters(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DefaultParameters(rctx, fc.Args["falsyBoolean"].(*bool), fc.Args["truthyBoolean"].(*bool)) }) @@ -3016,7 +3016,7 @@ func (ec *executionContext) _Query_deferSingle(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DeferSingle(rctx) }) @@ -3062,7 +3062,7 @@ func (ec *executionContext) _Query_deferMultiple(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DeferMultiple(rctx) }) @@ -3108,7 +3108,7 @@ func (ec *executionContext) _Query_directiveArg(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveArg(rctx, fc.Args["arg"].(string)) }) @@ -3157,7 +3157,7 @@ func (ec *executionContext) _Query_directiveNullableArg(ctx context.Context, fie ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveNullableArg(rctx, fc.Args["arg"].(*int), fc.Args["arg2"].(*int), fc.Args["arg3"].(*string)) }) @@ -3206,7 +3206,7 @@ func (ec *executionContext) _Query_directiveSingleNullableArg(ctx context.Contex ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveSingleNullableArg(rctx, fc.Args["arg1"].(*string)) }) @@ -3255,7 +3255,7 @@ func (ec *executionContext) _Query_directiveInputNullable(ctx context.Context, f ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveInputNullable(rctx, fc.Args["arg"].(*InputDirectives)) }) @@ -3304,7 +3304,7 @@ func (ec *executionContext) _Query_directiveInput(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveInput(rctx, fc.Args["arg"].(InputDirectives)) }) @@ -3353,7 +3353,7 @@ func (ec *executionContext) _Query_directiveInputType(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveInputType(rctx, fc.Args["arg"].(InnerInput)) }) @@ -3402,13 +3402,13 @@ func (ec *executionContext) _Query_directiveObject(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveObject(rctx) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { location, err := ec.unmarshalNString2string(ctx, "order1_1") if err != nil { var zeroVal *ObjectDirectives @@ -3420,7 +3420,7 @@ func (ec *executionContext) _Query_directiveObject(ctx context.Context, field gr } return ec.directives.Order1(ctx, nil, directive0, location) } - directive2 := func(ctx context.Context) (interface{}, error) { + directive2 := func(ctx context.Context) (any, error) { location, err := ec.unmarshalNString2string(ctx, "order1_2") if err != nil { var zeroVal *ObjectDirectives @@ -3432,7 +3432,7 @@ func (ec *executionContext) _Query_directiveObject(ctx context.Context, field gr } return ec.directives.Order1(ctx, nil, directive1, location) } - directive3 := func(ctx context.Context) (interface{}, error) { + directive3 := func(ctx context.Context) (any, error) { location, err := ec.unmarshalNString2string(ctx, "order2_1") if err != nil { var zeroVal *ObjectDirectives @@ -3444,7 +3444,7 @@ func (ec *executionContext) _Query_directiveObject(ctx context.Context, field gr } return ec.directives.Order2(ctx, nil, directive2, location) } - directive4 := func(ctx context.Context) (interface{}, error) { + directive4 := func(ctx context.Context) (any, error) { location, err := ec.unmarshalNString2string(ctx, "Query_field") if err != nil { var zeroVal *ObjectDirectives @@ -3511,7 +3511,7 @@ func (ec *executionContext) _Query_directiveObjectWithCustomGoModel(ctx context. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveObjectWithCustomGoModel(rctx) }) @@ -3553,13 +3553,13 @@ func (ec *executionContext) _Query_directiveFieldDef(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveFieldDef(rctx, fc.Args["ret"].(string)) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalNInt2int(ctx, 1) if err != nil { var zeroVal string @@ -3637,7 +3637,7 @@ func (ec *executionContext) _Query_directiveField(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveField(rctx) }) @@ -3675,20 +3675,20 @@ func (ec *executionContext) _Query_directiveDouble(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveDouble(rctx) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Directive1 == nil { var zeroVal *string return zeroVal, errors.New("directive directive1 is not implemented") } return ec.directives.Directive1(ctx, nil, directive0) } - directive2 := func(ctx context.Context) (interface{}, error) { + directive2 := func(ctx context.Context) (any, error) { if ec.directives.Directive2 == nil { var zeroVal *string return zeroVal, errors.New("directive directive2 is not implemented") @@ -3742,13 +3742,13 @@ func (ec *executionContext) _Query_directiveUnimplemented(ctx context.Context, f ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveUnimplemented(rctx) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Unimplemented == nil { var zeroVal *string return zeroVal, errors.New("directive unimplemented is not implemented") @@ -3802,7 +3802,7 @@ func (ec *executionContext) _Query_embeddedCase1(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().EmbeddedCase1(rctx) }) @@ -3844,7 +3844,7 @@ func (ec *executionContext) _Query_embeddedCase2(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().EmbeddedCase2(rctx) }) @@ -3886,7 +3886,7 @@ func (ec *executionContext) _Query_embeddedCase3(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().EmbeddedCase3(rctx) }) @@ -3928,7 +3928,7 @@ func (ec *executionContext) _Query_enumInInput(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().EnumInInput(rctx, fc.Args["input"].(*InputWithEnumValue)) }) @@ -3980,7 +3980,7 @@ func (ec *executionContext) _Query_shapes(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Shapes(rctx) }) @@ -4018,13 +4018,13 @@ func (ec *executionContext) _Query_noShape(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().NoShape(rctx) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.MakeNil == nil { var zeroVal Shape return zeroVal, errors.New("directive makeNil is not implemented") @@ -4078,7 +4078,7 @@ func (ec *executionContext) _Query_node(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Node(rctx) }) @@ -4119,13 +4119,13 @@ func (ec *executionContext) _Query_noShapeTypedNil(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().NoShapeTypedNil(rctx) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.MakeTypedNil == nil { var zeroVal Shape return zeroVal, errors.New("directive makeTypedNil is not implemented") @@ -4179,13 +4179,13 @@ func (ec *executionContext) _Query_animal(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Animal(rctx) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.MakeTypedNil == nil { var zeroVal Animal return zeroVal, errors.New("directive makeTypedNil is not implemented") @@ -4239,7 +4239,7 @@ func (ec *executionContext) _Query_notAnInterface(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().NotAnInterface(rctx) }) @@ -4285,7 +4285,7 @@ func (ec *executionContext) _Query_dog(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Dog(rctx) }) @@ -4331,7 +4331,7 @@ func (ec *executionContext) _Query_issue896a(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Issue896a(rctx) }) @@ -4373,15 +4373,15 @@ func (ec *executionContext) _Query_mapStringInterface(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().MapStringInterface(rctx, fc.Args["in"].(map[string]interface{})) + return ec.resolvers.Query().MapStringInterface(rctx, fc.Args["in"].(map[string]any)) }) if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(map[string]any) fc.Result = res return ec.marshalOMapStringInterfaceType2map(ctx, field.Selections, res) } @@ -4432,7 +4432,7 @@ func (ec *executionContext) _Query_mapNestedStringInterface(ctx context.Context, ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().MapNestedStringInterface(rctx, fc.Args["in"].(*NestedMapInput)) }) @@ -4440,7 +4440,7 @@ func (ec *executionContext) _Query_mapNestedStringInterface(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(map[string]any) fc.Result = res return ec.marshalOMapStringInterfaceType2map(ctx, field.Selections, res) } @@ -4491,7 +4491,7 @@ func (ec *executionContext) _Query_errorBubble(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().ErrorBubble(rctx) }) @@ -4539,7 +4539,7 @@ func (ec *executionContext) _Query_errorBubbleList(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().ErrorBubbleList(rctx) }) @@ -4587,7 +4587,7 @@ func (ec *executionContext) _Query_errorList(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().ErrorList(rctx) }) @@ -4635,7 +4635,7 @@ func (ec *executionContext) _Query_errors(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Errors(rctx) }) @@ -4685,7 +4685,7 @@ func (ec *executionContext) _Query_valid(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Valid(rctx) }) @@ -4726,7 +4726,7 @@ func (ec *executionContext) _Query_invalid(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Invalid(rctx) }) @@ -4767,7 +4767,7 @@ func (ec *executionContext) _Query_panics(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Panics(rctx) }) @@ -4813,7 +4813,7 @@ func (ec *executionContext) _Query_primitiveObject(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().PrimitiveObject(rctx) }) @@ -4860,7 +4860,7 @@ func (ec *executionContext) _Query_primitiveStringObject(ctx context.Context, fi ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().PrimitiveStringObject(rctx) }) @@ -4909,7 +4909,7 @@ func (ec *executionContext) _Query_ptrToAnyContainer(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().PtrToAnyContainer(rctx) }) @@ -4956,7 +4956,7 @@ func (ec *executionContext) _Query_ptrToSliceContainer(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().PtrToSliceContainer(rctx) }) @@ -5001,7 +5001,7 @@ func (ec *executionContext) _Query_infinity(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Infinity(rctx) }) @@ -5042,7 +5042,7 @@ func (ec *executionContext) _Query_stringFromContextInterface(ctx context.Contex ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().StringFromContextInterface(rctx) }) @@ -5083,7 +5083,7 @@ func (ec *executionContext) _Query_stringFromContextFunction(ctx context.Context ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().StringFromContextFunction(rctx) }) @@ -5124,7 +5124,7 @@ func (ec *executionContext) _Query_defaultScalar(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DefaultScalar(rctx, fc.Args["arg"].(string)) }) @@ -5176,7 +5176,7 @@ func (ec *executionContext) _Query_slices(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Slices(rctx) }) @@ -5224,7 +5224,7 @@ func (ec *executionContext) _Query_scalarSlice(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().ScalarSlice(rctx) }) @@ -5265,7 +5265,7 @@ func (ec *executionContext) _Query_fallback(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Fallback(rctx, fc.Args["arg"].(FallbackToStringEncoding)) }) @@ -5317,7 +5317,7 @@ func (ec *executionContext) _Query_optionalUnion(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().OptionalUnion(rctx) }) @@ -5355,7 +5355,7 @@ func (ec *executionContext) _Query_vOkCaseValue(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().VOkCaseValue(rctx) }) @@ -5397,7 +5397,7 @@ func (ec *executionContext) _Query_vOkCaseNil(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().VOkCaseNil(rctx) }) @@ -5439,7 +5439,7 @@ func (ec *executionContext) _Query_validType(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().ValidType(rctx) }) @@ -5487,7 +5487,7 @@ func (ec *executionContext) _Query_variadicModel(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().VariadicModel(rctx) }) @@ -5529,7 +5529,7 @@ func (ec *executionContext) _Query_wrappedStruct(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().WrappedStruct(rctx) }) @@ -5576,7 +5576,7 @@ func (ec *executionContext) _Query_wrappedScalar(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().WrappedScalar(rctx) }) @@ -5617,7 +5617,7 @@ func (ec *executionContext) _Query_wrappedMap(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().WrappedMap(rctx) }) @@ -5662,7 +5662,7 @@ func (ec *executionContext) _Query_wrappedSlice(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().WrappedSlice(rctx) }) @@ -5707,7 +5707,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -5778,7 +5778,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -5830,7 +5830,7 @@ func (ec *executionContext) _Subscription_updated(ctx context.Context, field gra ret = nil } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().Updated(rctx) }) @@ -5885,7 +5885,7 @@ func (ec *executionContext) _Subscription_initPayload(ctx context.Context, field ret = nil } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().InitPayload(rctx) }) @@ -5940,7 +5940,7 @@ func (ec *executionContext) _Subscription_directiveArg(ctx context.Context, fiel ret = nil } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().DirectiveArg(rctx, fc.Args["arg"].(string)) }) @@ -6003,7 +6003,7 @@ func (ec *executionContext) _Subscription_directiveNullableArg(ctx context.Conte ret = nil } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().DirectiveNullableArg(rctx, fc.Args["arg"].(*int), fc.Args["arg2"].(*int), fc.Args["arg3"].(*string)) }) @@ -6066,20 +6066,20 @@ func (ec *executionContext) _Subscription_directiveDouble(ctx context.Context, f ret = nil } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().DirectiveDouble(rctx) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Directive1 == nil { var zeroVal *string return zeroVal, errors.New("directive directive1 is not implemented") } return ec.directives.Directive1(ctx, nil, directive0) } - directive2 := func(ctx context.Context) (interface{}, error) { + directive2 := func(ctx context.Context) (any, error) { if ec.directives.Directive2 == nil { var zeroVal *string return zeroVal, errors.New("directive directive2 is not implemented") @@ -6147,13 +6147,13 @@ func (ec *executionContext) _Subscription_directiveUnimplemented(ctx context.Con ret = nil } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().DirectiveUnimplemented(rctx) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Unimplemented == nil { var zeroVal *string return zeroVal, errors.New("directive unimplemented is not implemented") @@ -6221,7 +6221,7 @@ func (ec *executionContext) _Subscription_issue896b(ctx context.Context, field g ret = nil } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().Issue896b(rctx) }) @@ -6277,7 +6277,7 @@ func (ec *executionContext) _Subscription_errorRequired(ctx context.Context, fie ret = nil } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().ErrorRequired(rctx) }) @@ -6342,7 +6342,7 @@ func (ec *executionContext) _User_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -6383,7 +6383,7 @@ func (ec *executionContext) _User_friends(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.User().Friends(rctx, obj) }) @@ -6436,7 +6436,7 @@ func (ec *executionContext) _User_created(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Created, nil }) @@ -6477,7 +6477,7 @@ func (ec *executionContext) _User_updated(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Updated, nil }) @@ -6515,7 +6515,7 @@ func (ec *executionContext) _User_pets(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.User().Pets(rctx, obj, fc.Args["limit"].(*int)) }) @@ -6562,10 +6562,10 @@ func (ec *executionContext) fieldContext_User_pets(ctx context.Context, field gr // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputChanges(ctx context.Context, obj interface{}) (map[string]interface{}, error) { - it := make(map[string]interface{}, len(obj.(map[string]interface{}))) - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { +func (ec *executionContext) unmarshalInputChanges(ctx context.Context, obj any) (map[string]any, error) { + it := make(map[string]any, len(obj.(map[string]any))) + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6596,10 +6596,10 @@ func (ec *executionContext) unmarshalInputChanges(ctx context.Context, obj inter return it, nil } -func (ec *executionContext) unmarshalInputInnerInput(ctx context.Context, obj interface{}) (InnerInput, error) { +func (ec *executionContext) unmarshalInputInnerInput(ctx context.Context, obj any) (InnerInput, error) { var it InnerInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6623,10 +6623,10 @@ func (ec *executionContext) unmarshalInputInnerInput(ctx context.Context, obj in return it, nil } -func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, obj interface{}) (OmittableInput, error) { +func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, obj any) (OmittableInput, error) { var it OmittableInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6699,10 +6699,10 @@ func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, ob return it, nil } -func (ec *executionContext) unmarshalInputOuterInput(ctx context.Context, obj interface{}) (OuterInput, error) { +func (ec *executionContext) unmarshalInputOuterInput(ctx context.Context, obj any) (OuterInput, error) { var it OuterInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6726,10 +6726,10 @@ func (ec *executionContext) unmarshalInputOuterInput(ctx context.Context, obj in return it, nil } -func (ec *executionContext) unmarshalInputRecursiveInputSlice(ctx context.Context, obj interface{}) (RecursiveInputSlice, error) { +func (ec *executionContext) unmarshalInputRecursiveInputSlice(ctx context.Context, obj any) (RecursiveInputSlice, error) { var it RecursiveInputSlice - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -8913,12 +8913,12 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNInnerInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInnerInput(ctx context.Context, v interface{}) (InnerInput, error) { +func (ec *executionContext) unmarshalNInnerInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInnerInput(ctx context.Context, v any) (InnerInput, error) { res, err := ec.unmarshalInputInnerInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNInnerInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInnerInput(ctx context.Context, v interface{}) (*InnerInput, error) { +func (ec *executionContext) unmarshalNInnerInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐInnerInput(ctx context.Context, v any) (*InnerInput, error) { res, err := ec.unmarshalInputInnerInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -8933,7 +8933,7 @@ func (ec *executionContext) marshalNInnerObject2ᚖgithubᚗcomᚋ99designsᚋgq return ec._InnerObject(ctx, sel, v) } -func (ec *executionContext) unmarshalNOmittableInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐOmittableInput(ctx context.Context, v interface{}) (OmittableInput, error) { +func (ec *executionContext) unmarshalNOmittableInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐOmittableInput(ctx context.Context, v any) (OmittableInput, error) { res, err := ec.unmarshalInputOmittableInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8948,12 +8948,12 @@ func (ec *executionContext) marshalNPet2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋc return ec._Pet(ctx, sel, v) } -func (ec *executionContext) unmarshalNRecursiveInputSlice2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐRecursiveInputSlice(ctx context.Context, v interface{}) (RecursiveInputSlice, error) { +func (ec *executionContext) unmarshalNRecursiveInputSlice2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐRecursiveInputSlice(ctx context.Context, v any) (RecursiveInputSlice, error) { res, err := ec.unmarshalInputRecursiveInputSlice(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) { +func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v any) (time.Time, error) { res, err := graphql.UnmarshalTime(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8968,7 +8968,7 @@ func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel as return res } -func (ec *executionContext) unmarshalNUUID2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNUUID2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -9048,7 +9048,7 @@ func (ec *executionContext) marshalOAutobind2ᚖgithubᚗcomᚋ99designsᚋgqlge return ec._Autobind(ctx, sel, v) } -func (ec *executionContext) unmarshalOChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalOChanges2map(ctx context.Context, v any) (map[string]any, error) { if v == nil { return nil, nil } @@ -9077,11 +9077,11 @@ func (ec *executionContext) marshalOModelMethods2ᚖgithubᚗcomᚋ99designsᚋg return ec._ModelMethods(ctx, sel, v) } -func (ec *executionContext) unmarshalOOuterInput2ᚕᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐOuterInput(ctx context.Context, v interface{}) ([][]*OuterInput, error) { +func (ec *executionContext) unmarshalOOuterInput2ᚕᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐOuterInput(ctx context.Context, v any) ([][]*OuterInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -9097,11 +9097,11 @@ func (ec *executionContext) unmarshalOOuterInput2ᚕᚕᚖgithubᚗcomᚋ99desig return res, nil } -func (ec *executionContext) unmarshalOOuterInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐOuterInput(ctx context.Context, v interface{}) ([]*OuterInput, error) { +func (ec *executionContext) unmarshalOOuterInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐOuterInput(ctx context.Context, v any) ([]*OuterInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -9117,7 +9117,7 @@ func (ec *executionContext) unmarshalOOuterInput2ᚕᚖgithubᚗcomᚋ99designs return res, nil } -func (ec *executionContext) unmarshalOOuterInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐOuterInput(ctx context.Context, v interface{}) (*OuterInput, error) { +func (ec *executionContext) unmarshalOOuterInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐOuterInput(ctx context.Context, v any) (*OuterInput, error) { if v == nil { return nil, nil } @@ -9261,11 +9261,11 @@ func (ec *executionContext) marshalOPet2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgen return ret } -func (ec *executionContext) unmarshalORecursiveInputSlice2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐRecursiveInputSliceᚄ(ctx context.Context, v interface{}) ([]RecursiveInputSlice, error) { +func (ec *executionContext) unmarshalORecursiveInputSlice2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐRecursiveInputSliceᚄ(ctx context.Context, v any) ([]RecursiveInputSlice, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -9281,7 +9281,7 @@ func (ec *executionContext) unmarshalORecursiveInputSlice2ᚕgithubᚗcomᚋ99de return res, nil } -func (ec *executionContext) unmarshalORecursiveInputSlice2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐRecursiveInputSlice(ctx context.Context, v interface{}) (*RecursiveInputSlice, error) { +func (ec *executionContext) unmarshalORecursiveInputSlice2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐRecursiveInputSlice(ctx context.Context, v any) (*RecursiveInputSlice, error) { if v == nil { return nil, nil } @@ -9289,7 +9289,7 @@ func (ec *executionContext) unmarshalORecursiveInputSlice2ᚖgithubᚗcomᚋ99de return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOStatus2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐStatus(ctx context.Context, v interface{}) (*Status, error) { +func (ec *executionContext) unmarshalOStatus2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐStatus(ctx context.Context, v any) (*Status, error) { if v == nil { return nil, nil } @@ -9305,7 +9305,7 @@ func (ec *executionContext) marshalOStatus2ᚖgithubᚗcomᚋ99designsᚋgqlgen return v } -func (ec *executionContext) unmarshalOThirdParty2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐThirdParty(ctx context.Context, v interface{}) (*ThirdParty, error) { +func (ec *executionContext) unmarshalOThirdParty2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐThirdParty(ctx context.Context, v any) (*ThirdParty, error) { if v == nil { return nil, nil } @@ -9321,7 +9321,7 @@ func (ec *executionContext) marshalOThirdParty2ᚖgithubᚗcomᚋ99designsᚋgql return res } -func (ec *executionContext) unmarshalOTime2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) { +func (ec *executionContext) unmarshalOTime2ᚖtimeᚐTime(ctx context.Context, v any) (*time.Time, error) { if v == nil { return nil, nil } diff --git a/codegen/testserver/followschema/slices.generated.go b/codegen/testserver/followschema/slices.generated.go index 27bf650597b..3937eebf952 100644 --- a/codegen/testserver/followschema/slices.generated.go +++ b/codegen/testserver/followschema/slices.generated.go @@ -38,7 +38,7 @@ func (ec *executionContext) _Slices_test1(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Test1, nil }) @@ -76,7 +76,7 @@ func (ec *executionContext) _Slices_test2(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Test2, nil }) @@ -114,7 +114,7 @@ func (ec *executionContext) _Slices_test3(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Test3, nil }) @@ -155,7 +155,7 @@ func (ec *executionContext) _Slices_test4(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Test4, nil }) @@ -248,7 +248,7 @@ func (ec *executionContext) _Slices(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBytes2ᚕbyte(ctx context.Context, v interface{}) ([]byte, error) { +func (ec *executionContext) unmarshalNBytes2ᚕbyte(ctx context.Context, v any) ([]byte, error) { res, err := UnmarshalBytes(v) return res, graphql.ErrorOnPath(ctx, err) } diff --git a/codegen/testserver/followschema/stub.go b/codegen/testserver/followschema/stub.go index be8799cae36..8f116913101 100644 --- a/codegen/testserver/followschema/stub.go +++ b/codegen/testserver/followschema/stub.go @@ -56,7 +56,7 @@ type Stub struct { QueryResolver struct { InvalidIdentifier func(ctx context.Context) (*invalid_packagename.InvalidIdentifier, error) Collision func(ctx context.Context) (*introspection1.It, error) - MapInput func(ctx context.Context, input map[string]interface{}) (*bool, error) + MapInput func(ctx context.Context, input map[string]any) (*bool, error) Recursive func(ctx context.Context, input *RecursiveInputSlice) (*bool, error) NestedInputs func(ctx context.Context, input [][]*OuterInput) (*bool, error) NestedOutputs func(ctx context.Context) ([][]*OuterObject, error) @@ -97,8 +97,8 @@ type Stub struct { NotAnInterface func(ctx context.Context) (BackedByInterface, error) Dog func(ctx context.Context) (*Dog, error) Issue896a func(ctx context.Context) ([]*CheckIssue896, error) - MapStringInterface func(ctx context.Context, in map[string]interface{}) (map[string]interface{}, error) - MapNestedStringInterface func(ctx context.Context, in *NestedMapInput) (map[string]interface{}, error) + MapStringInterface func(ctx context.Context, in map[string]any) (map[string]any, error) + MapNestedStringInterface func(ctx context.Context, in *NestedMapInput) (map[string]any, error) ErrorBubble func(ctx context.Context) (*Error, error) ErrorBubbleList func(ctx context.Context) ([]*Error, error) ErrorList func(ctx context.Context) ([]*Error, error) @@ -307,7 +307,7 @@ func (r *stubQuery) InvalidIdentifier(ctx context.Context) (*invalid_packagename func (r *stubQuery) Collision(ctx context.Context) (*introspection1.It, error) { return r.QueryResolver.Collision(ctx) } -func (r *stubQuery) MapInput(ctx context.Context, input map[string]interface{}) (*bool, error) { +func (r *stubQuery) MapInput(ctx context.Context, input map[string]any) (*bool, error) { return r.QueryResolver.MapInput(ctx, input) } func (r *stubQuery) Recursive(ctx context.Context, input *RecursiveInputSlice) (*bool, error) { @@ -430,10 +430,10 @@ func (r *stubQuery) Dog(ctx context.Context) (*Dog, error) { func (r *stubQuery) Issue896a(ctx context.Context) ([]*CheckIssue896, error) { return r.QueryResolver.Issue896a(ctx) } -func (r *stubQuery) MapStringInterface(ctx context.Context, in map[string]interface{}) (map[string]interface{}, error) { +func (r *stubQuery) MapStringInterface(ctx context.Context, in map[string]any) (map[string]any, error) { return r.QueryResolver.MapStringInterface(ctx, in) } -func (r *stubQuery) MapNestedStringInterface(ctx context.Context, in *NestedMapInput) (map[string]interface{}, error) { +func (r *stubQuery) MapNestedStringInterface(ctx context.Context, in *NestedMapInput) (map[string]any, error) { return r.QueryResolver.MapNestedStringInterface(ctx, in) } func (r *stubQuery) ErrorBubble(ctx context.Context) (*Error, error) { diff --git a/codegen/testserver/followschema/typefallback.generated.go b/codegen/testserver/followschema/typefallback.generated.go index 6c1ceb1b975..d3d5de96fb4 100644 --- a/codegen/testserver/followschema/typefallback.generated.go +++ b/codegen/testserver/followschema/typefallback.generated.go @@ -39,7 +39,7 @@ import ( // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNFallbackToStringEncoding2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐFallbackToStringEncoding(ctx context.Context, v interface{}) (FallbackToStringEncoding, error) { +func (ec *executionContext) unmarshalNFallbackToStringEncoding2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐFallbackToStringEncoding(ctx context.Context, v any) (FallbackToStringEncoding, error) { tmp, err := graphql.UnmarshalString(v) res := FallbackToStringEncoding(tmp) return res, graphql.ErrorOnPath(ctx, err) diff --git a/codegen/testserver/followschema/useptr.generated.go b/codegen/testserver/followschema/useptr.generated.go index 7a5f999d675..9eddaa94c41 100644 --- a/codegen/testserver/followschema/useptr.generated.go +++ b/codegen/testserver/followschema/useptr.generated.go @@ -39,7 +39,7 @@ func (ec *executionContext) _A_id(ctx context.Context, field graphql.CollectedFi ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -80,7 +80,7 @@ func (ec *executionContext) _B_id(ctx context.Context, field graphql.CollectedFi ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) diff --git a/codegen/testserver/followschema/v-ok.generated.go b/codegen/testserver/followschema/v-ok.generated.go index e59f14654e4..af07059b391 100644 --- a/codegen/testserver/followschema/v-ok.generated.go +++ b/codegen/testserver/followschema/v-ok.generated.go @@ -38,7 +38,7 @@ func (ec *executionContext) _VOkCaseNil_value(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children v, ok := obj.Value() if !ok { @@ -80,7 +80,7 @@ func (ec *executionContext) _VOkCaseValue_value(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children v, ok := obj.Value() if !ok { diff --git a/codegen/testserver/followschema/validtypes.generated.go b/codegen/testserver/followschema/validtypes.generated.go index 12759ac5eb2..a3558eb979d 100644 --- a/codegen/testserver/followschema/validtypes.generated.go +++ b/codegen/testserver/followschema/validtypes.generated.go @@ -19,9 +19,9 @@ import ( // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_ValidType_validArgs_argsBreak(ctx, rawArgs) if err != nil { return nil, err @@ -156,7 +156,7 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, } func (ec *executionContext) field_ValidType_validArgs_argsBreak( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -178,7 +178,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsBreak( func (ec *executionContext) field_ValidType_validArgs_argsDefault( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -200,7 +200,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsDefault( func (ec *executionContext) field_ValidType_validArgs_argsFunc( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -222,7 +222,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsFunc( func (ec *executionContext) field_ValidType_validArgs_argsInterface( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -244,7 +244,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsInterface( func (ec *executionContext) field_ValidType_validArgs_argsSelect( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -266,7 +266,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsSelect( func (ec *executionContext) field_ValidType_validArgs_argsCase( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -288,7 +288,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsCase( func (ec *executionContext) field_ValidType_validArgs_argsDefer( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -310,7 +310,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsDefer( func (ec *executionContext) field_ValidType_validArgs_argsGo( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -332,7 +332,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsGo( func (ec *executionContext) field_ValidType_validArgs_argsMap( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -354,7 +354,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsMap( func (ec *executionContext) field_ValidType_validArgs_argsStruct( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -376,7 +376,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsStruct( func (ec *executionContext) field_ValidType_validArgs_argsChan( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -398,7 +398,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsChan( func (ec *executionContext) field_ValidType_validArgs_argsElse( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -420,7 +420,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsElse( func (ec *executionContext) field_ValidType_validArgs_argsGoto( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -442,7 +442,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsGoto( func (ec *executionContext) field_ValidType_validArgs_argsPackage( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -464,7 +464,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsPackage( func (ec *executionContext) field_ValidType_validArgs_argsSwitch( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -486,7 +486,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsSwitch( func (ec *executionContext) field_ValidType_validArgs_argsConst( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -508,7 +508,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsConst( func (ec *executionContext) field_ValidType_validArgs_argsFallthrough( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -530,7 +530,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsFallthrough( func (ec *executionContext) field_ValidType_validArgs_argsIf( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -552,7 +552,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsIf( func (ec *executionContext) field_ValidType_validArgs_argsRange( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -574,7 +574,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsRange( func (ec *executionContext) field_ValidType_validArgs_argsType( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -596,7 +596,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsType( func (ec *executionContext) field_ValidType_validArgs_argsContinue( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -618,7 +618,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsContinue( func (ec *executionContext) field_ValidType_validArgs_argsFor( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -640,7 +640,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsFor( func (ec *executionContext) field_ValidType_validArgs_argsImport( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -662,7 +662,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsImport( func (ec *executionContext) field_ValidType_validArgs_argsReturn( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -684,7 +684,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsReturn( func (ec *executionContext) field_ValidType_validArgs_argsVar( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -706,7 +706,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsVar( func (ec *executionContext) field_ValidType_validArgs_args_( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -726,9 +726,9 @@ func (ec *executionContext) field_ValidType_validArgs_args_( return zeroVal, nil } -func (ec *executionContext) field_ValidType_validInputKeywords_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_ValidType_validInputKeywords_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_ValidType_validInputKeywords_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -738,7 +738,7 @@ func (ec *executionContext) field_ValidType_validInputKeywords_args(ctx context. } func (ec *executionContext) field_ValidType_validInputKeywords_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ValidInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -778,7 +778,7 @@ func (ec *executionContext) _Content_Post_foo(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Foo, nil }) @@ -816,7 +816,7 @@ func (ec *executionContext) _Content_User_foo(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Foo, nil }) @@ -854,7 +854,7 @@ func (ec *executionContext) _ValidType_differentCase(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DifferentCase, nil }) @@ -895,7 +895,7 @@ func (ec *executionContext) _ValidType_different_case(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DifferentCaseOld, nil }) @@ -936,7 +936,7 @@ func (ec *executionContext) _ValidType_validInputKeywords(ctx context.Context, f ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ValidInputKeywords, nil }) @@ -988,7 +988,7 @@ func (ec *executionContext) _ValidType_validArgs(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ValidArgs, nil }) @@ -1032,10 +1032,10 @@ func (ec *executionContext) fieldContext_ValidType_validArgs(ctx context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj interface{}) (ValidInput, error) { +func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj any) (ValidInput, error) { var it ValidInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -1395,7 +1395,7 @@ func (ec *executionContext) _ValidType(ctx context.Context, sel ast.SelectionSet // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalOValidInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐValidInput(ctx context.Context, v interface{}) (*ValidInput, error) { +func (ec *executionContext) unmarshalOValidInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐValidInput(ctx context.Context, v any) (*ValidInput, error) { if v == nil { return nil, nil } diff --git a/codegen/testserver/followschema/variadic.generated.go b/codegen/testserver/followschema/variadic.generated.go index 357b04912ac..f38fee64914 100644 --- a/codegen/testserver/followschema/variadic.generated.go +++ b/codegen/testserver/followschema/variadic.generated.go @@ -18,9 +18,9 @@ import ( // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_VariadicModel_value_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_VariadicModel_value_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_VariadicModel_value_argsRank(ctx, rawArgs) if err != nil { return nil, err @@ -30,7 +30,7 @@ func (ec *executionContext) field_VariadicModel_value_args(ctx context.Context, } func (ec *executionContext) field_VariadicModel_value_argsRank( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -70,7 +70,7 @@ func (ec *executionContext) _VariadicModel_value(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Value(ctx, fc.Args["rank"].(int)) }) diff --git a/codegen/testserver/followschema/weird_type_cases.generated.go b/codegen/testserver/followschema/weird_type_cases.generated.go index 1b4fd2beba3..c73bd369b5f 100644 --- a/codegen/testserver/followschema/weird_type_cases.generated.go +++ b/codegen/testserver/followschema/weird_type_cases.generated.go @@ -38,7 +38,7 @@ func (ec *executionContext) _AIt_id(ctx context.Context, field graphql.Collected ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -79,7 +79,7 @@ func (ec *executionContext) _AbIt_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -120,7 +120,7 @@ func (ec *executionContext) _XXIt_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -161,7 +161,7 @@ func (ec *executionContext) _XxIt_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -202,7 +202,7 @@ func (ec *executionContext) _asdfIt_id(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -243,7 +243,7 @@ func (ec *executionContext) _iIt_id(ctx context.Context, field graphql.Collected ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) diff --git a/codegen/testserver/followschema/wrapped_type.generated.go b/codegen/testserver/followschema/wrapped_type.generated.go index c06592ceaa5..37315b674e7 100644 --- a/codegen/testserver/followschema/wrapped_type.generated.go +++ b/codegen/testserver/followschema/wrapped_type.generated.go @@ -26,9 +26,9 @@ type WrappedSliceResolver interface { // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_WrappedMap_get_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_WrappedMap_get_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_WrappedMap_get_argsKey(ctx, rawArgs) if err != nil { return nil, err @@ -38,7 +38,7 @@ func (ec *executionContext) field_WrappedMap_get_args(ctx context.Context, rawAr } func (ec *executionContext) field_WrappedMap_get_argsKey( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -58,9 +58,9 @@ func (ec *executionContext) field_WrappedMap_get_argsKey( return zeroVal, nil } -func (ec *executionContext) field_WrappedSlice_get_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_WrappedSlice_get_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_WrappedSlice_get_argsIdx(ctx, rawArgs) if err != nil { return nil, err @@ -70,7 +70,7 @@ func (ec *executionContext) field_WrappedSlice_get_args(ctx context.Context, raw } func (ec *executionContext) field_WrappedSlice_get_argsIdx( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -110,7 +110,7 @@ func (ec *executionContext) _WrappedMap_get(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.WrappedMap().Get(rctx, obj, fc.Args["key"].(string)) }) @@ -162,7 +162,7 @@ func (ec *executionContext) _WrappedSlice_get(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.WrappedSlice().Get(rctx, obj, fc.Args["idx"].(int)) }) @@ -214,7 +214,7 @@ func (ec *executionContext) _WrappedStruct_name(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -255,7 +255,7 @@ func (ec *executionContext) _WrappedStruct_desc(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Desc, nil }) @@ -488,7 +488,7 @@ func (ec *executionContext) marshalNWrappedMap2githubᚗcomᚋ99designsᚋgqlgen return ec._WrappedMap(ctx, sel, v) } -func (ec *executionContext) unmarshalNWrappedScalar2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚋotherpkgᚐScalar(ctx context.Context, v interface{}) (otherpkg.Scalar, error) { +func (ec *executionContext) unmarshalNWrappedScalar2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚋotherpkgᚐScalar(ctx context.Context, v any) (otherpkg.Scalar, error) { tmp, err := graphql.UnmarshalString(v) res := otherpkg.Scalar(tmp) return res, graphql.ErrorOnPath(ctx, err) @@ -528,7 +528,7 @@ func (ec *executionContext) marshalNWrappedStruct2ᚖgithubᚗcomᚋ99designsᚋ return ec._WrappedStruct(ctx, sel, v) } -func (ec *executionContext) unmarshalOWrappedScalar2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚋotherpkgᚐScalar(ctx context.Context, v interface{}) (*otherpkg.Scalar, error) { +func (ec *executionContext) unmarshalOWrappedScalar2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚋotherpkgᚐScalar(ctx context.Context, v any) (*otherpkg.Scalar, error) { if v == nil { return nil, nil } diff --git a/codegen/testserver/nullabledirectives/generated/directive.generated.go b/codegen/testserver/nullabledirectives/generated/directive.generated.go index 63dcc26efa9..0c1d2bd2ef6 100644 --- a/codegen/testserver/nullabledirectives/generated/directive.generated.go +++ b/codegen/testserver/nullabledirectives/generated/directive.generated.go @@ -24,9 +24,9 @@ type QueryResolver interface { // region ***************************** args.gotpl ***************************** -func (ec *executionContext) dir_populate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_populate_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_populate_argsValue(ctx, rawArgs) if err != nil { return nil, err @@ -36,7 +36,7 @@ func (ec *executionContext) dir_populate_args(ctx context.Context, rawArgs map[s } func (ec *executionContext) dir_populate_argsValue( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -56,9 +56,9 @@ func (ec *executionContext) dir_populate_argsValue( return zeroVal, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -68,7 +68,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) if tmp, ok := rawArgs["name"]; ok { @@ -79,9 +79,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query_directiveSingleNullableArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_directiveSingleNullableArg_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_directiveSingleNullableArg_argsArg1(ctx, rawArgs) if err != nil { return nil, err @@ -91,10 +91,10 @@ func (ec *executionContext) field_Query_directiveSingleNullableArg_args(ctx cont } func (ec *executionContext) field_Query_directiveSingleNullableArg_argsArg1( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg1")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg1"] if !ok { var zeroVal *string @@ -103,7 +103,7 @@ func (ec *executionContext) field_Query_directiveSingleNullableArg_argsArg1( return ec.unmarshalOString2ᚖstring(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { value, err := ec.unmarshalNString2string(ctx, "test") if err != nil { var zeroVal *string @@ -115,7 +115,7 @@ func (ec *executionContext) field_Query_directiveSingleNullableArg_argsArg1( } return ec.directives.Populate(ctx, rawArgs, directive0, value) } - directive2 := func(ctx context.Context) (interface{}, error) { + directive2 := func(ctx context.Context) (any, error) { if ec.directives.Noop == nil { var zeroVal *string return zeroVal, errors.New("directive noop is not implemented") @@ -159,7 +159,7 @@ func (ec *executionContext) _Query_directiveSingleNullableArg(ctx context.Contex ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveSingleNullableArg(rctx, fc.Args["arg1"].(*string)) }) @@ -211,7 +211,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -285,7 +285,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) diff --git a/codegen/testserver/nullabledirectives/generated/prelude.generated.go b/codegen/testserver/nullabledirectives/generated/prelude.generated.go index bf9faab9ab1..75633d389ff 100644 --- a/codegen/testserver/nullabledirectives/generated/prelude.generated.go +++ b/codegen/testserver/nullabledirectives/generated/prelude.generated.go @@ -21,9 +21,9 @@ import ( // region ***************************** args.gotpl ***************************** -func (ec *executionContext) dir_defer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_defer_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_defer_argsIf(ctx, rawArgs) if err != nil { return nil, err @@ -38,7 +38,7 @@ func (ec *executionContext) dir_defer_args(ctx context.Context, rawArgs map[stri } func (ec *executionContext) dir_defer_argsIf( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -60,7 +60,7 @@ func (ec *executionContext) dir_defer_argsIf( func (ec *executionContext) dir_defer_argsLabel( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -80,9 +80,9 @@ func (ec *executionContext) dir_defer_argsLabel( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -92,7 +92,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) if tmp, ok := rawArgs["includeDeprecated"]; ok { @@ -103,9 +103,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -115,7 +115,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) if tmp, ok := rawArgs["includeDeprecated"]; ok { @@ -146,7 +146,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -190,7 +190,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -231,7 +231,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -275,7 +275,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -329,7 +329,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -373,7 +373,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -417,7 +417,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -458,7 +458,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -502,7 +502,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -543,7 +543,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -587,7 +587,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -628,7 +628,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -682,7 +682,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -748,7 +748,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -792,7 +792,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -833,7 +833,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -877,7 +877,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -918,7 +918,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -984,7 +984,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -1025,7 +1025,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1066,7 +1066,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -1132,7 +1132,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -1198,7 +1198,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -1261,7 +1261,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -1324,7 +1324,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -1380,7 +1380,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -1424,7 +1424,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -1465,7 +1465,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1506,7 +1506,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -1572,7 +1572,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -1635,7 +1635,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -1698,7 +1698,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -1760,7 +1760,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -1811,7 +1811,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -1874,7 +1874,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -2241,7 +2241,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2256,7 +2256,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2319,7 +2319,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2334,8 +2334,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -2509,7 +2509,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2524,7 +2524,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2534,7 +2534,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -2550,7 +2550,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/codegen/testserver/nullabledirectives/generated/root_.generated.go b/codegen/testserver/nullabledirectives/generated/root_.generated.go index 8525f5578a1..9e4558850ce 100644 --- a/codegen/testserver/nullabledirectives/generated/root_.generated.go +++ b/codegen/testserver/nullabledirectives/generated/root_.generated.go @@ -36,8 +36,8 @@ type ResolverRoot interface { } type DirectiveRoot struct { - Noop func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - Populate func(ctx context.Context, obj interface{}, next graphql.Resolver, value string) (res interface{}, err error) + Noop func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + Populate func(ctx context.Context, obj any, next graphql.Resolver, value string) (res any, err error) } type ComplexityRoot struct { @@ -60,7 +60,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { diff --git a/codegen/testserver/singlefile/generated.go b/codegen/testserver/singlefile/generated.go index bbc45dbf30b..9a7e60deb95 100644 --- a/codegen/testserver/singlefile/generated.go +++ b/codegen/testserver/singlefile/generated.go @@ -63,22 +63,22 @@ type ResolverRoot interface { } type DirectiveRoot struct { - Custom func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - Defer func(ctx context.Context, obj interface{}, next graphql.Resolver, ifArg *bool, label *string) (res interface{}, err error) - Directive1 func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - Directive2 func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - Directive3 func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - Length func(ctx context.Context, obj interface{}, next graphql.Resolver, min int, max *int, message *string) (res interface{}, err error) - Logged func(ctx context.Context, obj interface{}, next graphql.Resolver, id string) (res interface{}, err error) - MakeNil func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - MakeTypedNil func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - Noop func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - Order1 func(ctx context.Context, obj interface{}, next graphql.Resolver, location string) (res interface{}, err error) - Order2 func(ctx context.Context, obj interface{}, next graphql.Resolver, location string) (res interface{}, err error) - Populate func(ctx context.Context, obj interface{}, next graphql.Resolver, value string) (res interface{}, err error) - Range func(ctx context.Context, obj interface{}, next graphql.Resolver, min *int, max *int) (res interface{}, err error) - ToNull func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) - Unimplemented func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) + Custom func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + Defer func(ctx context.Context, obj any, next graphql.Resolver, ifArg *bool, label *string) (res any, err error) + Directive1 func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + Directive2 func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + Directive3 func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + Length func(ctx context.Context, obj any, next graphql.Resolver, min int, max *int, message *string) (res any, err error) + Logged func(ctx context.Context, obj any, next graphql.Resolver, id string) (res any, err error) + MakeNil func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + MakeTypedNil func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + Noop func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + Order1 func(ctx context.Context, obj any, next graphql.Resolver, location string) (res any, err error) + Order2 func(ctx context.Context, obj any, next graphql.Resolver, location string) (res any, err error) + Populate func(ctx context.Context, obj any, next graphql.Resolver, value string) (res any, err error) + Range func(ctx context.Context, obj any, next graphql.Resolver, min *int, max *int) (res any, err error) + ToNull func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + Unimplemented func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) } type ComplexityRoot struct { @@ -367,9 +367,9 @@ type ComplexityRoot struct { Invalid func(childComplexity int) int InvalidIdentifier func(childComplexity int) int Issue896a func(childComplexity int) int - MapInput func(childComplexity int, input map[string]interface{}) int + MapInput func(childComplexity int, input map[string]any) int MapNestedStringInterface func(childComplexity int, in *NestedMapInput) int - MapStringInterface func(childComplexity int, in map[string]interface{}) int + MapStringInterface func(childComplexity int, in map[string]any) int ModelMethods func(childComplexity int) int NestedInputs func(childComplexity int, input [][]*OuterInput) int NestedOutputs func(childComplexity int) int @@ -538,7 +538,7 @@ type PrimitiveStringResolver interface { type QueryResolver interface { InvalidIdentifier(ctx context.Context) (*invalid_packagename.InvalidIdentifier, error) Collision(ctx context.Context) (*introspection1.It, error) - MapInput(ctx context.Context, input map[string]interface{}) (*bool, error) + MapInput(ctx context.Context, input map[string]any) (*bool, error) Recursive(ctx context.Context, input *RecursiveInputSlice) (*bool, error) NestedInputs(ctx context.Context, input [][]*OuterInput) (*bool, error) NestedOutputs(ctx context.Context) ([][]*OuterObject, error) @@ -579,8 +579,8 @@ type QueryResolver interface { NotAnInterface(ctx context.Context) (BackedByInterface, error) Dog(ctx context.Context) (*Dog, error) Issue896a(ctx context.Context) ([]*CheckIssue896, error) - MapStringInterface(ctx context.Context, in map[string]interface{}) (map[string]interface{}, error) - MapNestedStringInterface(ctx context.Context, in *NestedMapInput) (map[string]interface{}, error) + MapStringInterface(ctx context.Context, in map[string]any) (map[string]any, error) + MapNestedStringInterface(ctx context.Context, in *NestedMapInput) (map[string]any, error) ErrorBubble(ctx context.Context) (*Error, error) ErrorBubbleList(ctx context.Context) ([]*Error, error) ErrorList(ctx context.Context) ([]*Error, error) @@ -649,7 +649,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -1728,7 +1728,7 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return 0, false } - return e.complexity.Query.MapInput(childComplexity, args["input"].(map[string]interface{})), true + return e.complexity.Query.MapInput(childComplexity, args["input"].(map[string]any)), true case "Query.mapNestedStringInterface": if e.complexity.Query.MapNestedStringInterface == nil { @@ -1752,7 +1752,7 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return 0, false } - return e.complexity.Query.MapStringInterface(childComplexity, args["in"].(map[string]interface{})), true + return e.complexity.Query.MapStringInterface(childComplexity, args["in"].(map[string]any)), true case "Query.modelMethods": if e.complexity.Query.ModelMethods == nil { @@ -2492,9 +2492,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) dir_defer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_defer_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_defer_argsIf(ctx, rawArgs) if err != nil { return nil, err @@ -2509,7 +2509,7 @@ func (ec *executionContext) dir_defer_args(ctx context.Context, rawArgs map[stri } func (ec *executionContext) dir_defer_argsIf( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -2531,7 +2531,7 @@ func (ec *executionContext) dir_defer_argsIf( func (ec *executionContext) dir_defer_argsLabel( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -2551,9 +2551,9 @@ func (ec *executionContext) dir_defer_argsLabel( return zeroVal, nil } -func (ec *executionContext) dir_length_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_length_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_length_argsMin(ctx, rawArgs) if err != nil { return nil, err @@ -2573,7 +2573,7 @@ func (ec *executionContext) dir_length_args(ctx context.Context, rawArgs map[str } func (ec *executionContext) dir_length_argsMin( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -2595,7 +2595,7 @@ func (ec *executionContext) dir_length_argsMin( func (ec *executionContext) dir_length_argsMax( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -2617,7 +2617,7 @@ func (ec *executionContext) dir_length_argsMax( func (ec *executionContext) dir_length_argsMessage( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -2637,9 +2637,9 @@ func (ec *executionContext) dir_length_argsMessage( return zeroVal, nil } -func (ec *executionContext) dir_logged_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_logged_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_logged_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -2649,7 +2649,7 @@ func (ec *executionContext) dir_logged_args(ctx context.Context, rawArgs map[str } func (ec *executionContext) dir_logged_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -2669,9 +2669,9 @@ func (ec *executionContext) dir_logged_argsID( return zeroVal, nil } -func (ec *executionContext) dir_order1_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_order1_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_order1_argsLocation(ctx, rawArgs) if err != nil { return nil, err @@ -2681,7 +2681,7 @@ func (ec *executionContext) dir_order1_args(ctx context.Context, rawArgs map[str } func (ec *executionContext) dir_order1_argsLocation( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -2701,9 +2701,9 @@ func (ec *executionContext) dir_order1_argsLocation( return zeroVal, nil } -func (ec *executionContext) dir_order2_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_order2_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_order2_argsLocation(ctx, rawArgs) if err != nil { return nil, err @@ -2713,7 +2713,7 @@ func (ec *executionContext) dir_order2_args(ctx context.Context, rawArgs map[str } func (ec *executionContext) dir_order2_argsLocation( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -2733,9 +2733,9 @@ func (ec *executionContext) dir_order2_argsLocation( return zeroVal, nil } -func (ec *executionContext) dir_populate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_populate_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_populate_argsValue(ctx, rawArgs) if err != nil { return nil, err @@ -2745,7 +2745,7 @@ func (ec *executionContext) dir_populate_args(ctx context.Context, rawArgs map[s } func (ec *executionContext) dir_populate_argsValue( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -2765,9 +2765,9 @@ func (ec *executionContext) dir_populate_argsValue( return zeroVal, nil } -func (ec *executionContext) dir_range_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_range_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_range_argsMin(ctx, rawArgs) if err != nil { return nil, err @@ -2782,7 +2782,7 @@ func (ec *executionContext) dir_range_args(ctx context.Context, rawArgs map[stri } func (ec *executionContext) dir_range_argsMin( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -2804,7 +2804,7 @@ func (ec *executionContext) dir_range_argsMin( func (ec *executionContext) dir_range_argsMax( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -2824,9 +2824,9 @@ func (ec *executionContext) dir_range_argsMax( return zeroVal, nil } -func (ec *executionContext) field_Mutation_defaultInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_defaultInput_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Mutation_defaultInput_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -2836,7 +2836,7 @@ func (ec *executionContext) field_Mutation_defaultInput_args(ctx context.Context } func (ec *executionContext) field_Mutation_defaultInput_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (DefaultInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -2856,9 +2856,9 @@ func (ec *executionContext) field_Mutation_defaultInput_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Mutation_overrideValueViaInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_overrideValueViaInput_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Mutation_overrideValueViaInput_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -2868,7 +2868,7 @@ func (ec *executionContext) field_Mutation_overrideValueViaInput_args(ctx contex } func (ec *executionContext) field_Mutation_overrideValueViaInput_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (FieldsOrderInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -2888,9 +2888,9 @@ func (ec *executionContext) field_Mutation_overrideValueViaInput_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Mutation_updatePtrToPtr_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_updatePtrToPtr_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Mutation_updatePtrToPtr_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -2900,7 +2900,7 @@ func (ec *executionContext) field_Mutation_updatePtrToPtr_args(ctx context.Conte } func (ec *executionContext) field_Mutation_updatePtrToPtr_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (UpdatePtrToPtrOuter, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -2920,9 +2920,9 @@ func (ec *executionContext) field_Mutation_updatePtrToPtr_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Mutation_updateSomething_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_updateSomething_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Mutation_updateSomething_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -2932,7 +2932,7 @@ func (ec *executionContext) field_Mutation_updateSomething_args(ctx context.Cont } func (ec *executionContext) field_Mutation_updateSomething_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (SpecialInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -2952,9 +2952,9 @@ func (ec *executionContext) field_Mutation_updateSomething_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Panics_argUnmarshal_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Panics_argUnmarshal_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Panics_argUnmarshal_argsU(ctx, rawArgs) if err != nil { return nil, err @@ -2964,7 +2964,7 @@ func (ec *executionContext) field_Panics_argUnmarshal_args(ctx context.Context, } func (ec *executionContext) field_Panics_argUnmarshal_argsU( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]MarshalPanic, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -2984,9 +2984,9 @@ func (ec *executionContext) field_Panics_argUnmarshal_argsU( return zeroVal, nil } -func (ec *executionContext) field_Panics_fieldFuncMarshal_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Panics_fieldFuncMarshal_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Panics_fieldFuncMarshal_argsU(ctx, rawArgs) if err != nil { return nil, err @@ -2996,7 +2996,7 @@ func (ec *executionContext) field_Panics_fieldFuncMarshal_args(ctx context.Conte } func (ec *executionContext) field_Panics_fieldFuncMarshal_argsU( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]MarshalPanic, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3016,9 +3016,9 @@ func (ec *executionContext) field_Panics_fieldFuncMarshal_argsU( return zeroVal, nil } -func (ec *executionContext) field_Pet_friends_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Pet_friends_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Pet_friends_argsLimit(ctx, rawArgs) if err != nil { return nil, err @@ -3028,7 +3028,7 @@ func (ec *executionContext) field_Pet_friends_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Pet_friends_argsLimit( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3048,9 +3048,9 @@ func (ec *executionContext) field_Pet_friends_argsLimit( return zeroVal, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -3060,7 +3060,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3080,9 +3080,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query_defaultParameters_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_defaultParameters_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_defaultParameters_argsFalsyBoolean(ctx, rawArgs) if err != nil { return nil, err @@ -3097,7 +3097,7 @@ func (ec *executionContext) field_Query_defaultParameters_args(ctx context.Conte } func (ec *executionContext) field_Query_defaultParameters_argsFalsyBoolean( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3119,7 +3119,7 @@ func (ec *executionContext) field_Query_defaultParameters_argsFalsyBoolean( func (ec *executionContext) field_Query_defaultParameters_argsTruthyBoolean( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3139,9 +3139,9 @@ func (ec *executionContext) field_Query_defaultParameters_argsTruthyBoolean( return zeroVal, nil } -func (ec *executionContext) field_Query_defaultScalar_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_defaultScalar_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_defaultScalar_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -3151,7 +3151,7 @@ func (ec *executionContext) field_Query_defaultScalar_args(ctx context.Context, } func (ec *executionContext) field_Query_defaultScalar_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3171,9 +3171,9 @@ func (ec *executionContext) field_Query_defaultScalar_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_directiveArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_directiveArg_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_directiveArg_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -3183,7 +3183,7 @@ func (ec *executionContext) field_Query_directiveArg_args(ctx context.Context, r } func (ec *executionContext) field_Query_directiveArg_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3195,7 +3195,7 @@ func (ec *executionContext) field_Query_directiveArg_argsArg( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg"] if !ok { var zeroVal string @@ -3204,7 +3204,7 @@ func (ec *executionContext) field_Query_directiveArg_argsArg( return ec.unmarshalNString2string(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalNInt2int(ctx, 1) if err != nil { var zeroVal string @@ -3240,9 +3240,9 @@ func (ec *executionContext) field_Query_directiveArg_argsArg( } } -func (ec *executionContext) field_Query_directiveFieldDef_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_directiveFieldDef_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_directiveFieldDef_argsRet(ctx, rawArgs) if err != nil { return nil, err @@ -3252,7 +3252,7 @@ func (ec *executionContext) field_Query_directiveFieldDef_args(ctx context.Conte } func (ec *executionContext) field_Query_directiveFieldDef_argsRet( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3272,9 +3272,9 @@ func (ec *executionContext) field_Query_directiveFieldDef_argsRet( return zeroVal, nil } -func (ec *executionContext) field_Query_directiveInputNullable_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_directiveInputNullable_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_directiveInputNullable_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -3284,7 +3284,7 @@ func (ec *executionContext) field_Query_directiveInputNullable_args(ctx context. } func (ec *executionContext) field_Query_directiveInputNullable_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*InputDirectives, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3304,9 +3304,9 @@ func (ec *executionContext) field_Query_directiveInputNullable_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_directiveInputType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_directiveInputType_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_directiveInputType_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -3316,7 +3316,7 @@ func (ec *executionContext) field_Query_directiveInputType_args(ctx context.Cont } func (ec *executionContext) field_Query_directiveInputType_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (InnerInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3328,7 +3328,7 @@ func (ec *executionContext) field_Query_directiveInputType_argsArg( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg"] if !ok { var zeroVal InnerInput @@ -3337,7 +3337,7 @@ func (ec *executionContext) field_Query_directiveInputType_argsArg( return ec.unmarshalNInnerInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerInput(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Custom == nil { var zeroVal InnerInput return zeroVal, errors.New("directive custom is not implemented") @@ -3358,9 +3358,9 @@ func (ec *executionContext) field_Query_directiveInputType_argsArg( } } -func (ec *executionContext) field_Query_directiveInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_directiveInput_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_directiveInput_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -3370,7 +3370,7 @@ func (ec *executionContext) field_Query_directiveInput_args(ctx context.Context, } func (ec *executionContext) field_Query_directiveInput_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (InputDirectives, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3390,9 +3390,9 @@ func (ec *executionContext) field_Query_directiveInput_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_directiveNullableArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_directiveNullableArg_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_directiveNullableArg_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -3412,7 +3412,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_args(ctx context.Co } func (ec *executionContext) field_Query_directiveNullableArg_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3424,7 +3424,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_argsArg( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg"] if !ok { var zeroVal *int @@ -3433,7 +3433,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_argsArg( return ec.unmarshalOInt2ᚖint(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalOInt2ᚖint(ctx, 0) if err != nil { var zeroVal *int @@ -3464,7 +3464,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_argsArg( func (ec *executionContext) field_Query_directiveNullableArg_argsArg2( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3476,7 +3476,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_argsArg2( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg2")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg2"] if !ok { var zeroVal *int @@ -3485,7 +3485,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_argsArg2( return ec.unmarshalOInt2ᚖint(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalOInt2ᚖint(ctx, 0) if err != nil { var zeroVal *int @@ -3516,7 +3516,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_argsArg2( func (ec *executionContext) field_Query_directiveNullableArg_argsArg3( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3528,7 +3528,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_argsArg3( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg3")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg3"] if !ok { var zeroVal *string @@ -3537,7 +3537,7 @@ func (ec *executionContext) field_Query_directiveNullableArg_argsArg3( return ec.unmarshalOString2ᚖstring(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.ToNull == nil { var zeroVal *string return zeroVal, errors.New("directive toNull is not implemented") @@ -3561,9 +3561,9 @@ func (ec *executionContext) field_Query_directiveNullableArg_argsArg3( } } -func (ec *executionContext) field_Query_directiveSingleNullableArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_directiveSingleNullableArg_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_directiveSingleNullableArg_argsArg1(ctx, rawArgs) if err != nil { return nil, err @@ -3573,7 +3573,7 @@ func (ec *executionContext) field_Query_directiveSingleNullableArg_args(ctx cont } func (ec *executionContext) field_Query_directiveSingleNullableArg_argsArg1( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3585,7 +3585,7 @@ func (ec *executionContext) field_Query_directiveSingleNullableArg_argsArg1( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg1")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg1"] if !ok { var zeroVal *string @@ -3594,7 +3594,7 @@ func (ec *executionContext) field_Query_directiveSingleNullableArg_argsArg1( return ec.unmarshalOString2ᚖstring(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { value, err := ec.unmarshalNString2string(ctx, "test") if err != nil { var zeroVal *string @@ -3606,7 +3606,7 @@ func (ec *executionContext) field_Query_directiveSingleNullableArg_argsArg1( } return ec.directives.Populate(ctx, rawArgs, directive0, value) } - directive2 := func(ctx context.Context) (interface{}, error) { + directive2 := func(ctx context.Context) (any, error) { if ec.directives.Noop == nil { var zeroVal *string return zeroVal, errors.New("directive noop is not implemented") @@ -3630,9 +3630,9 @@ func (ec *executionContext) field_Query_directiveSingleNullableArg_argsArg1( } } -func (ec *executionContext) field_Query_enumInInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_enumInInput_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_enumInInput_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -3642,7 +3642,7 @@ func (ec *executionContext) field_Query_enumInInput_args(ctx context.Context, ra } func (ec *executionContext) field_Query_enumInInput_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*InputWithEnumValue, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3662,9 +3662,9 @@ func (ec *executionContext) field_Query_enumInInput_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Query_fallback_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_fallback_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_fallback_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -3674,7 +3674,7 @@ func (ec *executionContext) field_Query_fallback_args(ctx context.Context, rawAr } func (ec *executionContext) field_Query_fallback_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (FallbackToStringEncoding, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3694,9 +3694,9 @@ func (ec *executionContext) field_Query_fallback_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_inputNullableSlice_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_inputNullableSlice_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_inputNullableSlice_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -3706,7 +3706,7 @@ func (ec *executionContext) field_Query_inputNullableSlice_args(ctx context.Cont } func (ec *executionContext) field_Query_inputNullableSlice_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3726,9 +3726,9 @@ func (ec *executionContext) field_Query_inputNullableSlice_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_inputOmittable_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_inputOmittable_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_inputOmittable_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -3738,7 +3738,7 @@ func (ec *executionContext) field_Query_inputOmittable_args(ctx context.Context, } func (ec *executionContext) field_Query_inputOmittable_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (OmittableInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3758,9 +3758,9 @@ func (ec *executionContext) field_Query_inputOmittable_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_inputSlice_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_inputSlice_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_inputSlice_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -3770,7 +3770,7 @@ func (ec *executionContext) field_Query_inputSlice_args(ctx context.Context, raw } func (ec *executionContext) field_Query_inputSlice_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3790,9 +3790,9 @@ func (ec *executionContext) field_Query_inputSlice_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_mapInput_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_mapInput_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_mapInput_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -3802,14 +3802,14 @@ func (ec *executionContext) field_Query_mapInput_args(ctx context.Context, rawAr } func (ec *executionContext) field_Query_mapInput_argsInput( ctx context.Context, - rawArgs map[string]interface{}, -) (map[string]interface{}, error) { + rawArgs map[string]any, +) (map[string]any, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives // even if the argument is null. _, ok := rawArgs["input"] if !ok { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } @@ -3818,13 +3818,13 @@ func (ec *executionContext) field_Query_mapInput_argsInput( return ec.unmarshalOChanges2map(ctx, tmp) } - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } -func (ec *executionContext) field_Query_mapNestedStringInterface_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_mapNestedStringInterface_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_mapNestedStringInterface_argsIn(ctx, rawArgs) if err != nil { return nil, err @@ -3834,7 +3834,7 @@ func (ec *executionContext) field_Query_mapNestedStringInterface_args(ctx contex } func (ec *executionContext) field_Query_mapNestedStringInterface_argsIn( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*NestedMapInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3854,9 +3854,9 @@ func (ec *executionContext) field_Query_mapNestedStringInterface_argsIn( return zeroVal, nil } -func (ec *executionContext) field_Query_mapStringInterface_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_mapStringInterface_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_mapStringInterface_argsIn(ctx, rawArgs) if err != nil { return nil, err @@ -3866,14 +3866,14 @@ func (ec *executionContext) field_Query_mapStringInterface_args(ctx context.Cont } func (ec *executionContext) field_Query_mapStringInterface_argsIn( ctx context.Context, - rawArgs map[string]interface{}, -) (map[string]interface{}, error) { + rawArgs map[string]any, +) (map[string]any, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives // even if the argument is null. _, ok := rawArgs["in"] if !ok { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } @@ -3882,13 +3882,13 @@ func (ec *executionContext) field_Query_mapStringInterface_argsIn( return ec.unmarshalOMapStringInterfaceInput2map(ctx, tmp) } - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } -func (ec *executionContext) field_Query_nestedInputs_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_nestedInputs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_nestedInputs_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -3898,7 +3898,7 @@ func (ec *executionContext) field_Query_nestedInputs_args(ctx context.Context, r } func (ec *executionContext) field_Query_nestedInputs_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([][]*OuterInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3918,9 +3918,9 @@ func (ec *executionContext) field_Query_nestedInputs_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Query_nullableArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_nullableArg_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_nullableArg_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -3930,7 +3930,7 @@ func (ec *executionContext) field_Query_nullableArg_args(ctx context.Context, ra } func (ec *executionContext) field_Query_nullableArg_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3950,9 +3950,9 @@ func (ec *executionContext) field_Query_nullableArg_argsArg( return zeroVal, nil } -func (ec *executionContext) field_Query_recursive_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_recursive_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_recursive_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -3962,7 +3962,7 @@ func (ec *executionContext) field_Query_recursive_args(ctx context.Context, rawA } func (ec *executionContext) field_Query_recursive_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*RecursiveInputSlice, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -3982,9 +3982,9 @@ func (ec *executionContext) field_Query_recursive_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_user_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -3994,7 +3994,7 @@ func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs m } func (ec *executionContext) field_Query_user_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4014,9 +4014,9 @@ func (ec *executionContext) field_Query_user_argsID( return zeroVal, nil } -func (ec *executionContext) field_Subscription_directiveArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Subscription_directiveArg_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Subscription_directiveArg_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -4026,7 +4026,7 @@ func (ec *executionContext) field_Subscription_directiveArg_args(ctx context.Con } func (ec *executionContext) field_Subscription_directiveArg_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4038,7 +4038,7 @@ func (ec *executionContext) field_Subscription_directiveArg_argsArg( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg"] if !ok { var zeroVal string @@ -4047,7 +4047,7 @@ func (ec *executionContext) field_Subscription_directiveArg_argsArg( return ec.unmarshalNString2string(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalNInt2int(ctx, 1) if err != nil { var zeroVal string @@ -4083,9 +4083,9 @@ func (ec *executionContext) field_Subscription_directiveArg_argsArg( } } -func (ec *executionContext) field_Subscription_directiveNullableArg_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Subscription_directiveNullableArg_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Subscription_directiveNullableArg_argsArg(ctx, rawArgs) if err != nil { return nil, err @@ -4105,7 +4105,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_args(ctx con } func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4117,7 +4117,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg"] if !ok { var zeroVal *int @@ -4126,7 +4126,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg( return ec.unmarshalOInt2ᚖint(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalOInt2ᚖint(ctx, 0) if err != nil { var zeroVal *int @@ -4157,7 +4157,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg( func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg2( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4169,7 +4169,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg2( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg2")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg2"] if !ok { var zeroVal *int @@ -4178,7 +4178,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg2( return ec.unmarshalOInt2ᚖint(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalOInt2ᚖint(ctx, 0) if err != nil { var zeroVal *int @@ -4209,7 +4209,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg2( func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg3( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4221,7 +4221,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg3( } ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("arg3")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["arg3"] if !ok { var zeroVal *string @@ -4230,7 +4230,7 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg3( return ec.unmarshalOString2ᚖstring(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.ToNull == nil { var zeroVal *string return zeroVal, errors.New("directive toNull is not implemented") @@ -4254,9 +4254,9 @@ func (ec *executionContext) field_Subscription_directiveNullableArg_argsArg3( } } -func (ec *executionContext) field_User_pets_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_User_pets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_User_pets_argsLimit(ctx, rawArgs) if err != nil { return nil, err @@ -4266,7 +4266,7 @@ func (ec *executionContext) field_User_pets_args(ctx context.Context, rawArgs ma } func (ec *executionContext) field_User_pets_argsLimit( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4286,9 +4286,9 @@ func (ec *executionContext) field_User_pets_argsLimit( return zeroVal, nil } -func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_ValidType_validArgs_argsBreak(ctx, rawArgs) if err != nil { return nil, err @@ -4423,7 +4423,7 @@ func (ec *executionContext) field_ValidType_validArgs_args(ctx context.Context, } func (ec *executionContext) field_ValidType_validArgs_argsBreak( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4445,7 +4445,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsBreak( func (ec *executionContext) field_ValidType_validArgs_argsDefault( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4467,7 +4467,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsDefault( func (ec *executionContext) field_ValidType_validArgs_argsFunc( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4489,7 +4489,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsFunc( func (ec *executionContext) field_ValidType_validArgs_argsInterface( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4511,7 +4511,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsInterface( func (ec *executionContext) field_ValidType_validArgs_argsSelect( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4533,7 +4533,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsSelect( func (ec *executionContext) field_ValidType_validArgs_argsCase( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4555,7 +4555,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsCase( func (ec *executionContext) field_ValidType_validArgs_argsDefer( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4577,7 +4577,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsDefer( func (ec *executionContext) field_ValidType_validArgs_argsGo( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4599,7 +4599,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsGo( func (ec *executionContext) field_ValidType_validArgs_argsMap( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4621,7 +4621,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsMap( func (ec *executionContext) field_ValidType_validArgs_argsStruct( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4643,7 +4643,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsStruct( func (ec *executionContext) field_ValidType_validArgs_argsChan( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4665,7 +4665,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsChan( func (ec *executionContext) field_ValidType_validArgs_argsElse( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4687,7 +4687,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsElse( func (ec *executionContext) field_ValidType_validArgs_argsGoto( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4709,7 +4709,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsGoto( func (ec *executionContext) field_ValidType_validArgs_argsPackage( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4731,7 +4731,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsPackage( func (ec *executionContext) field_ValidType_validArgs_argsSwitch( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4753,7 +4753,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsSwitch( func (ec *executionContext) field_ValidType_validArgs_argsConst( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4775,7 +4775,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsConst( func (ec *executionContext) field_ValidType_validArgs_argsFallthrough( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4797,7 +4797,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsFallthrough( func (ec *executionContext) field_ValidType_validArgs_argsIf( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4819,7 +4819,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsIf( func (ec *executionContext) field_ValidType_validArgs_argsRange( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4841,7 +4841,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsRange( func (ec *executionContext) field_ValidType_validArgs_argsType( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4863,7 +4863,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsType( func (ec *executionContext) field_ValidType_validArgs_argsContinue( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4885,7 +4885,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsContinue( func (ec *executionContext) field_ValidType_validArgs_argsFor( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4907,7 +4907,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsFor( func (ec *executionContext) field_ValidType_validArgs_argsImport( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4929,7 +4929,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsImport( func (ec *executionContext) field_ValidType_validArgs_argsReturn( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4951,7 +4951,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsReturn( func (ec *executionContext) field_ValidType_validArgs_argsVar( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4973,7 +4973,7 @@ func (ec *executionContext) field_ValidType_validArgs_argsVar( func (ec *executionContext) field_ValidType_validArgs_args_( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -4993,9 +4993,9 @@ func (ec *executionContext) field_ValidType_validArgs_args_( return zeroVal, nil } -func (ec *executionContext) field_ValidType_validInputKeywords_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_ValidType_validInputKeywords_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_ValidType_validInputKeywords_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -5005,7 +5005,7 @@ func (ec *executionContext) field_ValidType_validInputKeywords_args(ctx context. } func (ec *executionContext) field_ValidType_validInputKeywords_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ValidInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -5025,9 +5025,9 @@ func (ec *executionContext) field_ValidType_validInputKeywords_argsInput( return zeroVal, nil } -func (ec *executionContext) field_VariadicModel_value_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_VariadicModel_value_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_VariadicModel_value_argsRank(ctx, rawArgs) if err != nil { return nil, err @@ -5037,7 +5037,7 @@ func (ec *executionContext) field_VariadicModel_value_args(ctx context.Context, } func (ec *executionContext) field_VariadicModel_value_argsRank( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -5057,9 +5057,9 @@ func (ec *executionContext) field_VariadicModel_value_argsRank( return zeroVal, nil } -func (ec *executionContext) field_WrappedMap_get_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_WrappedMap_get_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_WrappedMap_get_argsKey(ctx, rawArgs) if err != nil { return nil, err @@ -5069,7 +5069,7 @@ func (ec *executionContext) field_WrappedMap_get_args(ctx context.Context, rawAr } func (ec *executionContext) field_WrappedMap_get_argsKey( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -5089,9 +5089,9 @@ func (ec *executionContext) field_WrappedMap_get_argsKey( return zeroVal, nil } -func (ec *executionContext) field_WrappedSlice_get_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_WrappedSlice_get_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_WrappedSlice_get_argsIdx(ctx, rawArgs) if err != nil { return nil, err @@ -5101,7 +5101,7 @@ func (ec *executionContext) field_WrappedSlice_get_args(ctx context.Context, raw } func (ec *executionContext) field_WrappedSlice_get_argsIdx( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -5121,9 +5121,9 @@ func (ec *executionContext) field_WrappedSlice_get_argsIdx( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -5133,7 +5133,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -5153,9 +5153,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -5165,7 +5165,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -5189,7 +5189,7 @@ func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( // region ************************** directives.gotpl ************************** -func (ec *executionContext) _fieldMiddleware(ctx context.Context, obj interface{}, next graphql.Resolver) interface{} { +func (ec *executionContext) _fieldMiddleware(ctx context.Context, obj any, next graphql.Resolver) any { fc := graphql.GetFieldContext(ctx) for _, d := range fc.Field.Directives { switch d.Name { @@ -5201,7 +5201,7 @@ func (ec *executionContext) _fieldMiddleware(ctx context.Context, obj interface{ return nil } n := next - next = func(ctx context.Context) (interface{}, error) { + next = func(ctx context.Context) (any, error) { if ec.directives.Logged == nil { return nil, errors.New("directive logged is not implemented") } @@ -5233,7 +5233,7 @@ func (ec *executionContext) _A_id(ctx context.Context, field graphql.CollectedFi ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -5274,7 +5274,7 @@ func (ec *executionContext) _AIt_id(ctx context.Context, field graphql.Collected ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -5315,7 +5315,7 @@ func (ec *executionContext) _AbIt_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -5356,7 +5356,7 @@ func (ec *executionContext) _Autobind_int(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Int, nil }) @@ -5397,7 +5397,7 @@ func (ec *executionContext) _Autobind_int32(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Int32, nil }) @@ -5438,7 +5438,7 @@ func (ec *executionContext) _Autobind_int64(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Int64, nil }) @@ -5479,7 +5479,7 @@ func (ec *executionContext) _Autobind_idStr(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IdStr, nil }) @@ -5520,7 +5520,7 @@ func (ec *executionContext) _Autobind_idInt(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IdInt, nil }) @@ -5561,7 +5561,7 @@ func (ec *executionContext) _B_id(ctx context.Context, field graphql.CollectedFi ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -5602,7 +5602,7 @@ func (ec *executionContext) _BackedByInterface_id(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.BackedByInterface().ID(rctx, obj) }) @@ -5643,7 +5643,7 @@ func (ec *executionContext) _BackedByInterface_thisShouldBind(ctx context.Contex ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ThisShouldBind(), nil }) @@ -5684,7 +5684,7 @@ func (ec *executionContext) _BackedByInterface_thisShouldBindWithError(ctx conte ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ThisShouldBindWithError() }) @@ -5725,7 +5725,7 @@ func (ec *executionContext) _Cat_species(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Species, nil }) @@ -5766,7 +5766,7 @@ func (ec *executionContext) _Cat_size(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Size, nil }) @@ -5813,7 +5813,7 @@ func (ec *executionContext) _Cat_catBreed(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.CatBreed, nil }) @@ -5854,7 +5854,7 @@ func (ec *executionContext) _CheckIssue896_id(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -5892,7 +5892,7 @@ func (ec *executionContext) _Circle_radius(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Radius, nil }) @@ -5930,7 +5930,7 @@ func (ec *executionContext) _Circle_area(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Area(), nil }) @@ -5968,7 +5968,7 @@ func (ec *executionContext) _Circle_coordinates(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Coordinates, nil }) @@ -6012,7 +6012,7 @@ func (ec *executionContext) _ConcreteNodeA_id(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -6053,7 +6053,7 @@ func (ec *executionContext) _ConcreteNodeA_child(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Child() }) @@ -6094,7 +6094,7 @@ func (ec *executionContext) _ConcreteNodeA_name(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -6135,7 +6135,7 @@ func (ec *executionContext) _ConcreteNodeInterface_id(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID(), nil }) @@ -6176,7 +6176,7 @@ func (ec *executionContext) _ConcreteNodeInterface_child(ctx context.Context, fi ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Child() }) @@ -6217,7 +6217,7 @@ func (ec *executionContext) _Content_Post_foo(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Foo, nil }) @@ -6255,7 +6255,7 @@ func (ec *executionContext) _Content_User_foo(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Foo, nil }) @@ -6293,7 +6293,7 @@ func (ec *executionContext) _Coordinates_x(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.X, nil }) @@ -6334,7 +6334,7 @@ func (ec *executionContext) _Coordinates_y(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Y, nil }) @@ -6375,7 +6375,7 @@ func (ec *executionContext) _DefaultParametersMirror_falsyBoolean(ctx context.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.FalsyBoolean, nil }) @@ -6413,7 +6413,7 @@ func (ec *executionContext) _DefaultParametersMirror_truthyBoolean(ctx context.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.TruthyBoolean, nil }) @@ -6451,7 +6451,7 @@ func (ec *executionContext) _DeferModel_id(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -6492,7 +6492,7 @@ func (ec *executionContext) _DeferModel_name(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -6533,7 +6533,7 @@ func (ec *executionContext) _DeferModel_values(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.DeferModel().Values(rctx, obj) }) @@ -6574,7 +6574,7 @@ func (ec *executionContext) _Dog_species(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Species, nil }) @@ -6615,7 +6615,7 @@ func (ec *executionContext) _Dog_size(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Size, nil }) @@ -6662,7 +6662,7 @@ func (ec *executionContext) _Dog_dogBreed(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DogBreed, nil }) @@ -6703,7 +6703,7 @@ func (ec *executionContext) _EmbeddedCase1_exportedEmbeddedPointerExportedMethod ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ExportedEmbeddedPointerExportedMethod(), nil }) @@ -6744,7 +6744,7 @@ func (ec *executionContext) _EmbeddedCase2_unexportedEmbeddedPointerExportedMeth ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.UnexportedEmbeddedPointerExportedMethod(), nil }) @@ -6785,7 +6785,7 @@ func (ec *executionContext) _EmbeddedCase3_unexportedEmbeddedInterfaceExportedMe ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.UnexportedEmbeddedInterfaceExportedMethod(), nil }) @@ -6826,7 +6826,7 @@ func (ec *executionContext) _EmbeddedDefaultScalar_value(ctx context.Context, fi ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Value, nil }) @@ -6864,7 +6864,7 @@ func (ec *executionContext) _EmbeddedPointer_ID(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -6902,7 +6902,7 @@ func (ec *executionContext) _EmbeddedPointer_Title(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Title, nil }) @@ -6940,7 +6940,7 @@ func (ec *executionContext) _Error_id(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -6981,7 +6981,7 @@ func (ec *executionContext) _Error_errorOnNonRequiredField(ctx context.Context, ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ErrorOnNonRequiredField() }) @@ -7019,7 +7019,7 @@ func (ec *executionContext) _Error_errorOnRequiredField(ctx context.Context, fie ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ErrorOnRequiredField() }) @@ -7060,7 +7060,7 @@ func (ec *executionContext) _Error_nilOnRequiredField(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.NilOnRequiredField(), nil }) @@ -7101,7 +7101,7 @@ func (ec *executionContext) _Errors_a(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Errors().A(rctx, obj) }) @@ -7152,7 +7152,7 @@ func (ec *executionContext) _Errors_b(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Errors().B(rctx, obj) }) @@ -7203,7 +7203,7 @@ func (ec *executionContext) _Errors_c(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Errors().C(rctx, obj) }) @@ -7254,7 +7254,7 @@ func (ec *executionContext) _Errors_d(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Errors().D(rctx, obj) }) @@ -7305,7 +7305,7 @@ func (ec *executionContext) _Errors_e(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Errors().E(rctx, obj) }) @@ -7356,7 +7356,7 @@ func (ec *executionContext) _FieldsOrderPayload_firstFieldValue(ctx context.Cont ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.FirstFieldValue, nil }) @@ -7394,7 +7394,7 @@ func (ec *executionContext) _ForcedResolver_field(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.ForcedResolver().Field(rctx, obj) }) @@ -7440,7 +7440,7 @@ func (ec *executionContext) _Horse_species(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Species, nil }) @@ -7481,7 +7481,7 @@ func (ec *executionContext) _Horse_size(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Size, nil }) @@ -7528,7 +7528,7 @@ func (ec *executionContext) _Horse_horseBreed(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.HorseBreed, nil }) @@ -7569,7 +7569,7 @@ func (ec *executionContext) _InnerObject_id(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -7610,7 +7610,7 @@ func (ec *executionContext) _InvalidIdentifier_id(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -7651,7 +7651,7 @@ func (ec *executionContext) _It_id(ctx context.Context, field graphql.CollectedF ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -7692,7 +7692,7 @@ func (ec *executionContext) _LoopA_b(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.B, nil }) @@ -7737,7 +7737,7 @@ func (ec *executionContext) _LoopB_a(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.A, nil }) @@ -7782,7 +7782,7 @@ func (ec *executionContext) _Map_id(ctx context.Context, field graphql.Collected ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -7823,7 +7823,7 @@ func (ec *executionContext) _MapNested_value(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Value, nil }) @@ -7852,7 +7852,7 @@ func (ec *executionContext) fieldContext_MapNested_value(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _MapStringInterfaceType_a(ctx context.Context, field graphql.CollectedField, obj map[string]interface{}) (ret graphql.Marshaler) { +func (ec *executionContext) _MapStringInterfaceType_a(ctx context.Context, field graphql.CollectedField, obj map[string]any) (ret graphql.Marshaler) { fc, err := ec.fieldContext_MapStringInterfaceType_a(ctx, field) if err != nil { return graphql.Null @@ -7864,7 +7864,7 @@ func (ec *executionContext) _MapStringInterfaceType_a(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children switch v := obj["a"].(type) { case *string: @@ -7899,7 +7899,7 @@ func (ec *executionContext) fieldContext_MapStringInterfaceType_a(_ context.Cont return fc, nil } -func (ec *executionContext) _MapStringInterfaceType_b(ctx context.Context, field graphql.CollectedField, obj map[string]interface{}) (ret graphql.Marshaler) { +func (ec *executionContext) _MapStringInterfaceType_b(ctx context.Context, field graphql.CollectedField, obj map[string]any) (ret graphql.Marshaler) { fc, err := ec.fieldContext_MapStringInterfaceType_b(ctx, field) if err != nil { return graphql.Null @@ -7911,7 +7911,7 @@ func (ec *executionContext) _MapStringInterfaceType_b(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children switch v := obj["b"].(type) { case *int: @@ -7946,7 +7946,7 @@ func (ec *executionContext) fieldContext_MapStringInterfaceType_b(_ context.Cont return fc, nil } -func (ec *executionContext) _MapStringInterfaceType_c(ctx context.Context, field graphql.CollectedField, obj map[string]interface{}) (ret graphql.Marshaler) { +func (ec *executionContext) _MapStringInterfaceType_c(ctx context.Context, field graphql.CollectedField, obj map[string]any) (ret graphql.Marshaler) { fc, err := ec.fieldContext_MapStringInterfaceType_c(ctx, field) if err != nil { return graphql.Null @@ -7958,7 +7958,7 @@ func (ec *executionContext) _MapStringInterfaceType_c(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children switch v := obj["c"].(type) { case *CustomScalar: @@ -7993,7 +7993,7 @@ func (ec *executionContext) fieldContext_MapStringInterfaceType_c(_ context.Cont return fc, nil } -func (ec *executionContext) _MapStringInterfaceType_nested(ctx context.Context, field graphql.CollectedField, obj map[string]interface{}) (ret graphql.Marshaler) { +func (ec *executionContext) _MapStringInterfaceType_nested(ctx context.Context, field graphql.CollectedField, obj map[string]any) (ret graphql.Marshaler) { fc, err := ec.fieldContext_MapStringInterfaceType_nested(ctx, field) if err != nil { return graphql.Null @@ -8005,7 +8005,7 @@ func (ec *executionContext) _MapStringInterfaceType_nested(ctx context.Context, ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children switch v := obj["nested"].(type) { case *MapNested: @@ -8056,7 +8056,7 @@ func (ec *executionContext) _ModelMethods_resolverField(ctx context.Context, fie ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.ModelMethods().ResolverField(rctx, obj) }) @@ -8097,7 +8097,7 @@ func (ec *executionContext) _ModelMethods_noContext(ctx context.Context, field g ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.NoContext(), nil }) @@ -8138,7 +8138,7 @@ func (ec *executionContext) _ModelMethods_withContext(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.WithContext(ctx), nil }) @@ -8179,7 +8179,7 @@ func (ec *executionContext) _Mutation_defaultInput(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().DefaultInput(rctx, fc.Args["input"].(DefaultInput)) }) @@ -8237,7 +8237,7 @@ func (ec *executionContext) _Mutation_overrideValueViaInput(ctx context.Context, ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().OverrideValueViaInput(rctx, fc.Args["input"].(FieldsOrderInput)) }) @@ -8293,7 +8293,7 @@ func (ec *executionContext) _Mutation_updateSomething(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().UpdateSomething(rctx, fc.Args["input"].(SpecialInput)) }) @@ -8345,7 +8345,7 @@ func (ec *executionContext) _Mutation_updatePtrToPtr(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().UpdatePtrToPtr(rctx, fc.Args["input"].(UpdatePtrToPtrOuter)) }) @@ -8405,13 +8405,13 @@ func (ec *executionContext) _ObjectDirectives_text(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Text, nil } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalNInt2int(ctx, 0) if err != nil { var zeroVal string @@ -8483,13 +8483,13 @@ func (ec *executionContext) _ObjectDirectives_nullableText(ctx context.Context, ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.NullableText, nil } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.ToNull == nil { var zeroVal *string return zeroVal, errors.New("directive toNull is not implemented") @@ -8543,7 +8543,7 @@ func (ec *executionContext) _ObjectDirectives_order(ctx context.Context, field g ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Order, nil }) @@ -8584,13 +8584,13 @@ func (ec *executionContext) _ObjectDirectivesWithCustomGoModel_nullableText(ctx ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.NullableText, nil } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.ToNull == nil { var zeroVal string return zeroVal, errors.New("directive toNull is not implemented") @@ -8644,7 +8644,7 @@ func (ec *executionContext) _OuterObject_inner(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Inner, nil }) @@ -8689,7 +8689,7 @@ func (ec *executionContext) _OverlappingFields_oneFoo(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Foo, nil }) @@ -8730,7 +8730,7 @@ func (ec *executionContext) _OverlappingFields_twoFoo(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Foo, nil }) @@ -8771,7 +8771,7 @@ func (ec *executionContext) _OverlappingFields_oldFoo(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.OverlappingFields().OldFoo(rctx, obj) }) @@ -8812,7 +8812,7 @@ func (ec *executionContext) _OverlappingFields_newFoo(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.NewFoo, nil }) @@ -8853,7 +8853,7 @@ func (ec *executionContext) _OverlappingFields_new_foo(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.NewFoo, nil }) @@ -8894,7 +8894,7 @@ func (ec *executionContext) _Panics_fieldScalarMarshal(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Panics().FieldScalarMarshal(rctx, obj) }) @@ -8935,7 +8935,7 @@ func (ec *executionContext) _Panics_fieldFuncMarshal(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.FieldFuncMarshal(ctx, fc.Args["u"].([]MarshalPanic)), nil }) @@ -8987,7 +8987,7 @@ func (ec *executionContext) _Panics_argUnmarshal(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Panics().ArgUnmarshal(rctx, obj, fc.Args["u"].([]MarshalPanic)) }) @@ -9039,7 +9039,7 @@ func (ec *executionContext) _Pet_id(ctx context.Context, field graphql.Collected ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -9080,7 +9080,7 @@ func (ec *executionContext) _Pet_friends(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Pet().Friends(rctx, obj, fc.Args["limit"].(*int)) }) @@ -9135,7 +9135,7 @@ func (ec *executionContext) _Primitive_value(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Primitive().Value(rctx, obj) }) @@ -9176,7 +9176,7 @@ func (ec *executionContext) _Primitive_squared(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Squared(), nil }) @@ -9217,7 +9217,7 @@ func (ec *executionContext) _PrimitiveString_value(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.PrimitiveString().Value(rctx, obj) }) @@ -9258,7 +9258,7 @@ func (ec *executionContext) _PrimitiveString_doubled(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Doubled(), nil }) @@ -9299,7 +9299,7 @@ func (ec *executionContext) _PrimitiveString_len(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.PrimitiveString().Len(rctx, obj) }) @@ -9340,7 +9340,7 @@ func (ec *executionContext) _PtrToAnyContainer_ptrToAny(ctx context.Context, fie ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PtrToAny, nil }) @@ -9378,7 +9378,7 @@ func (ec *executionContext) _PtrToAnyContainer_binding(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Binding(), nil }) @@ -9416,7 +9416,7 @@ func (ec *executionContext) _PtrToPtrInner_key(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key, nil }) @@ -9457,7 +9457,7 @@ func (ec *executionContext) _PtrToPtrInner_value(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Value, nil }) @@ -9498,7 +9498,7 @@ func (ec *executionContext) _PtrToPtrOuter_name(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -9539,7 +9539,7 @@ func (ec *executionContext) _PtrToPtrOuter_inner(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Inner, nil }) @@ -9583,7 +9583,7 @@ func (ec *executionContext) _PtrToPtrOuter_stupidInner(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.StupidInner, nil }) @@ -9627,7 +9627,7 @@ func (ec *executionContext) _PtrToSliceContainer_ptrToSlice(ctx context.Context, ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PtrToSlice, nil }) @@ -9665,7 +9665,7 @@ func (ec *executionContext) _Query_invalidIdentifier(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().InvalidIdentifier(rctx) }) @@ -9707,7 +9707,7 @@ func (ec *executionContext) _Query_collision(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Collision(rctx) }) @@ -9749,9 +9749,9 @@ func (ec *executionContext) _Query_mapInput(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().MapInput(rctx, fc.Args["input"].(map[string]interface{})) + return ec.resolvers.Query().MapInput(rctx, fc.Args["input"].(map[string]any)) }) if resTmp == nil { @@ -9798,7 +9798,7 @@ func (ec *executionContext) _Query_recursive(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Recursive(rctx, fc.Args["input"].(*RecursiveInputSlice)) }) @@ -9847,7 +9847,7 @@ func (ec *executionContext) _Query_nestedInputs(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().NestedInputs(rctx, fc.Args["input"].([][]*OuterInput)) }) @@ -9896,7 +9896,7 @@ func (ec *executionContext) _Query_nestedOutputs(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().NestedOutputs(rctx) }) @@ -9938,7 +9938,7 @@ func (ec *executionContext) _Query_modelMethods(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().ModelMethods(rctx) }) @@ -9984,7 +9984,7 @@ func (ec *executionContext) _Query_user(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().User(rctx, fc.Args["id"].(int)) }) @@ -10048,7 +10048,7 @@ func (ec *executionContext) _Query_nullableArg(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().NullableArg(rctx, fc.Args["arg"].(*int)) }) @@ -10097,7 +10097,7 @@ func (ec *executionContext) _Query_inputSlice(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().InputSlice(rctx, fc.Args["arg"].([]string)) }) @@ -10149,7 +10149,7 @@ func (ec *executionContext) _Query_inputNullableSlice(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().InputNullableSlice(rctx, fc.Args["arg"].([]string)) }) @@ -10201,7 +10201,7 @@ func (ec *executionContext) _Query_inputOmittable(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().InputOmittable(rctx, fc.Args["arg"].(OmittableInput)) }) @@ -10253,7 +10253,7 @@ func (ec *executionContext) _Query_shapeUnion(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().ShapeUnion(rctx) }) @@ -10294,7 +10294,7 @@ func (ec *executionContext) _Query_autobind(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Autobind(rctx) }) @@ -10344,7 +10344,7 @@ func (ec *executionContext) _Query_deprecatedField(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DeprecatedField(rctx) }) @@ -10385,7 +10385,7 @@ func (ec *executionContext) _Query_overlapping(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Overlapping(rctx) }) @@ -10435,7 +10435,7 @@ func (ec *executionContext) _Query_defaultParameters(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DefaultParameters(rctx, fc.Args["falsyBoolean"].(*bool), fc.Args["truthyBoolean"].(*bool)) }) @@ -10493,7 +10493,7 @@ func (ec *executionContext) _Query_deferSingle(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DeferSingle(rctx) }) @@ -10539,7 +10539,7 @@ func (ec *executionContext) _Query_deferMultiple(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DeferMultiple(rctx) }) @@ -10585,7 +10585,7 @@ func (ec *executionContext) _Query_directiveArg(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveArg(rctx, fc.Args["arg"].(string)) }) @@ -10634,7 +10634,7 @@ func (ec *executionContext) _Query_directiveNullableArg(ctx context.Context, fie ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveNullableArg(rctx, fc.Args["arg"].(*int), fc.Args["arg2"].(*int), fc.Args["arg3"].(*string)) }) @@ -10683,7 +10683,7 @@ func (ec *executionContext) _Query_directiveSingleNullableArg(ctx context.Contex ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveSingleNullableArg(rctx, fc.Args["arg1"].(*string)) }) @@ -10732,7 +10732,7 @@ func (ec *executionContext) _Query_directiveInputNullable(ctx context.Context, f ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveInputNullable(rctx, fc.Args["arg"].(*InputDirectives)) }) @@ -10781,7 +10781,7 @@ func (ec *executionContext) _Query_directiveInput(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveInput(rctx, fc.Args["arg"].(InputDirectives)) }) @@ -10830,7 +10830,7 @@ func (ec *executionContext) _Query_directiveInputType(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveInputType(rctx, fc.Args["arg"].(InnerInput)) }) @@ -10879,13 +10879,13 @@ func (ec *executionContext) _Query_directiveObject(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveObject(rctx) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { location, err := ec.unmarshalNString2string(ctx, "order1_1") if err != nil { var zeroVal *ObjectDirectives @@ -10897,7 +10897,7 @@ func (ec *executionContext) _Query_directiveObject(ctx context.Context, field gr } return ec.directives.Order1(ctx, nil, directive0, location) } - directive2 := func(ctx context.Context) (interface{}, error) { + directive2 := func(ctx context.Context) (any, error) { location, err := ec.unmarshalNString2string(ctx, "order1_2") if err != nil { var zeroVal *ObjectDirectives @@ -10909,7 +10909,7 @@ func (ec *executionContext) _Query_directiveObject(ctx context.Context, field gr } return ec.directives.Order1(ctx, nil, directive1, location) } - directive3 := func(ctx context.Context) (interface{}, error) { + directive3 := func(ctx context.Context) (any, error) { location, err := ec.unmarshalNString2string(ctx, "order2_1") if err != nil { var zeroVal *ObjectDirectives @@ -10921,7 +10921,7 @@ func (ec *executionContext) _Query_directiveObject(ctx context.Context, field gr } return ec.directives.Order2(ctx, nil, directive2, location) } - directive4 := func(ctx context.Context) (interface{}, error) { + directive4 := func(ctx context.Context) (any, error) { location, err := ec.unmarshalNString2string(ctx, "Query_field") if err != nil { var zeroVal *ObjectDirectives @@ -10988,7 +10988,7 @@ func (ec *executionContext) _Query_directiveObjectWithCustomGoModel(ctx context. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveObjectWithCustomGoModel(rctx) }) @@ -11030,13 +11030,13 @@ func (ec *executionContext) _Query_directiveFieldDef(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveFieldDef(rctx, fc.Args["ret"].(string)) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalNInt2int(ctx, 1) if err != nil { var zeroVal string @@ -11114,7 +11114,7 @@ func (ec *executionContext) _Query_directiveField(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveField(rctx) }) @@ -11152,20 +11152,20 @@ func (ec *executionContext) _Query_directiveDouble(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveDouble(rctx) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Directive1 == nil { var zeroVal *string return zeroVal, errors.New("directive directive1 is not implemented") } return ec.directives.Directive1(ctx, nil, directive0) } - directive2 := func(ctx context.Context) (interface{}, error) { + directive2 := func(ctx context.Context) (any, error) { if ec.directives.Directive2 == nil { var zeroVal *string return zeroVal, errors.New("directive directive2 is not implemented") @@ -11219,13 +11219,13 @@ func (ec *executionContext) _Query_directiveUnimplemented(ctx context.Context, f ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DirectiveUnimplemented(rctx) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Unimplemented == nil { var zeroVal *string return zeroVal, errors.New("directive unimplemented is not implemented") @@ -11279,7 +11279,7 @@ func (ec *executionContext) _Query_embeddedCase1(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().EmbeddedCase1(rctx) }) @@ -11321,7 +11321,7 @@ func (ec *executionContext) _Query_embeddedCase2(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().EmbeddedCase2(rctx) }) @@ -11363,7 +11363,7 @@ func (ec *executionContext) _Query_embeddedCase3(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().EmbeddedCase3(rctx) }) @@ -11405,7 +11405,7 @@ func (ec *executionContext) _Query_enumInInput(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().EnumInInput(rctx, fc.Args["input"].(*InputWithEnumValue)) }) @@ -11457,7 +11457,7 @@ func (ec *executionContext) _Query_shapes(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Shapes(rctx) }) @@ -11495,13 +11495,13 @@ func (ec *executionContext) _Query_noShape(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().NoShape(rctx) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.MakeNil == nil { var zeroVal Shape return zeroVal, errors.New("directive makeNil is not implemented") @@ -11555,7 +11555,7 @@ func (ec *executionContext) _Query_node(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Node(rctx) }) @@ -11596,13 +11596,13 @@ func (ec *executionContext) _Query_noShapeTypedNil(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().NoShapeTypedNil(rctx) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.MakeTypedNil == nil { var zeroVal Shape return zeroVal, errors.New("directive makeTypedNil is not implemented") @@ -11656,13 +11656,13 @@ func (ec *executionContext) _Query_animal(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Animal(rctx) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.MakeTypedNil == nil { var zeroVal Animal return zeroVal, errors.New("directive makeTypedNil is not implemented") @@ -11716,7 +11716,7 @@ func (ec *executionContext) _Query_notAnInterface(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().NotAnInterface(rctx) }) @@ -11762,7 +11762,7 @@ func (ec *executionContext) _Query_dog(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Dog(rctx) }) @@ -11808,7 +11808,7 @@ func (ec *executionContext) _Query_issue896a(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Issue896a(rctx) }) @@ -11850,15 +11850,15 @@ func (ec *executionContext) _Query_mapStringInterface(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().MapStringInterface(rctx, fc.Args["in"].(map[string]interface{})) + return ec.resolvers.Query().MapStringInterface(rctx, fc.Args["in"].(map[string]any)) }) if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(map[string]any) fc.Result = res return ec.marshalOMapStringInterfaceType2map(ctx, field.Selections, res) } @@ -11909,7 +11909,7 @@ func (ec *executionContext) _Query_mapNestedStringInterface(ctx context.Context, ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().MapNestedStringInterface(rctx, fc.Args["in"].(*NestedMapInput)) }) @@ -11917,7 +11917,7 @@ func (ec *executionContext) _Query_mapNestedStringInterface(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(map[string]any) fc.Result = res return ec.marshalOMapStringInterfaceType2map(ctx, field.Selections, res) } @@ -11968,7 +11968,7 @@ func (ec *executionContext) _Query_errorBubble(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().ErrorBubble(rctx) }) @@ -12016,7 +12016,7 @@ func (ec *executionContext) _Query_errorBubbleList(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().ErrorBubbleList(rctx) }) @@ -12064,7 +12064,7 @@ func (ec *executionContext) _Query_errorList(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().ErrorList(rctx) }) @@ -12112,7 +12112,7 @@ func (ec *executionContext) _Query_errors(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Errors(rctx) }) @@ -12162,7 +12162,7 @@ func (ec *executionContext) _Query_valid(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Valid(rctx) }) @@ -12203,7 +12203,7 @@ func (ec *executionContext) _Query_invalid(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Invalid(rctx) }) @@ -12244,7 +12244,7 @@ func (ec *executionContext) _Query_panics(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Panics(rctx) }) @@ -12290,7 +12290,7 @@ func (ec *executionContext) _Query_primitiveObject(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().PrimitiveObject(rctx) }) @@ -12337,7 +12337,7 @@ func (ec *executionContext) _Query_primitiveStringObject(ctx context.Context, fi ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().PrimitiveStringObject(rctx) }) @@ -12386,7 +12386,7 @@ func (ec *executionContext) _Query_ptrToAnyContainer(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().PtrToAnyContainer(rctx) }) @@ -12433,7 +12433,7 @@ func (ec *executionContext) _Query_ptrToSliceContainer(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().PtrToSliceContainer(rctx) }) @@ -12478,7 +12478,7 @@ func (ec *executionContext) _Query_infinity(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Infinity(rctx) }) @@ -12519,7 +12519,7 @@ func (ec *executionContext) _Query_stringFromContextInterface(ctx context.Contex ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().StringFromContextInterface(rctx) }) @@ -12560,7 +12560,7 @@ func (ec *executionContext) _Query_stringFromContextFunction(ctx context.Context ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().StringFromContextFunction(rctx) }) @@ -12601,7 +12601,7 @@ func (ec *executionContext) _Query_defaultScalar(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().DefaultScalar(rctx, fc.Args["arg"].(string)) }) @@ -12653,7 +12653,7 @@ func (ec *executionContext) _Query_slices(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Slices(rctx) }) @@ -12701,7 +12701,7 @@ func (ec *executionContext) _Query_scalarSlice(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().ScalarSlice(rctx) }) @@ -12742,7 +12742,7 @@ func (ec *executionContext) _Query_fallback(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Fallback(rctx, fc.Args["arg"].(FallbackToStringEncoding)) }) @@ -12794,7 +12794,7 @@ func (ec *executionContext) _Query_optionalUnion(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().OptionalUnion(rctx) }) @@ -12832,7 +12832,7 @@ func (ec *executionContext) _Query_vOkCaseValue(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().VOkCaseValue(rctx) }) @@ -12874,7 +12874,7 @@ func (ec *executionContext) _Query_vOkCaseNil(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().VOkCaseNil(rctx) }) @@ -12916,7 +12916,7 @@ func (ec *executionContext) _Query_validType(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().ValidType(rctx) }) @@ -12964,7 +12964,7 @@ func (ec *executionContext) _Query_variadicModel(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().VariadicModel(rctx) }) @@ -13006,7 +13006,7 @@ func (ec *executionContext) _Query_wrappedStruct(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().WrappedStruct(rctx) }) @@ -13053,7 +13053,7 @@ func (ec *executionContext) _Query_wrappedScalar(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().WrappedScalar(rctx) }) @@ -13094,7 +13094,7 @@ func (ec *executionContext) _Query_wrappedMap(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().WrappedMap(rctx) }) @@ -13139,7 +13139,7 @@ func (ec *executionContext) _Query_wrappedSlice(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().WrappedSlice(rctx) }) @@ -13184,7 +13184,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -13255,7 +13255,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -13307,7 +13307,7 @@ func (ec *executionContext) _Rectangle_length(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Length, nil }) @@ -13345,7 +13345,7 @@ func (ec *executionContext) _Rectangle_width(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Width, nil }) @@ -13383,7 +13383,7 @@ func (ec *executionContext) _Rectangle_area(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Area(), nil }) @@ -13421,7 +13421,7 @@ func (ec *executionContext) _Rectangle_coordinates(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Coordinates, nil }) @@ -13465,7 +13465,7 @@ func (ec *executionContext) _Size_height(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Height, nil }) @@ -13506,7 +13506,7 @@ func (ec *executionContext) _Size_weight(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Weight, nil }) @@ -13547,7 +13547,7 @@ func (ec *executionContext) _Slices_test1(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Test1, nil }) @@ -13585,7 +13585,7 @@ func (ec *executionContext) _Slices_test2(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Test2, nil }) @@ -13623,7 +13623,7 @@ func (ec *executionContext) _Slices_test3(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Test3, nil }) @@ -13664,7 +13664,7 @@ func (ec *executionContext) _Slices_test4(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Test4, nil }) @@ -13705,7 +13705,7 @@ func (ec *executionContext) _Subscription_updated(ctx context.Context, field gra ret = nil } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().Updated(rctx) }) @@ -13760,7 +13760,7 @@ func (ec *executionContext) _Subscription_initPayload(ctx context.Context, field ret = nil } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().InitPayload(rctx) }) @@ -13815,7 +13815,7 @@ func (ec *executionContext) _Subscription_directiveArg(ctx context.Context, fiel ret = nil } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().DirectiveArg(rctx, fc.Args["arg"].(string)) }) @@ -13878,7 +13878,7 @@ func (ec *executionContext) _Subscription_directiveNullableArg(ctx context.Conte ret = nil } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().DirectiveNullableArg(rctx, fc.Args["arg"].(*int), fc.Args["arg2"].(*int), fc.Args["arg3"].(*string)) }) @@ -13941,20 +13941,20 @@ func (ec *executionContext) _Subscription_directiveDouble(ctx context.Context, f ret = nil } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().DirectiveDouble(rctx) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Directive1 == nil { var zeroVal *string return zeroVal, errors.New("directive directive1 is not implemented") } return ec.directives.Directive1(ctx, nil, directive0) } - directive2 := func(ctx context.Context) (interface{}, error) { + directive2 := func(ctx context.Context) (any, error) { if ec.directives.Directive2 == nil { var zeroVal *string return zeroVal, errors.New("directive directive2 is not implemented") @@ -14022,13 +14022,13 @@ func (ec *executionContext) _Subscription_directiveUnimplemented(ctx context.Con ret = nil } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().DirectiveUnimplemented(rctx) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Unimplemented == nil { var zeroVal *string return zeroVal, errors.New("directive unimplemented is not implemented") @@ -14096,7 +14096,7 @@ func (ec *executionContext) _Subscription_issue896b(ctx context.Context, field g ret = nil } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().Issue896b(rctx) }) @@ -14152,7 +14152,7 @@ func (ec *executionContext) _Subscription_errorRequired(ctx context.Context, fie ret = nil } }() - resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, nil, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().ErrorRequired(rctx) }) @@ -14217,7 +14217,7 @@ func (ec *executionContext) _User_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -14258,7 +14258,7 @@ func (ec *executionContext) _User_friends(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.User().Friends(rctx, obj) }) @@ -14311,7 +14311,7 @@ func (ec *executionContext) _User_created(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Created, nil }) @@ -14352,7 +14352,7 @@ func (ec *executionContext) _User_updated(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Updated, nil }) @@ -14390,7 +14390,7 @@ func (ec *executionContext) _User_pets(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.User().Pets(rctx, obj, fc.Args["limit"].(*int)) }) @@ -14445,7 +14445,7 @@ func (ec *executionContext) _VOkCaseNil_value(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children v, ok := obj.Value() if !ok { @@ -14487,7 +14487,7 @@ func (ec *executionContext) _VOkCaseValue_value(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children v, ok := obj.Value() if !ok { @@ -14529,7 +14529,7 @@ func (ec *executionContext) _ValidType_differentCase(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DifferentCase, nil }) @@ -14570,7 +14570,7 @@ func (ec *executionContext) _ValidType_different_case(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DifferentCaseOld, nil }) @@ -14611,7 +14611,7 @@ func (ec *executionContext) _ValidType_validInputKeywords(ctx context.Context, f ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ValidInputKeywords, nil }) @@ -14663,7 +14663,7 @@ func (ec *executionContext) _ValidType_validArgs(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ValidArgs, nil }) @@ -14715,7 +14715,7 @@ func (ec *executionContext) _VariadicModel_value(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Value(ctx, fc.Args["rank"].(int)) }) @@ -14764,7 +14764,7 @@ func (ec *executionContext) _WrappedMap_get(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.WrappedMap().Get(rctx, obj, fc.Args["key"].(string)) }) @@ -14816,7 +14816,7 @@ func (ec *executionContext) _WrappedSlice_get(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.WrappedSlice().Get(rctx, obj, fc.Args["idx"].(int)) }) @@ -14868,7 +14868,7 @@ func (ec *executionContext) _WrappedStruct_name(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -14909,7 +14909,7 @@ func (ec *executionContext) _WrappedStruct_desc(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Desc, nil }) @@ -14947,7 +14947,7 @@ func (ec *executionContext) _XXIt_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -14988,7 +14988,7 @@ func (ec *executionContext) _XxIt_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -15029,7 +15029,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -15070,7 +15070,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -15108,7 +15108,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -15149,7 +15149,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -15200,7 +15200,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -15241,7 +15241,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -15282,7 +15282,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -15320,7 +15320,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -15361,7 +15361,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -15399,7 +15399,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -15440,7 +15440,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -15478,7 +15478,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -15529,7 +15529,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -15592,7 +15592,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -15633,7 +15633,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -15671,7 +15671,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -15712,7 +15712,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -15750,7 +15750,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -15813,7 +15813,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -15851,7 +15851,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -15889,7 +15889,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -15952,7 +15952,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -16015,7 +16015,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -16075,7 +16075,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -16135,7 +16135,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -16188,7 +16188,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -16229,7 +16229,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -16267,7 +16267,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -16305,7 +16305,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -16368,7 +16368,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -16428,7 +16428,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -16488,7 +16488,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -16547,7 +16547,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -16595,7 +16595,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -16655,7 +16655,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -16693,7 +16693,7 @@ func (ec *executionContext) _asdfIt_id(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -16734,7 +16734,7 @@ func (ec *executionContext) _iIt_id(ctx context.Context, field graphql.Collected ret = graphql.Null } }() - resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { + resTmp := ec._fieldMiddleware(ctx, obj, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -16767,10 +16767,10 @@ func (ec *executionContext) fieldContext_iIt_id(_ context.Context, field graphql // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputChanges(ctx context.Context, obj interface{}) (map[string]interface{}, error) { - it := make(map[string]interface{}, len(obj.(map[string]interface{}))) - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { +func (ec *executionContext) unmarshalInputChanges(ctx context.Context, obj any) (map[string]any, error) { + it := make(map[string]any, len(obj.(map[string]any))) + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -16801,10 +16801,10 @@ func (ec *executionContext) unmarshalInputChanges(ctx context.Context, obj inter return it, nil } -func (ec *executionContext) unmarshalInputDefaultInput(ctx context.Context, obj interface{}) (DefaultInput, error) { +func (ec *executionContext) unmarshalInputDefaultInput(ctx context.Context, obj any) (DefaultInput, error) { var it DefaultInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -16842,10 +16842,10 @@ func (ec *executionContext) unmarshalInputDefaultInput(ctx context.Context, obj return it, nil } -func (ec *executionContext) unmarshalInputFieldsOrderInput(ctx context.Context, obj interface{}) (FieldsOrderInput, error) { +func (ec *executionContext) unmarshalInputFieldsOrderInput(ctx context.Context, obj any) (FieldsOrderInput, error) { var it FieldsOrderInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -16878,10 +16878,10 @@ func (ec *executionContext) unmarshalInputFieldsOrderInput(ctx context.Context, return it, nil } -func (ec *executionContext) unmarshalInputInnerDirectives(ctx context.Context, obj interface{}) (InnerDirectives, error) { +func (ec *executionContext) unmarshalInputInnerDirectives(ctx context.Context, obj any) (InnerDirectives, error) { var it InnerDirectives - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -16894,9 +16894,9 @@ func (ec *executionContext) unmarshalInputInnerDirectives(ctx context.Context, o switch k { case "message": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("message")) - directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, v) } + directive0 := func(ctx context.Context) (any, error) { return ec.unmarshalNString2string(ctx, v) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalNInt2int(ctx, 1) if err != nil { var zeroVal string @@ -16930,10 +16930,10 @@ func (ec *executionContext) unmarshalInputInnerDirectives(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputInnerInput(ctx context.Context, obj interface{}) (InnerInput, error) { +func (ec *executionContext) unmarshalInputInnerInput(ctx context.Context, obj any) (InnerInput, error) { var it InnerInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -16957,10 +16957,10 @@ func (ec *executionContext) unmarshalInputInnerInput(ctx context.Context, obj in return it, nil } -func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, obj interface{}) (InputDirectives, error) { +func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, obj any) (InputDirectives, error) { var it InputDirectives - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -16973,16 +16973,16 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o switch k { case "text": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) - directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalNString2string(ctx, v) } + directive0 := func(ctx context.Context) (any, error) { return ec.unmarshalNString2string(ctx, v) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Directive3 == nil { var zeroVal string return zeroVal, errors.New("directive directive3 is not implemented") } return ec.directives.Directive3(ctx, obj, directive0) } - directive2 := func(ctx context.Context) (interface{}, error) { + directive2 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalNInt2int(ctx, 0) if err != nil { var zeroVal string @@ -17017,16 +17017,16 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o } case "nullableText": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nullableText")) - directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(ctx, v) } + directive0 := func(ctx context.Context) (any, error) { return ec.unmarshalOString2ᚖstring(ctx, v) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Directive3 == nil { var zeroVal *string return zeroVal, errors.New("directive directive3 is not implemented") } return ec.directives.Directive3(ctx, obj, directive0) } - directive2 := func(ctx context.Context) (interface{}, error) { + directive2 := func(ctx context.Context) (any, error) { if ec.directives.ToNull == nil { var zeroVal *string return zeroVal, errors.New("directive toNull is not implemented") @@ -17048,11 +17048,11 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o } case "inner": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inner")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { return ec.unmarshalNInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerDirectives(ctx, v) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Directive3 == nil { var zeroVal *InnerDirectives return zeroVal, errors.New("directive directive3 is not implemented") @@ -17074,11 +17074,11 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o } case "innerNullable": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("innerNullable")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { return ec.unmarshalOInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerDirectives(ctx, v) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Directive3 == nil { var zeroVal *InnerDirectives return zeroVal, errors.New("directive directive3 is not implemented") @@ -17100,18 +17100,18 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o } case "thirdParty": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("thirdParty")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { return ec.unmarshalOThirdParty2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐThirdParty(ctx, v) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { if ec.directives.Directive3 == nil { var zeroVal *ThirdParty return zeroVal, errors.New("directive directive3 is not implemented") } return ec.directives.Directive3(ctx, obj, directive0) } - directive2 := func(ctx context.Context) (interface{}, error) { + directive2 := func(ctx context.Context) (any, error) { min, err := ec.unmarshalNInt2int(ctx, 0) if err != nil { var zeroVal *ThirdParty @@ -17147,10 +17147,10 @@ func (ec *executionContext) unmarshalInputInputDirectives(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputInputWithEnumValue(ctx context.Context, obj interface{}) (InputWithEnumValue, error) { +func (ec *executionContext) unmarshalInputInputWithEnumValue(ctx context.Context, obj any) (InputWithEnumValue, error) { var it InputWithEnumValue - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -17174,10 +17174,10 @@ func (ec *executionContext) unmarshalInputInputWithEnumValue(ctx context.Context return it, nil } -func (ec *executionContext) unmarshalInputMapNestedInput(ctx context.Context, obj interface{}) (MapNested, error) { +func (ec *executionContext) unmarshalInputMapNestedInput(ctx context.Context, obj any) (MapNested, error) { var it MapNested - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -17201,10 +17201,10 @@ func (ec *executionContext) unmarshalInputMapNestedInput(ctx context.Context, ob return it, nil } -func (ec *executionContext) unmarshalInputMapStringInterfaceInput(ctx context.Context, obj interface{}) (map[string]interface{}, error) { - it := make(map[string]interface{}, len(obj.(map[string]interface{}))) - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { +func (ec *executionContext) unmarshalInputMapStringInterfaceInput(ctx context.Context, obj any) (map[string]any, error) { + it := make(map[string]any, len(obj.(map[string]any))) + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -17249,10 +17249,10 @@ func (ec *executionContext) unmarshalInputMapStringInterfaceInput(ctx context.Co return it, nil } -func (ec *executionContext) unmarshalInputNestedInput(ctx context.Context, obj interface{}) (NestedInput, error) { +func (ec *executionContext) unmarshalInputNestedInput(ctx context.Context, obj any) (NestedInput, error) { var it NestedInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -17276,10 +17276,10 @@ func (ec *executionContext) unmarshalInputNestedInput(ctx context.Context, obj i return it, nil } -func (ec *executionContext) unmarshalInputNestedMapInput(ctx context.Context, obj interface{}) (NestedMapInput, error) { +func (ec *executionContext) unmarshalInputNestedMapInput(ctx context.Context, obj any) (NestedMapInput, error) { var it NestedMapInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -17303,10 +17303,10 @@ func (ec *executionContext) unmarshalInputNestedMapInput(ctx context.Context, ob return it, nil } -func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, obj interface{}) (OmittableInput, error) { +func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, obj any) (OmittableInput, error) { var it OmittableInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -17379,10 +17379,10 @@ func (ec *executionContext) unmarshalInputOmittableInput(ctx context.Context, ob return it, nil } -func (ec *executionContext) unmarshalInputOuterInput(ctx context.Context, obj interface{}) (OuterInput, error) { +func (ec *executionContext) unmarshalInputOuterInput(ctx context.Context, obj any) (OuterInput, error) { var it OuterInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -17406,10 +17406,10 @@ func (ec *executionContext) unmarshalInputOuterInput(ctx context.Context, obj in return it, nil } -func (ec *executionContext) unmarshalInputRecursiveInputSlice(ctx context.Context, obj interface{}) (RecursiveInputSlice, error) { +func (ec *executionContext) unmarshalInputRecursiveInputSlice(ctx context.Context, obj any) (RecursiveInputSlice, error) { var it RecursiveInputSlice - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -17433,10 +17433,10 @@ func (ec *executionContext) unmarshalInputRecursiveInputSlice(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputSpecialInput(ctx context.Context, obj interface{}) (SpecialInput, error) { +func (ec *executionContext) unmarshalInputSpecialInput(ctx context.Context, obj any) (SpecialInput, error) { var it SpecialInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -17460,10 +17460,10 @@ func (ec *executionContext) unmarshalInputSpecialInput(ctx context.Context, obj return it, nil } -func (ec *executionContext) unmarshalInputUpdatePtrToPtrInner(ctx context.Context, obj interface{}) (UpdatePtrToPtrInner, error) { +func (ec *executionContext) unmarshalInputUpdatePtrToPtrInner(ctx context.Context, obj any) (UpdatePtrToPtrInner, error) { var it UpdatePtrToPtrInner - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -17494,10 +17494,10 @@ func (ec *executionContext) unmarshalInputUpdatePtrToPtrInner(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputUpdatePtrToPtrOuter(ctx context.Context, obj interface{}) (UpdatePtrToPtrOuter, error) { +func (ec *executionContext) unmarshalInputUpdatePtrToPtrOuter(ctx context.Context, obj any) (UpdatePtrToPtrOuter, error) { var it UpdatePtrToPtrOuter - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -17535,10 +17535,10 @@ func (ec *executionContext) unmarshalInputUpdatePtrToPtrOuter(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj interface{}) (ValidInput, error) { +func (ec *executionContext) unmarshalInputValidInput(ctx context.Context, obj any) (ValidInput, error) { var it ValidInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -19578,7 +19578,7 @@ func (ec *executionContext) _MapNested(ctx context.Context, sel ast.SelectionSet var mapStringInterfaceTypeImplementors = []string{"MapStringInterfaceType"} -func (ec *executionContext) _MapStringInterfaceType(ctx context.Context, sel ast.SelectionSet, obj map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) _MapStringInterfaceType(ctx context.Context, sel ast.SelectionSet, obj map[string]any) graphql.Marshaler { fields := graphql.CollectFields(ec.OperationContext, sel, mapStringInterfaceTypeImplementors) out := graphql.NewFieldSet(fields) @@ -23206,7 +23206,7 @@ func (ec *executionContext) _iIt(ctx context.Context, sel ast.SelectionSet, obj // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23221,7 +23221,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNBytes2ᚕbyte(ctx context.Context, v interface{}) ([]byte, error) { +func (ec *executionContext) unmarshalNBytes2ᚕbyte(ctx context.Context, v any) ([]byte, error) { res, err := UnmarshalBytes(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23252,7 +23252,7 @@ func (ec *executionContext) marshalNCheckIssue8962ᚖgithubᚗcomᚋ99designsᚋ return ec._CheckIssue896(ctx, sel, v) } -func (ec *executionContext) unmarshalNCustomScalar2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCustomScalar(ctx context.Context, v interface{}) (CustomScalar, error) { +func (ec *executionContext) unmarshalNCustomScalar2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCustomScalar(ctx context.Context, v any) (CustomScalar, error) { var res CustomScalar err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -23262,7 +23262,7 @@ func (ec *executionContext) marshalNCustomScalar2githubᚗcomᚋ99designsᚋgqlg return v } -func (ec *executionContext) unmarshalNDefaultInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDefaultInput(ctx context.Context, v interface{}) (DefaultInput, error) { +func (ec *executionContext) unmarshalNDefaultInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐDefaultInput(ctx context.Context, v any) (DefaultInput, error) { res, err := ec.unmarshalInputDefaultInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23281,7 +23281,7 @@ func (ec *executionContext) marshalNDefaultParametersMirror2ᚖgithubᚗcomᚋ99 return ec._DefaultParametersMirror(ctx, sel, v) } -func (ec *executionContext) unmarshalNDefaultScalarImplementation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNDefaultScalarImplementation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23306,7 +23306,7 @@ func (ec *executionContext) marshalNDeferModel2ᚖgithubᚗcomᚋ99designsᚋgql return ec._DeferModel(ctx, sel, v) } -func (ec *executionContext) unmarshalNEmail2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmail(ctx context.Context, v interface{}) (Email, error) { +func (ec *executionContext) unmarshalNEmail2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEmail(ctx context.Context, v any) (Email, error) { var res Email err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -23316,7 +23316,7 @@ func (ec *executionContext) marshalNEmail2githubᚗcomᚋ99designsᚋgqlgenᚋco return v } -func (ec *executionContext) unmarshalNEnumTest2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEnumTest(ctx context.Context, v interface{}) (EnumTest, error) { +func (ec *executionContext) unmarshalNEnumTest2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐEnumTest(ctx context.Context, v any) (EnumTest, error) { var res EnumTest err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -23340,7 +23340,7 @@ func (ec *executionContext) marshalNError2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Error(ctx, sel, v) } -func (ec *executionContext) unmarshalNFallbackToStringEncoding2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐFallbackToStringEncoding(ctx context.Context, v interface{}) (FallbackToStringEncoding, error) { +func (ec *executionContext) unmarshalNFallbackToStringEncoding2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐFallbackToStringEncoding(ctx context.Context, v any) (FallbackToStringEncoding, error) { tmp, err := graphql.UnmarshalString(v) res := FallbackToStringEncoding(tmp) return res, graphql.ErrorOnPath(ctx, err) @@ -23356,7 +23356,7 @@ func (ec *executionContext) marshalNFallbackToStringEncoding2githubᚗcomᚋ99de return res } -func (ec *executionContext) unmarshalNFieldsOrderInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐFieldsOrderInput(ctx context.Context, v interface{}) (FieldsOrderInput, error) { +func (ec *executionContext) unmarshalNFieldsOrderInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐFieldsOrderInput(ctx context.Context, v any) (FieldsOrderInput, error) { res, err := ec.unmarshalInputFieldsOrderInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23375,7 +23375,7 @@ func (ec *executionContext) marshalNFieldsOrderPayload2ᚖgithubᚗcomᚋ99desig return ec._FieldsOrderPayload(ctx, sel, v) } -func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v interface{}) (float64, error) { +func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v any) (float64, error) { res, err := graphql.UnmarshalFloatContext(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23390,7 +23390,7 @@ func (ec *executionContext) marshalNFloat2float64(ctx context.Context, sel ast.S return graphql.WrapContextMarshaler(ctx, res) } -func (ec *executionContext) unmarshalNID2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalNID2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalIntID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23405,7 +23405,7 @@ func (ec *executionContext) marshalNID2int(ctx context.Context, sel ast.Selectio return res } -func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNID2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23420,17 +23420,17 @@ func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalNInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerDirectives(ctx context.Context, v interface{}) (*InnerDirectives, error) { +func (ec *executionContext) unmarshalNInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerDirectives(ctx context.Context, v any) (*InnerDirectives, error) { res, err := ec.unmarshalInputInnerDirectives(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNInnerInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerInput(ctx context.Context, v interface{}) (InnerInput, error) { +func (ec *executionContext) unmarshalNInnerInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerInput(ctx context.Context, v any) (InnerInput, error) { res, err := ec.unmarshalInputInnerInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNInnerInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerInput(ctx context.Context, v interface{}) (*InnerInput, error) { +func (ec *executionContext) unmarshalNInnerInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerInput(ctx context.Context, v any) (*InnerInput, error) { res, err := ec.unmarshalInputInnerInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -23445,12 +23445,12 @@ func (ec *executionContext) marshalNInnerObject2ᚖgithubᚗcomᚋ99designsᚋgq return ec._InnerObject(ctx, sel, v) } -func (ec *executionContext) unmarshalNInputDirectives2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInputDirectives(ctx context.Context, v interface{}) (InputDirectives, error) { +func (ec *executionContext) unmarshalNInputDirectives2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInputDirectives(ctx context.Context, v any) (InputDirectives, error) { res, err := ec.unmarshalInputInputDirectives(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23465,7 +23465,7 @@ func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.Selecti return res } -func (ec *executionContext) unmarshalNInt2int32(ctx context.Context, v interface{}) (int32, error) { +func (ec *executionContext) unmarshalNInt2int32(ctx context.Context, v any) (int32, error) { res, err := graphql.UnmarshalInt32(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23480,7 +23480,7 @@ func (ec *executionContext) marshalNInt2int32(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalNInt2int64(ctx context.Context, v interface{}) (int64, error) { +func (ec *executionContext) unmarshalNInt2int64(ctx context.Context, v any) (int64, error) { res, err := graphql.UnmarshalInt64(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23515,7 +23515,7 @@ func (ec *executionContext) marshalNLoopB2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._LoopB(ctx, sel, v) } -func (ec *executionContext) unmarshalNMarshalPanic2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanic(ctx context.Context, v interface{}) (MarshalPanic, error) { +func (ec *executionContext) unmarshalNMarshalPanic2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanic(ctx context.Context, v any) (MarshalPanic, error) { var res MarshalPanic err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -23525,8 +23525,8 @@ func (ec *executionContext) marshalNMarshalPanic2githubᚗcomᚋ99designsᚋgqlg return v } -func (ec *executionContext) unmarshalNMarshalPanic2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanicᚄ(ctx context.Context, v interface{}) ([]MarshalPanic, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNMarshalPanic2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMarshalPanicᚄ(ctx context.Context, v any) ([]MarshalPanic, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -23557,7 +23557,7 @@ func (ec *executionContext) marshalNMarshalPanic2ᚕgithubᚗcomᚋ99designsᚋg return ret } -func (ec *executionContext) unmarshalNNestedInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNestedInput(ctx context.Context, v interface{}) (*NestedInput, error) { +func (ec *executionContext) unmarshalNNestedInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNestedInput(ctx context.Context, v any) (*NestedInput, error) { res, err := ec.unmarshalInputNestedInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -23572,7 +23572,7 @@ func (ec *executionContext) marshalNNode2githubᚗcomᚋ99designsᚋgqlgenᚋcod return ec._Node(ctx, sel, v) } -func (ec *executionContext) unmarshalNOmittableInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOmittableInput(ctx context.Context, v interface{}) (OmittableInput, error) { +func (ec *executionContext) unmarshalNOmittableInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOmittableInput(ctx context.Context, v any) (OmittableInput, error) { res, err := ec.unmarshalInputOmittableInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23725,7 +23725,7 @@ func (ec *executionContext) marshalNPtrToSliceContainer2ᚖgithubᚗcomᚋ99desi return ec._PtrToSliceContainer(ctx, sel, v) } -func (ec *executionContext) unmarshalNRecursiveInputSlice2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSlice(ctx context.Context, v interface{}) (RecursiveInputSlice, error) { +func (ec *executionContext) unmarshalNRecursiveInputSlice2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSlice(ctx context.Context, v any) (RecursiveInputSlice, error) { res, err := ec.unmarshalInputRecursiveInputSlice(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23750,12 +23750,12 @@ func (ec *executionContext) marshalNSize2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ return ec._Size(ctx, sel, v) } -func (ec *executionContext) unmarshalNSpecialInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐSpecialInput(ctx context.Context, v interface{}) (SpecialInput, error) { +func (ec *executionContext) unmarshalNSpecialInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐSpecialInput(ctx context.Context, v any) (SpecialInput, error) { res, err := ec.unmarshalInputSpecialInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23770,8 +23770,8 @@ func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -23802,8 +23802,8 @@ func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalNString2ᚕᚖstring(ctx context.Context, v interface{}) ([]*string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNString2ᚕᚖstring(ctx context.Context, v any) ([]*string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -23828,7 +23828,7 @@ func (ec *executionContext) marshalNString2ᚕᚖstring(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalNString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalNString2ᚖstring(ctx context.Context, v any) (*string, error) { res, err := graphql.UnmarshalString(v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -23849,7 +23849,7 @@ func (ec *executionContext) marshalNString2ᚖstring(ctx context.Context, sel as return res } -func (ec *executionContext) unmarshalNStringFromContextFunction2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNStringFromContextFunction2string(ctx context.Context, v any) (string, error) { res, err := UnmarshalStringFromContextFunction(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23864,7 +23864,7 @@ func (ec *executionContext) marshalNStringFromContextFunction2string(ctx context return graphql.WrapContextMarshaler(ctx, res) } -func (ec *executionContext) unmarshalNStringFromContextInterface2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStringFromContextInterface(ctx context.Context, v interface{}) (StringFromContextInterface, error) { +func (ec *executionContext) unmarshalNStringFromContextInterface2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStringFromContextInterface(ctx context.Context, v any) (StringFromContextInterface, error) { var res StringFromContextInterface err := res.UnmarshalGQLContext(ctx, v) return res, graphql.ErrorOnPath(ctx, err) @@ -23874,7 +23874,7 @@ func (ec *executionContext) marshalNStringFromContextInterface2githubᚗcomᚋ99 return graphql.WrapContextMarshaler(ctx, v) } -func (ec *executionContext) unmarshalNStringFromContextInterface2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStringFromContextInterface(ctx context.Context, v interface{}) (*StringFromContextInterface, error) { +func (ec *executionContext) unmarshalNStringFromContextInterface2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStringFromContextInterface(ctx context.Context, v any) (*StringFromContextInterface, error) { var res = new(StringFromContextInterface) err := res.UnmarshalGQLContext(ctx, v) return res, graphql.ErrorOnPath(ctx, err) @@ -23890,7 +23890,7 @@ func (ec *executionContext) marshalNStringFromContextInterface2ᚖgithubᚗcom return graphql.WrapContextMarshaler(ctx, v) } -func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) { +func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v any) (time.Time, error) { res, err := graphql.UnmarshalTime(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23905,7 +23905,7 @@ func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel as return res } -func (ec *executionContext) unmarshalNUUID2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNUUID2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23920,7 +23920,7 @@ func (ec *executionContext) marshalNUUID2string(ctx context.Context, sel ast.Sel return res } -func (ec *executionContext) unmarshalNUpdatePtrToPtrOuter2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrOuter(ctx context.Context, v interface{}) (UpdatePtrToPtrOuter, error) { +func (ec *executionContext) unmarshalNUpdatePtrToPtrOuter2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrOuter(ctx context.Context, v any) (UpdatePtrToPtrOuter, error) { res, err := ec.unmarshalInputUpdatePtrToPtrOuter(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23993,7 +23993,7 @@ func (ec *executionContext) marshalNWrappedMap2githubᚗcomᚋ99designsᚋgqlgen return ec._WrappedMap(ctx, sel, v) } -func (ec *executionContext) unmarshalNWrappedScalar2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋotherpkgᚐScalar(ctx context.Context, v interface{}) (otherpkg.Scalar, error) { +func (ec *executionContext) unmarshalNWrappedScalar2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋotherpkgᚐScalar(ctx context.Context, v any) (otherpkg.Scalar, error) { tmp, err := graphql.UnmarshalString(v) res := otherpkg.Scalar(tmp) return res, graphql.ErrorOnPath(ctx, err) @@ -24081,7 +24081,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -24096,8 +24096,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -24271,7 +24271,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -24293,7 +24293,7 @@ func (ec *executionContext) marshalOAnimal2githubᚗcomᚋ99designsᚋgqlgenᚋc return ec._Animal(ctx, sel, v) } -func (ec *executionContext) unmarshalOAny2interface(ctx context.Context, v interface{}) (any, error) { +func (ec *executionContext) unmarshalOAny2interface(ctx context.Context, v any) (any, error) { if v == nil { return nil, nil } @@ -24309,7 +24309,7 @@ func (ec *executionContext) marshalOAny2interface(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOAny2ᚖinterface(ctx context.Context, v interface{}) (*any, error) { +func (ec *executionContext) unmarshalOAny2ᚖinterface(ctx context.Context, v any) (*any, error) { if v == nil { return nil, nil } @@ -24335,7 +24335,7 @@ func (ec *executionContext) marshalOBackedByInterface2githubᚗcomᚋ99designs return ec._BackedByInterface(ctx, sel, v) } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -24345,7 +24345,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -24361,7 +24361,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalOChanges2map(ctx context.Context, v any) (map[string]any, error) { if v == nil { return nil, nil } @@ -24475,7 +24475,7 @@ func (ec *executionContext) marshalOCoordinates2githubᚗcomᚋ99designsᚋgqlge return ec._Coordinates(ctx, sel, &v) } -func (ec *executionContext) unmarshalOCustomScalar2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCustomScalar(ctx context.Context, v interface{}) (*CustomScalar, error) { +func (ec *executionContext) unmarshalOCustomScalar2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐCustomScalar(ctx context.Context, v any) (*CustomScalar, error) { if v == nil { return nil, nil } @@ -24491,7 +24491,7 @@ func (ec *executionContext) marshalOCustomScalar2ᚖgithubᚗcomᚋ99designsᚋg return v } -func (ec *executionContext) unmarshalODefaultScalarImplementation2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalODefaultScalarImplementation2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } @@ -24691,7 +24691,7 @@ func (ec *executionContext) marshalOErrors2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Errors(ctx, sel, v) } -func (ec *executionContext) unmarshalOFloat2float64(ctx context.Context, v interface{}) (float64, error) { +func (ec *executionContext) unmarshalOFloat2float64(ctx context.Context, v any) (float64, error) { res, err := graphql.UnmarshalFloatContext(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -24701,7 +24701,7 @@ func (ec *executionContext) marshalOFloat2float64(ctx context.Context, sel ast.S return graphql.WrapContextMarshaler(ctx, res) } -func (ec *executionContext) unmarshalOID2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOID2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } @@ -24717,7 +24717,7 @@ func (ec *executionContext) marshalOID2ᚖstring(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerDirectives(ctx context.Context, v interface{}) (*InnerDirectives, error) { +func (ec *executionContext) unmarshalOInnerDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInnerDirectives(ctx context.Context, v any) (*InnerDirectives, error) { if v == nil { return nil, nil } @@ -24725,7 +24725,7 @@ func (ec *executionContext) unmarshalOInnerDirectives2ᚖgithubᚗcomᚋ99design return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOInputDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInputDirectives(ctx context.Context, v interface{}) (*InputDirectives, error) { +func (ec *executionContext) unmarshalOInputDirectives2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInputDirectives(ctx context.Context, v any) (*InputDirectives, error) { if v == nil { return nil, nil } @@ -24733,7 +24733,7 @@ func (ec *executionContext) unmarshalOInputDirectives2ᚖgithubᚗcomᚋ99design return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOInputWithEnumValue2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInputWithEnumValue(ctx context.Context, v interface{}) (*InputWithEnumValue, error) { +func (ec *executionContext) unmarshalOInputWithEnumValue2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐInputWithEnumValue(ctx context.Context, v any) (*InputWithEnumValue, error) { if v == nil { return nil, nil } @@ -24741,7 +24741,7 @@ func (ec *executionContext) unmarshalOInputWithEnumValue2ᚖgithubᚗcomᚋ99des return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { +func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v any) (*int, error) { if v == nil { return nil, nil } @@ -24778,7 +24778,7 @@ func (ec *executionContext) marshalOMapNested2ᚖgithubᚗcomᚋ99designsᚋgqlg return ec._MapNested(ctx, sel, v) } -func (ec *executionContext) unmarshalOMapNestedInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMapNested(ctx context.Context, v interface{}) (*MapNested, error) { +func (ec *executionContext) unmarshalOMapNestedInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐMapNested(ctx context.Context, v any) (*MapNested, error) { if v == nil { return nil, nil } @@ -24786,7 +24786,7 @@ func (ec *executionContext) unmarshalOMapNestedInput2ᚖgithubᚗcomᚋ99designs return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOMapStringInterfaceInput2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalOMapStringInterfaceInput2map(ctx context.Context, v any) (map[string]any, error) { if v == nil { return nil, nil } @@ -24794,7 +24794,7 @@ func (ec *executionContext) unmarshalOMapStringInterfaceInput2map(ctx context.Co return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOMapStringInterfaceType2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalOMapStringInterfaceType2map(ctx context.Context, sel ast.SelectionSet, v map[string]any) graphql.Marshaler { if v == nil { return graphql.Null } @@ -24808,7 +24808,7 @@ func (ec *executionContext) marshalOModelMethods2ᚖgithubᚗcomᚋ99designsᚋg return ec._ModelMethods(ctx, sel, v) } -func (ec *executionContext) unmarshalONestedMapInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNestedMapInput(ctx context.Context, v interface{}) (*NestedMapInput, error) { +func (ec *executionContext) unmarshalONestedMapInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐNestedMapInput(ctx context.Context, v any) (*NestedMapInput, error) { if v == nil { return nil, nil } @@ -24830,11 +24830,11 @@ func (ec *executionContext) marshalOObjectDirectivesWithCustomGoModel2ᚖgithub return ec._ObjectDirectivesWithCustomGoModel(ctx, sel, v) } -func (ec *executionContext) unmarshalOOuterInput2ᚕᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx context.Context, v interface{}) ([][]*OuterInput, error) { +func (ec *executionContext) unmarshalOOuterInput2ᚕᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx context.Context, v any) ([][]*OuterInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -24850,11 +24850,11 @@ func (ec *executionContext) unmarshalOOuterInput2ᚕᚕᚖgithubᚗcomᚋ99desig return res, nil } -func (ec *executionContext) unmarshalOOuterInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx context.Context, v interface{}) ([]*OuterInput, error) { +func (ec *executionContext) unmarshalOOuterInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx context.Context, v any) ([]*OuterInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -24870,7 +24870,7 @@ func (ec *executionContext) unmarshalOOuterInput2ᚕᚖgithubᚗcomᚋ99designs return res, nil } -func (ec *executionContext) unmarshalOOuterInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx context.Context, v interface{}) (*OuterInput, error) { +func (ec *executionContext) unmarshalOOuterInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐOuterInput(ctx context.Context, v any) (*OuterInput, error) { if v == nil { return nil, nil } @@ -25077,11 +25077,11 @@ func (ec *executionContext) marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗ return ec.marshalOPtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐPtrToPtrInner(ctx, sel, *v) } -func (ec *executionContext) unmarshalORecursiveInputSlice2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSliceᚄ(ctx context.Context, v interface{}) ([]RecursiveInputSlice, error) { +func (ec *executionContext) unmarshalORecursiveInputSlice2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSliceᚄ(ctx context.Context, v any) ([]RecursiveInputSlice, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -25097,7 +25097,7 @@ func (ec *executionContext) unmarshalORecursiveInputSlice2ᚕgithubᚗcomᚋ99de return res, nil } -func (ec *executionContext) unmarshalORecursiveInputSlice2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSlice(ctx context.Context, v interface{}) (*RecursiveInputSlice, error) { +func (ec *executionContext) unmarshalORecursiveInputSlice2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐRecursiveInputSlice(ctx context.Context, v any) (*RecursiveInputSlice, error) { if v == nil { return nil, nil } @@ -25160,7 +25160,7 @@ func (ec *executionContext) marshalOSlices2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Slices(ctx, sel, v) } -func (ec *executionContext) unmarshalOStatus2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStatus(ctx context.Context, v interface{}) (*Status, error) { +func (ec *executionContext) unmarshalOStatus2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐStatus(ctx context.Context, v any) (*Status, error) { if v == nil { return nil, nil } @@ -25176,7 +25176,7 @@ func (ec *executionContext) marshalOStatus2ᚖgithubᚗcomᚋ99designsᚋgqlgen return v } -func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalOString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -25186,11 +25186,11 @@ func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { +func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -25224,11 +25224,11 @@ func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalOString2ᚕᚖstring(ctx context.Context, v interface{}) ([]*string, error) { +func (ec *executionContext) unmarshalOString2ᚕᚖstring(ctx context.Context, v any) ([]*string, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -25256,7 +25256,7 @@ func (ec *executionContext) marshalOString2ᚕᚖstring(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } @@ -25272,7 +25272,7 @@ func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel as return res } -func (ec *executionContext) unmarshalOString2ᚖᚕstringᚄ(ctx context.Context, v interface{}) (*[]string, error) { +func (ec *executionContext) unmarshalOString2ᚖᚕstringᚄ(ctx context.Context, v any) (*[]string, error) { if v == nil { return nil, nil } @@ -25291,7 +25291,7 @@ func (ec *executionContext) marshalOTestUnion2githubᚗcomᚋ99designsᚋgqlgen return ec._TestUnion(ctx, sel, v) } -func (ec *executionContext) unmarshalOThirdParty2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐThirdParty(ctx context.Context, v interface{}) (*ThirdParty, error) { +func (ec *executionContext) unmarshalOThirdParty2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐThirdParty(ctx context.Context, v any) (*ThirdParty, error) { if v == nil { return nil, nil } @@ -25307,7 +25307,7 @@ func (ec *executionContext) marshalOThirdParty2ᚖgithubᚗcomᚋ99designsᚋgql return res } -func (ec *executionContext) unmarshalOTime2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) { +func (ec *executionContext) unmarshalOTime2ᚖtimeᚐTime(ctx context.Context, v any) (*time.Time, error) { if v == nil { return nil, nil } @@ -25323,7 +25323,7 @@ func (ec *executionContext) marshalOTime2ᚖtimeᚐTime(ctx context.Context, sel return res } -func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*UpdatePtrToPtrInner, error) { +func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v any) (*UpdatePtrToPtrInner, error) { if v == nil { return nil, nil } @@ -25331,7 +25331,7 @@ func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖgithubᚗcomᚋ99de return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (**UpdatePtrToPtrInner, error) { +func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v any) (**UpdatePtrToPtrInner, error) { var pres *UpdatePtrToPtrInner if v != nil { res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) @@ -25343,7 +25343,7 @@ func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ9 return &pres, nil } -func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (***UpdatePtrToPtrInner, error) { +func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v any) (***UpdatePtrToPtrInner, error) { var pres **UpdatePtrToPtrInner if v != nil { res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) @@ -25355,7 +25355,7 @@ func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖgithubᚗcom return &pres, nil } -func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (****UpdatePtrToPtrInner, error) { +func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v any) (****UpdatePtrToPtrInner, error) { var pres ***UpdatePtrToPtrInner if v != nil { res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) @@ -25367,7 +25367,7 @@ func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖgithubᚗc return &pres, nil } -func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*****UpdatePtrToPtrInner, error) { +func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v any) (*****UpdatePtrToPtrInner, error) { var pres ****UpdatePtrToPtrInner if v != nil { res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) @@ -25379,7 +25379,7 @@ func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖgithub return &pres, nil } -func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (******UpdatePtrToPtrInner, error) { +func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v any) (******UpdatePtrToPtrInner, error) { var pres *****UpdatePtrToPtrInner if v != nil { res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) @@ -25391,7 +25391,7 @@ func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖgith return &pres, nil } -func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (*******UpdatePtrToPtrInner, error) { +func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v any) (*******UpdatePtrToPtrInner, error) { var pres ******UpdatePtrToPtrInner if v != nil { res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) @@ -25403,7 +25403,7 @@ func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖg return &pres, nil } -func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v interface{}) (********UpdatePtrToPtrInner, error) { +func (ec *executionContext) unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx context.Context, v any) (********UpdatePtrToPtrInner, error) { var pres *******UpdatePtrToPtrInner if v != nil { res, err := ec.unmarshalOUpdatePtrToPtrInner2ᚖᚖᚖᚖᚖᚖᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐUpdatePtrToPtrInner(ctx, v) @@ -25429,7 +25429,7 @@ func (ec *executionContext) marshalOVOkCaseValue2ᚖgithubᚗcomᚋ99designsᚋg return ec._VOkCaseValue(ctx, sel, v) } -func (ec *executionContext) unmarshalOValidInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐValidInput(ctx context.Context, v interface{}) (*ValidInput, error) { +func (ec *executionContext) unmarshalOValidInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚐValidInput(ctx context.Context, v any) (*ValidInput, error) { if v == nil { return nil, nil } @@ -25451,7 +25451,7 @@ func (ec *executionContext) marshalOVariadicModel2ᚖgithubᚗcomᚋ99designsᚋ return ec._VariadicModel(ctx, sel, v) } -func (ec *executionContext) unmarshalOWrappedScalar2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋotherpkgᚐScalar(ctx context.Context, v interface{}) (*otherpkg.Scalar, error) { +func (ec *executionContext) unmarshalOWrappedScalar2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋsinglefileᚋotherpkgᚐScalar(ctx context.Context, v any) (*otherpkg.Scalar, error) { if v == nil { return nil, nil } diff --git a/codegen/testserver/singlefile/models-gen.go b/codegen/testserver/singlefile/models-gen.go index 98e10aa26a3..78127c31595 100644 --- a/codegen/testserver/singlefile/models-gen.go +++ b/codegen/testserver/singlefile/models-gen.go @@ -175,7 +175,7 @@ type NestedInput struct { } type NestedMapInput struct { - Map map[string]interface{} `json:"map,omitempty"` + Map map[string]any `json:"map,omitempty"` } type ObjectDirectives struct { @@ -315,7 +315,7 @@ func (e EnumTest) String() string { return string(e) } -func (e *EnumTest) UnmarshalGQL(v interface{}) error { +func (e *EnumTest) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -356,7 +356,7 @@ func (e Status) String() string { return string(e) } -func (e *Status) UnmarshalGQL(v interface{}) error { +func (e *Status) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/codegen/testserver/singlefile/resolver.go b/codegen/testserver/singlefile/resolver.go index 943e04506b0..ddb4e73e784 100644 --- a/codegen/testserver/singlefile/resolver.go +++ b/codegen/testserver/singlefile/resolver.go @@ -123,7 +123,7 @@ func (r *queryResolver) Collision(ctx context.Context) (*introspection1.It, erro } // MapInput is the resolver for the mapInput field. -func (r *queryResolver) MapInput(ctx context.Context, input map[string]interface{}) (*bool, error) { +func (r *queryResolver) MapInput(ctx context.Context, input map[string]any) (*bool, error) { panic("not implemented") } @@ -328,12 +328,12 @@ func (r *queryResolver) Issue896a(ctx context.Context) ([]*CheckIssue896, error) } // MapStringInterface is the resolver for the mapStringInterface field. -func (r *queryResolver) MapStringInterface(ctx context.Context, in map[string]interface{}) (map[string]interface{}, error) { +func (r *queryResolver) MapStringInterface(ctx context.Context, in map[string]any) (map[string]any, error) { panic("not implemented") } // MapNestedStringInterface is the resolver for the mapNestedStringInterface field. -func (r *queryResolver) MapNestedStringInterface(ctx context.Context, in *NestedMapInput) (map[string]interface{}, error) { +func (r *queryResolver) MapNestedStringInterface(ctx context.Context, in *NestedMapInput) (map[string]any, error) { panic("not implemented") } diff --git a/codegen/testserver/singlefile/stub.go b/codegen/testserver/singlefile/stub.go index 89252ba36c3..a812d1b7eec 100644 --- a/codegen/testserver/singlefile/stub.go +++ b/codegen/testserver/singlefile/stub.go @@ -56,7 +56,7 @@ type Stub struct { QueryResolver struct { InvalidIdentifier func(ctx context.Context) (*invalid_packagename.InvalidIdentifier, error) Collision func(ctx context.Context) (*introspection1.It, error) - MapInput func(ctx context.Context, input map[string]interface{}) (*bool, error) + MapInput func(ctx context.Context, input map[string]any) (*bool, error) Recursive func(ctx context.Context, input *RecursiveInputSlice) (*bool, error) NestedInputs func(ctx context.Context, input [][]*OuterInput) (*bool, error) NestedOutputs func(ctx context.Context) ([][]*OuterObject, error) @@ -97,8 +97,8 @@ type Stub struct { NotAnInterface func(ctx context.Context) (BackedByInterface, error) Dog func(ctx context.Context) (*Dog, error) Issue896a func(ctx context.Context) ([]*CheckIssue896, error) - MapStringInterface func(ctx context.Context, in map[string]interface{}) (map[string]interface{}, error) - MapNestedStringInterface func(ctx context.Context, in *NestedMapInput) (map[string]interface{}, error) + MapStringInterface func(ctx context.Context, in map[string]any) (map[string]any, error) + MapNestedStringInterface func(ctx context.Context, in *NestedMapInput) (map[string]any, error) ErrorBubble func(ctx context.Context) (*Error, error) ErrorBubbleList func(ctx context.Context) ([]*Error, error) ErrorList func(ctx context.Context) ([]*Error, error) @@ -307,7 +307,7 @@ func (r *stubQuery) InvalidIdentifier(ctx context.Context) (*invalid_packagename func (r *stubQuery) Collision(ctx context.Context) (*introspection1.It, error) { return r.QueryResolver.Collision(ctx) } -func (r *stubQuery) MapInput(ctx context.Context, input map[string]interface{}) (*bool, error) { +func (r *stubQuery) MapInput(ctx context.Context, input map[string]any) (*bool, error) { return r.QueryResolver.MapInput(ctx, input) } func (r *stubQuery) Recursive(ctx context.Context, input *RecursiveInputSlice) (*bool, error) { @@ -430,10 +430,10 @@ func (r *stubQuery) Dog(ctx context.Context) (*Dog, error) { func (r *stubQuery) Issue896a(ctx context.Context) ([]*CheckIssue896, error) { return r.QueryResolver.Issue896a(ctx) } -func (r *stubQuery) MapStringInterface(ctx context.Context, in map[string]interface{}) (map[string]interface{}, error) { +func (r *stubQuery) MapStringInterface(ctx context.Context, in map[string]any) (map[string]any, error) { return r.QueryResolver.MapStringInterface(ctx, in) } -func (r *stubQuery) MapNestedStringInterface(ctx context.Context, in *NestedMapInput) (map[string]interface{}, error) { +func (r *stubQuery) MapNestedStringInterface(ctx context.Context, in *NestedMapInput) (map[string]any, error) { return r.QueryResolver.MapNestedStringInterface(ctx, in) } func (r *stubQuery) ErrorBubble(ctx context.Context) (*Error, error) { diff --git a/codegen/testserver/usefunctionsyntaxforexecutioncontext/generated.go b/codegen/testserver/usefunctionsyntaxforexecutioncontext/generated.go index c427f290465..a623daeab89 100644 --- a/codegen/testserver/usefunctionsyntaxforexecutioncontext/generated.go +++ b/codegen/testserver/usefunctionsyntaxforexecutioncontext/generated.go @@ -45,7 +45,7 @@ type ResolverRoot interface { } type DirectiveRoot struct { - Log func(ctx context.Context, obj interface{}, next graphql.Resolver, message *string) (res interface{}, err error) + Log func(ctx context.Context, obj any, next graphql.Resolver, message *string) (res any, err error) } type ComplexityRoot struct { @@ -113,7 +113,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -412,9 +412,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func dir_log_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func dir_log_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := dir_log_argsMessage(ctx, ec, rawArgs) if err != nil { return nil, err @@ -425,7 +425,7 @@ func dir_log_args(ctx context.Context, ec *executionContext, rawArgs map[string] func dir_log_argsMessage( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -445,9 +445,9 @@ func dir_log_argsMessage( return zeroVal, nil } -func field_Mutation_createUser_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Mutation_createUser_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Mutation_createUser_argsInput(ctx, ec, rawArgs) if err != nil { return nil, err @@ -458,7 +458,7 @@ func field_Mutation_createUser_args(ctx context.Context, ec *executionContext, r func field_Mutation_createUser_argsInput( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (CreateUserInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -478,9 +478,9 @@ func field_Mutation_createUser_argsInput( return zeroVal, nil } -func field_Mutation_deleteUser_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Mutation_deleteUser_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Mutation_deleteUser_argsID(ctx, ec, rawArgs) if err != nil { return nil, err @@ -491,7 +491,7 @@ func field_Mutation_deleteUser_args(ctx context.Context, ec *executionContext, r func field_Mutation_deleteUser_argsID( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -511,9 +511,9 @@ func field_Mutation_deleteUser_argsID( return zeroVal, nil } -func field_Query___type_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Query___type_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Query___type_argsName(ctx, ec, rawArgs) if err != nil { return nil, err @@ -524,7 +524,7 @@ func field_Query___type_args(ctx context.Context, ec *executionContext, rawArgs func field_Query___type_argsName( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -544,9 +544,9 @@ func field_Query___type_argsName( return zeroVal, nil } -func field_Query_getEntity_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Query_getEntity_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Query_getEntity_argsID(ctx, ec, rawArgs) if err != nil { return nil, err @@ -557,7 +557,7 @@ func field_Query_getEntity_args(ctx context.Context, ec *executionContext, rawAr func field_Query_getEntity_argsID( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -577,9 +577,9 @@ func field_Query_getEntity_argsID( return zeroVal, nil } -func field_Query_getUser_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Query_getUser_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Query_getUser_argsID(ctx, ec, rawArgs) if err != nil { return nil, err @@ -590,7 +590,7 @@ func field_Query_getUser_args(ctx context.Context, ec *executionContext, rawArgs func field_Query_getUser_argsID( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -610,9 +610,9 @@ func field_Query_getUser_argsID( return zeroVal, nil } -func field_Query_listUsers_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Query_listUsers_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Query_listUsers_argsFilter(ctx, ec, rawArgs) if err != nil { return nil, err @@ -623,7 +623,7 @@ func field_Query_listUsers_args(ctx context.Context, ec *executionContext, rawAr func field_Query_listUsers_argsFilter( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*UserFilter, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -643,9 +643,9 @@ func field_Query_listUsers_argsFilter( return zeroVal, nil } -func field___Type_enumValues_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field___Type_enumValues_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field___Type_enumValues_argsIncludeDeprecated(ctx, ec, rawArgs) if err != nil { return nil, err @@ -656,7 +656,7 @@ func field___Type_enumValues_args(ctx context.Context, ec *executionContext, raw func field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -676,9 +676,9 @@ func field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func field___Type_fields_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field___Type_fields_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field___Type_fields_argsIncludeDeprecated(ctx, ec, rawArgs) if err != nil { return nil, err @@ -689,7 +689,7 @@ func field___Type_fields_args(ctx context.Context, ec *executionContext, rawArgs func field___Type_fields_argsIncludeDeprecated( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -729,7 +729,7 @@ func _Admin_id(ctx context.Context, ec *executionContext, field graphql.Collecte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -773,7 +773,7 @@ func _Admin_name(ctx context.Context, ec *executionContext, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -817,7 +817,7 @@ func _Admin_permissions(ctx context.Context, ec *executionContext, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Permissions, nil }) @@ -861,7 +861,7 @@ func _Admin_createdAt(ctx context.Context, ec *executionContext, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedAt, nil }) @@ -902,13 +902,13 @@ func _Mutation_createUser(ctx context.Context, ec *executionContext, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().CreateUser(rctx, fc.Args["input"].(CreateUserInput)) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { message, err := unmarshalOString2ᚖstring(ctx, ec, "Creating a user") if err != nil { var zeroVal *User @@ -998,13 +998,13 @@ func _Mutation_deleteUser(ctx context.Context, ec *executionContext, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Mutation().DeleteUser(rctx, fc.Args["id"].(string)) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { message, err := unmarshalOString2ᚖstring(ctx, ec, "Deleting a user") if err != nil { var zeroVal *MutationResponse @@ -1086,7 +1086,7 @@ func _MutationResponse_success(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Success, nil }) @@ -1130,7 +1130,7 @@ func _MutationResponse_message(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Message, nil }) @@ -1171,13 +1171,13 @@ func _Query_getUser(ctx context.Context, ec *executionContext, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().GetUser(rctx, fc.Args["id"].(string)) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { message, err := unmarshalOString2ᚖstring(ctx, ec, "Fetching a user") if err != nil { var zeroVal *User @@ -1264,13 +1264,13 @@ func _Query_listUsers(ctx context.Context, ec *executionContext, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().ListUsers(rctx, fc.Args["filter"].(*UserFilter)) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { message, err := unmarshalOString2ᚖstring(ctx, ec, "Listing users") if err != nil { var zeroVal []*User @@ -1360,13 +1360,13 @@ func _Query_getEntity(ctx context.Context, ec *executionContext, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().GetEntity(rctx, fc.Args["id"].(string)) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { message, err := unmarshalOString2ᚖstring(ctx, ec, "Fetching an entity") if err != nil { var zeroVal Entity @@ -1439,7 +1439,7 @@ func _Query___type(ctx context.Context, ec *executionContext, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -1513,7 +1513,7 @@ func _Query___schema(ctx context.Context, ec *executionContext, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -1568,13 +1568,13 @@ func _Subscription_userCreated(ctx context.Context, ec *executionContext, field ret = nil } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { + directive0 := func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Subscription().UserCreated(rctx) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { message, err := unmarshalOString2ᚖstring(ctx, ec, "User created subscription") if err != nil { var zeroVal *User @@ -1667,7 +1667,7 @@ func _User_id(ctx context.Context, ec *executionContext, field graphql.Collected ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -1711,7 +1711,7 @@ func _User_name(ctx context.Context, ec *executionContext, field graphql.Collect ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1755,7 +1755,7 @@ func _User_email(ctx context.Context, ec *executionContext, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Email, nil }) @@ -1799,7 +1799,7 @@ func _User_age(ctx context.Context, ec *executionContext, field graphql.Collecte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Age, nil }) @@ -1840,7 +1840,7 @@ func _User_role(ctx context.Context, ec *executionContext, field graphql.Collect ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Role, nil }) @@ -1884,7 +1884,7 @@ func _User_createdAt(ctx context.Context, ec *executionContext, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.CreatedAt, nil }) @@ -1925,7 +1925,7 @@ func ___Directive_name(ctx context.Context, ec *executionContext, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1969,7 +1969,7 @@ func ___Directive_description(ctx context.Context, ec *executionContext, field g ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2010,7 +2010,7 @@ func ___Directive_locations(ctx context.Context, ec *executionContext, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -2054,7 +2054,7 @@ func ___Directive_args(ctx context.Context, ec *executionContext, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -2108,7 +2108,7 @@ func ___Directive_isRepeatable(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -2152,7 +2152,7 @@ func ___EnumValue_name(ctx context.Context, ec *executionContext, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2196,7 +2196,7 @@ func ___EnumValue_description(ctx context.Context, ec *executionContext, field g ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2237,7 +2237,7 @@ func ___EnumValue_isDeprecated(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -2281,7 +2281,7 @@ func ___EnumValue_deprecationReason(ctx context.Context, ec *executionContext, f ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -2322,7 +2322,7 @@ func ___Field_name(ctx context.Context, ec *executionContext, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2366,7 +2366,7 @@ func ___Field_description(ctx context.Context, ec *executionContext, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2407,7 +2407,7 @@ func ___Field_args(ctx context.Context, ec *executionContext, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -2461,7 +2461,7 @@ func ___Field_type(ctx context.Context, ec *executionContext, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -2527,7 +2527,7 @@ func ___Field_isDeprecated(ctx context.Context, ec *executionContext, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -2571,7 +2571,7 @@ func ___Field_deprecationReason(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -2612,7 +2612,7 @@ func ___InputValue_name(ctx context.Context, ec *executionContext, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2656,7 +2656,7 @@ func ___InputValue_description(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2697,7 +2697,7 @@ func ___InputValue_type(ctx context.Context, ec *executionContext, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -2763,7 +2763,7 @@ func ___InputValue_defaultValue(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -2804,7 +2804,7 @@ func ___Schema_description(ctx context.Context, ec *executionContext, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2845,7 +2845,7 @@ func ___Schema_types(ctx context.Context, ec *executionContext, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -2911,7 +2911,7 @@ func ___Schema_queryType(ctx context.Context, ec *executionContext, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -2977,7 +2977,7 @@ func ___Schema_mutationType(ctx context.Context, ec *executionContext, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -3040,7 +3040,7 @@ func ___Schema_subscriptionType(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -3103,7 +3103,7 @@ func ___Schema_directives(ctx context.Context, ec *executionContext, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -3159,7 +3159,7 @@ func ___Type_kind(ctx context.Context, ec *executionContext, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -3203,7 +3203,7 @@ func ___Type_name(ctx context.Context, ec *executionContext, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -3244,7 +3244,7 @@ func ___Type_description(ctx context.Context, ec *executionContext, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -3285,7 +3285,7 @@ func ___Type_fields(ctx context.Context, ec *executionContext, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -3351,7 +3351,7 @@ func ___Type_interfaces(ctx context.Context, ec *executionContext, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -3414,7 +3414,7 @@ func ___Type_possibleTypes(ctx context.Context, ec *executionContext, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -3477,7 +3477,7 @@ func ___Type_enumValues(ctx context.Context, ec *executionContext, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -3539,7 +3539,7 @@ func ___Type_inputFields(ctx context.Context, ec *executionContext, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -3590,7 +3590,7 @@ func ___Type_ofType(ctx context.Context, ec *executionContext, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -3653,7 +3653,7 @@ func ___Type_specifiedByURL(ctx context.Context, ec *executionContext, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -3686,10 +3686,10 @@ func fieldContext___Type_specifiedByURL(_ context.Context, ec *executionContext, // region **************************** input.gotpl ***************************** -func unmarshalInputCreateUserInput(ctx context.Context, ec *executionContext, obj interface{}) (CreateUserInput, error) { +func unmarshalInputCreateUserInput(ctx context.Context, ec *executionContext, obj any) (CreateUserInput, error) { var it CreateUserInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -3738,10 +3738,10 @@ func unmarshalInputCreateUserInput(ctx context.Context, ec *executionContext, ob return it, nil } -func unmarshalInputUserFilter(ctx context.Context, ec *executionContext, obj interface{}) (UserFilter, error) { +func unmarshalInputUserFilter(ctx context.Context, ec *executionContext, obj any) (UserFilter, error) { var it UserFilter - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -4490,7 +4490,7 @@ func ___Type(ctx context.Context, ec *executionContext, sel ast.SelectionSet, ob // region ***************************** type.gotpl ***************************** -func unmarshalNBoolean2bool(ctx context.Context, ec *executionContext, v interface{}) (bool, error) { +func unmarshalNBoolean2bool(ctx context.Context, ec *executionContext, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4505,12 +4505,12 @@ func marshalNBoolean2bool(ctx context.Context, ec *executionContext, sel ast.Sel return res } -func unmarshalNCreateUserInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋusefunctionsyntaxforexecutioncontextᚐCreateUserInput(ctx context.Context, ec *executionContext, v interface{}) (CreateUserInput, error) { +func unmarshalNCreateUserInput2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋusefunctionsyntaxforexecutioncontextᚐCreateUserInput(ctx context.Context, ec *executionContext, v any) (CreateUserInput, error) { res, err := unmarshalInputCreateUserInput(ctx, ec, v) return res, graphql.ErrorOnPath(ctx, err) } -func unmarshalNID2string(ctx context.Context, ec *executionContext, v interface{}) (string, error) { +func unmarshalNID2string(ctx context.Context, ec *executionContext, v any) (string, error) { res, err := graphql.UnmarshalID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4539,7 +4539,7 @@ func marshalNMutationResponse2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋt return _MutationResponse(ctx, ec, sel, v) } -func unmarshalNRole2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋusefunctionsyntaxforexecutioncontextᚐRole(ctx context.Context, ec *executionContext, v interface{}) (Role, error) { +func unmarshalNRole2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋusefunctionsyntaxforexecutioncontextᚐRole(ctx context.Context, ec *executionContext, v any) (Role, error) { var res Role err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -4549,7 +4549,7 @@ func marshalNRole2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋuse return v } -func unmarshalNString2string(ctx context.Context, ec *executionContext, v interface{}) (string, error) { +func unmarshalNString2string(ctx context.Context, ec *executionContext, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4564,8 +4564,8 @@ func marshalNString2string(ctx context.Context, ec *executionContext, sel ast.Se return res } -func unmarshalNString2ᚕstringᚄ(ctx context.Context, ec *executionContext, v interface{}) ([]string, error) { - var vSlice []interface{} +func unmarshalNString2ᚕstringᚄ(ctx context.Context, ec *executionContext, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4702,7 +4702,7 @@ func marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintros return ret } -func unmarshalN__DirectiveLocation2string(ctx context.Context, ec *executionContext, v interface{}) (string, error) { +func unmarshalN__DirectiveLocation2string(ctx context.Context, ec *executionContext, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4717,8 +4717,8 @@ func marshalN__DirectiveLocation2string(ctx context.Context, ec *executionContex return res } -func unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, ec *executionContext, v interface{}) ([]string, error) { - var vSlice []interface{} +func unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, ec *executionContext, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4892,7 +4892,7 @@ func marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospecti return ___Type(ctx, ec, sel, v) } -func unmarshalN__TypeKind2string(ctx context.Context, ec *executionContext, v interface{}) (string, error) { +func unmarshalN__TypeKind2string(ctx context.Context, ec *executionContext, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4907,7 +4907,7 @@ func marshalN__TypeKind2string(ctx context.Context, ec *executionContext, sel as return res } -func unmarshalOBoolean2bool(ctx context.Context, ec *executionContext, v interface{}) (bool, error) { +func unmarshalOBoolean2bool(ctx context.Context, ec *executionContext, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4917,7 +4917,7 @@ func marshalOBoolean2bool(ctx context.Context, ec *executionContext, sel ast.Sel return res } -func unmarshalOBoolean2ᚖbool(ctx context.Context, ec *executionContext, v interface{}) (*bool, error) { +func unmarshalOBoolean2ᚖbool(ctx context.Context, ec *executionContext, v any) (*bool, error) { if v == nil { return nil, nil } @@ -4933,7 +4933,7 @@ func marshalOBoolean2ᚖbool(ctx context.Context, ec *executionContext, sel ast. return res } -func unmarshalODate2ᚖstring(ctx context.Context, ec *executionContext, v interface{}) (*string, error) { +func unmarshalODate2ᚖstring(ctx context.Context, ec *executionContext, v any) (*string, error) { if v == nil { return nil, nil } @@ -4956,7 +4956,7 @@ func marshalOEntity2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋu return _Entity(ctx, ec, sel, v) } -func unmarshalOInt2ᚖint(ctx context.Context, ec *executionContext, v interface{}) (*int, error) { +func unmarshalOInt2ᚖint(ctx context.Context, ec *executionContext, v any) (*int, error) { if v == nil { return nil, nil } @@ -4972,11 +4972,11 @@ func marshalOInt2ᚖint(ctx context.Context, ec *executionContext, sel ast.Selec return res } -func unmarshalORole2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋusefunctionsyntaxforexecutioncontextᚐRoleᚄ(ctx context.Context, ec *executionContext, v interface{}) ([]Role, error) { +func unmarshalORole2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋusefunctionsyntaxforexecutioncontextᚐRoleᚄ(ctx context.Context, ec *executionContext, v any) ([]Role, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -5039,7 +5039,7 @@ func marshalORole2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋ return ret } -func unmarshalORole2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋusefunctionsyntaxforexecutioncontextᚐRole(ctx context.Context, ec *executionContext, v interface{}) (*Role, error) { +func unmarshalORole2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋusefunctionsyntaxforexecutioncontextᚐRole(ctx context.Context, ec *executionContext, v any) (*Role, error) { if v == nil { return nil, nil } @@ -5055,7 +5055,7 @@ func marshalORole2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋ return v } -func unmarshalOString2ᚖstring(ctx context.Context, ec *executionContext, v interface{}) (*string, error) { +func unmarshalOString2ᚖstring(ctx context.Context, ec *executionContext, v any) (*string, error) { if v == nil { return nil, nil } @@ -5078,7 +5078,7 @@ func marshalOUser2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋ return _User(ctx, ec, sel, v) } -func unmarshalOUserFilter2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋusefunctionsyntaxforexecutioncontextᚐUserFilter(ctx context.Context, ec *executionContext, v interface{}) (*UserFilter, error) { +func unmarshalOUserFilter2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋusefunctionsyntaxforexecutioncontextᚐUserFilter(ctx context.Context, ec *executionContext, v any) (*UserFilter, error) { if v == nil { return nil, nil } diff --git a/codegen/testserver/usefunctionsyntaxforexecutioncontext/models-gen.go b/codegen/testserver/usefunctionsyntaxforexecutioncontext/models-gen.go index f061898b51f..59a93fc1e8b 100644 --- a/codegen/testserver/usefunctionsyntaxforexecutioncontext/models-gen.go +++ b/codegen/testserver/usefunctionsyntaxforexecutioncontext/models-gen.go @@ -93,7 +93,7 @@ func (e Role) String() string { return string(e) } -func (e *Role) UnmarshalGQL(v interface{}) error { +func (e *Role) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/codegen/type.gotpl b/codegen/type.gotpl index e4ebea50d38..d69a7ef2c36 100644 --- a/codegen/type.gotpl +++ b/codegen/type.gotpl @@ -2,9 +2,9 @@ {{- range $type := .ReferencedTypes }} {{ with $type.UnmarshalFunc }} {{ if $useFunctionSyntaxForExecutionContext -}} - func {{ . }}(ctx context.Context, ec *executionContext, v interface{}) ({{ $type.GO | ref }}, error) { + func {{ . }}(ctx context.Context, ec *executionContext, v any) ({{ $type.GO | ref }}, error) { {{- else -}} - func (ec *executionContext) {{ . }}(ctx context.Context, v interface{}) ({{ $type.GO | ref }}, error) { + func (ec *executionContext) {{ . }}(ctx context.Context, v any) ({{ $type.GO | ref }}, error) { {{- end -}} {{- if and $type.IsNilable (not $type.GQL.NonNull) (not $type.IsPtrToPtr) }} if v == nil { return nil, nil } @@ -17,7 +17,7 @@ {{- end }} return &res, graphql.ErrorOnPath(ctx, err) {{- else if $type.IsSlice }} - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } diff --git a/graphql/context_field.go b/graphql/context_field.go index 0fef085523e..dbb8d9e9b3e 100644 --- a/graphql/context_field.go +++ b/graphql/context_field.go @@ -34,7 +34,7 @@ type FieldContext struct { // Note that, the returned child FieldContext represents the context as it was // before the execution of the field resolver. For example: // - // srv.AroundFields(func(ctx context.Context, next graphql.Resolver) (interface{}, error) { + // srv.AroundFields(func(ctx context.Context, next graphql.Resolver) (any, error) { // fc := graphql.GetFieldContext(ctx) // opCtx := graphql.GetOperationContext(ctx) // collected := graphql.CollectFields(opCtx, fc.Field.Selections, []string{"User"}) diff --git a/graphql/handler/apollofederatedtracingv1/generated/apollo_trace.pb.go b/graphql/handler/apollofederatedtracingv1/generated/apollo_trace.pb.go index 7972d843d5f..9ff3430fc9a 100644 --- a/graphql/handler/apollofederatedtracingv1/generated/apollo_trace.pb.go +++ b/graphql/handler/apollofederatedtracingv1/generated/apollo_trace.pb.go @@ -2752,7 +2752,7 @@ func file_apollo_trace_proto_rawDescGZIP() []byte { var file_apollo_trace_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_apollo_trace_proto_msgTypes = make([]protoimpl.MessageInfo, 35) -var file_apollo_trace_proto_goTypes = []interface{}{ +var file_apollo_trace_proto_goTypes = []any{ (Trace_CachePolicy_Scope)(0), // 0: Trace.CachePolicy.Scope (Trace_HTTP_Method)(0), // 1: Trace.HTTP.Method (*Trace)(nil), // 2: Trace @@ -2858,7 +2858,7 @@ func file_apollo_trace_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_apollo_trace_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Trace); i { case 0: return &v.state @@ -2870,7 +2870,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*ReportHeader); i { case 0: return &v.state @@ -2882,7 +2882,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*PathErrorStats); i { case 0: return &v.state @@ -2894,7 +2894,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*QueryLatencyStats); i { case 0: return &v.state @@ -2906,7 +2906,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*StatsContext); i { case 0: return &v.state @@ -2918,7 +2918,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*ContextualizedQueryLatencyStats); i { case 0: return &v.state @@ -2930,7 +2930,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*ContextualizedTypeStats); i { case 0: return &v.state @@ -2942,7 +2942,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*FieldStat); i { case 0: return &v.state @@ -2954,7 +2954,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*TypeStat); i { case 0: return &v.state @@ -2966,7 +2966,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*ReferencedFieldsForType); i { case 0: return &v.state @@ -2978,7 +2978,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*Report); i { case 0: return &v.state @@ -2990,7 +2990,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*ContextualizedStats); i { case 0: return &v.state @@ -3002,7 +3002,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*TracesAndStats); i { case 0: return &v.state @@ -3014,7 +3014,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*Trace_CachePolicy); i { case 0: return &v.state @@ -3026,7 +3026,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*Trace_Details); i { case 0: return &v.state @@ -3038,7 +3038,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*Trace_Error); i { case 0: return &v.state @@ -3050,7 +3050,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*Trace_HTTP); i { case 0: return &v.state @@ -3062,7 +3062,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*Trace_Location); i { case 0: return &v.state @@ -3074,7 +3074,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[18].Exporter = func(v any, i int) any { switch v := v.(*Trace_Node); i { case 0: return &v.state @@ -3086,7 +3086,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[19].Exporter = func(v any, i int) any { switch v := v.(*Trace_QueryPlanNode); i { case 0: return &v.state @@ -3098,7 +3098,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[21].Exporter = func(v any, i int) any { switch v := v.(*Trace_HTTP_Values); i { case 0: return &v.state @@ -3110,7 +3110,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[24].Exporter = func(v any, i int) any { switch v := v.(*Trace_QueryPlanNode_SequenceNode); i { case 0: return &v.state @@ -3122,7 +3122,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[25].Exporter = func(v any, i int) any { switch v := v.(*Trace_QueryPlanNode_ParallelNode); i { case 0: return &v.state @@ -3134,7 +3134,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[26].Exporter = func(v any, i int) any { switch v := v.(*Trace_QueryPlanNode_FetchNode); i { case 0: return &v.state @@ -3146,7 +3146,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[27].Exporter = func(v any, i int) any { switch v := v.(*Trace_QueryPlanNode_FlattenNode); i { case 0: return &v.state @@ -3158,7 +3158,7 @@ func file_apollo_trace_proto_init() { return nil } } - file_apollo_trace_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_apollo_trace_proto_msgTypes[28].Exporter = func(v any, i int) any { switch v := v.(*Trace_QueryPlanNode_ResponsePathElement); i { case 0: return &v.state @@ -3171,17 +3171,17 @@ func file_apollo_trace_proto_init() { } } } - file_apollo_trace_proto_msgTypes[18].OneofWrappers = []interface{}{ + file_apollo_trace_proto_msgTypes[18].OneofWrappers = []any{ (*Trace_Node_ResponseName)(nil), (*Trace_Node_Index)(nil), } - file_apollo_trace_proto_msgTypes[19].OneofWrappers = []interface{}{ + file_apollo_trace_proto_msgTypes[19].OneofWrappers = []any{ (*Trace_QueryPlanNode_Sequence)(nil), (*Trace_QueryPlanNode_Parallel)(nil), (*Trace_QueryPlanNode_Fetch)(nil), (*Trace_QueryPlanNode_Flatten)(nil), } - file_apollo_trace_proto_msgTypes[28].OneofWrappers = []interface{}{ + file_apollo_trace_proto_msgTypes[28].OneofWrappers = []any{ (*Trace_QueryPlanNode_ResponsePathElement_FieldName)(nil), (*Trace_QueryPlanNode_ResponsePathElement_Index)(nil), } diff --git a/graphql/map.go b/graphql/map.go index 1e91d1d98c1..2120eef96d6 100644 --- a/graphql/map.go +++ b/graphql/map.go @@ -6,7 +6,7 @@ import ( "io" ) -func MarshalMap(val map[string]interface{}) Marshaler { +func MarshalMap(val map[string]any) Marshaler { return WriterFunc(func(w io.Writer) { err := json.NewEncoder(w).Encode(val) if err != nil { @@ -15,8 +15,8 @@ func MarshalMap(val map[string]interface{}) Marshaler { }) } -func UnmarshalMap(v interface{}) (map[string]interface{}, error) { - if m, ok := v.(map[string]interface{}); ok { +func UnmarshalMap(v any) (map[string]any, error) { + if m, ok := v.(map[string]any); ok { return m, nil } diff --git a/integration/server/generated.go b/integration/server/generated.go index 54aa9c9b0ff..a3ae55091a1 100644 --- a/integration/server/generated.go +++ b/integration/server/generated.go @@ -47,7 +47,7 @@ type ResolverRoot interface { } type DirectiveRoot struct { - Magic func(ctx context.Context, obj interface{}, next graphql.Resolver, kind *int) (res interface{}, err error) + Magic func(ctx context.Context, obj any, next graphql.Resolver, kind *int) (res any, err error) } type ComplexityRoot struct { @@ -115,7 +115,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -365,9 +365,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) dir_magic_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_magic_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.dir_magic_argsKind(ctx, rawArgs) if err != nil { return nil, err @@ -377,7 +377,7 @@ func (ec *executionContext) dir_magic_args(ctx context.Context, rawArgs map[stri } func (ec *executionContext) dir_magic_argsKind( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -397,9 +397,9 @@ func (ec *executionContext) dir_magic_argsKind( return zeroVal, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -409,7 +409,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -429,9 +429,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query_coercion_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_coercion_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_coercion_argsValue(ctx, rawArgs) if err != nil { return nil, err @@ -441,7 +441,7 @@ func (ec *executionContext) field_Query_coercion_args(ctx context.Context, rawAr } func (ec *executionContext) field_Query_coercion_argsValue( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*models.ListCoercion, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -461,9 +461,9 @@ func (ec *executionContext) field_Query_coercion_argsValue( return zeroVal, nil } -func (ec *executionContext) field_Query_complexity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_complexity_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_complexity_argsValue(ctx, rawArgs) if err != nil { return nil, err @@ -473,7 +473,7 @@ func (ec *executionContext) field_Query_complexity_args(ctx context.Context, raw } func (ec *executionContext) field_Query_complexity_argsValue( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -493,9 +493,9 @@ func (ec *executionContext) field_Query_complexity_argsValue( return zeroVal, nil } -func (ec *executionContext) field_Query_date_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_date_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_date_argsFilter(ctx, rawArgs) if err != nil { return nil, err @@ -505,7 +505,7 @@ func (ec *executionContext) field_Query_date_args(ctx context.Context, rawArgs m } func (ec *executionContext) field_Query_date_argsFilter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (models.DateFilter, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -525,9 +525,9 @@ func (ec *executionContext) field_Query_date_argsFilter( return zeroVal, nil } -func (ec *executionContext) field_Query_error_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_error_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query_error_argsType(ctx, rawArgs) if err != nil { return nil, err @@ -537,7 +537,7 @@ func (ec *executionContext) field_Query_error_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_error_argsType( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*models.ErrorType, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -557,9 +557,9 @@ func (ec *executionContext) field_Query_error_argsType( return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -569,7 +569,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -589,9 +589,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -601,7 +601,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -641,7 +641,7 @@ func (ec *executionContext) _Element_child(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Element().Child(rctx, obj) }) @@ -693,7 +693,7 @@ func (ec *executionContext) _Element_error(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Element().Error(rctx, obj) }) @@ -737,7 +737,7 @@ func (ec *executionContext) _Element_mismatched(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Element().Mismatched(rctx, obj) }) @@ -778,7 +778,7 @@ func (ec *executionContext) _Query_path(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Path(rctx) }) @@ -827,7 +827,7 @@ func (ec *executionContext) _Query_date(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Date(rctx, fc.Args["filter"].(models.DateFilter)) }) @@ -882,7 +882,7 @@ func (ec *executionContext) _Query_viewer(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Viewer(rctx) }) @@ -927,7 +927,7 @@ func (ec *executionContext) _Query_jsonEncoding(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().JSONEncoding(rctx) }) @@ -971,7 +971,7 @@ func (ec *executionContext) _Query_error(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Error(rctx, fc.Args["type"].(*models.ErrorType)) }) @@ -1026,7 +1026,7 @@ func (ec *executionContext) _Query_complexity(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Complexity(rctx, fc.Args["value"].(int)) }) @@ -1081,7 +1081,7 @@ func (ec *executionContext) _Query_coercion(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Coercion(rctx, fc.Args["value"].([]*models.ListCoercion)) }) @@ -1136,7 +1136,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -1210,7 +1210,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -1265,7 +1265,7 @@ func (ec *executionContext) _RemoteModelWithOmitempty_newDesc(ctx context.Contex ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description, nil }) @@ -1306,7 +1306,7 @@ func (ec *executionContext) _User_name(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1350,7 +1350,7 @@ func (ec *executionContext) _User_likes(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.User().Likes(rctx, obj) }) @@ -1394,7 +1394,7 @@ func (ec *executionContext) _User_phoneNumber(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PhoneNumber, nil }) @@ -1485,7 +1485,7 @@ func (ec *executionContext) _Viewer_user(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.User, nil }) @@ -1536,7 +1536,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1580,7 +1580,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1621,7 +1621,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -1665,7 +1665,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1719,7 +1719,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -1763,7 +1763,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1807,7 +1807,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1848,7 +1848,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1892,7 +1892,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1933,7 +1933,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1977,7 +1977,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2018,7 +2018,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -2072,7 +2072,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -2138,7 +2138,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -2182,7 +2182,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -2223,7 +2223,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2267,7 +2267,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2308,7 +2308,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -2374,7 +2374,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -2415,7 +2415,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2456,7 +2456,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -2522,7 +2522,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -2588,7 +2588,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -2651,7 +2651,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -2714,7 +2714,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -2770,7 +2770,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -2814,7 +2814,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2855,7 +2855,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2896,7 +2896,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2962,7 +2962,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -3025,7 +3025,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -3088,7 +3088,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -3150,7 +3150,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -3201,7 +3201,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -3264,7 +3264,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -3297,10 +3297,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputDateFilter(ctx context.Context, obj interface{}) (models.DateFilter, error) { +func (ec *executionContext) unmarshalInputDateFilter(ctx context.Context, obj any) (models.DateFilter, error) { var it models.DateFilter - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -3345,10 +3345,10 @@ func (ec *executionContext) unmarshalInputDateFilter(ctx context.Context, obj in return it, nil } -func (ec *executionContext) unmarshalInputListCoercion(ctx context.Context, obj interface{}) (models.ListCoercion, error) { +func (ec *executionContext) unmarshalInputListCoercion(ctx context.Context, obj any) (models.ListCoercion, error) { var it models.ListCoercion - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -4218,7 +4218,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4233,7 +4233,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNDateFilter2githubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐDateFilter(ctx context.Context, v interface{}) (models.DateFilter, error) { +func (ec *executionContext) unmarshalNDateFilter2githubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐDateFilter(ctx context.Context, v any) (models.DateFilter, error) { res, err := ec.unmarshalInputDateFilter(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4252,7 +4252,7 @@ func (ec *executionContext) marshalNElement2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Element(ctx, sel, v) } -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4267,7 +4267,7 @@ func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.Selecti return res } -func (ec *executionContext) unmarshalNListCoercion2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐListCoercion(ctx context.Context, v interface{}) (*models.ListCoercion, error) { +func (ec *executionContext) unmarshalNListCoercion2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐListCoercion(ctx context.Context, v any) (*models.ListCoercion, error) { res, err := ec.unmarshalInputListCoercion(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -4276,7 +4276,7 @@ func (ec *executionContext) marshalNQuery2githubᚗcomᚋ99designsᚋgqlgenᚋin return ec._Query(ctx, sel) } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4291,8 +4291,8 @@ func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4371,7 +4371,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4386,8 +4386,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4561,7 +4561,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4576,7 +4576,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4586,11 +4586,11 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚕboolᚄ(ctx context.Context, v interface{}) ([]bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚕboolᚄ(ctx context.Context, v any) ([]bool, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4624,7 +4624,7 @@ func (ec *executionContext) marshalOBoolean2ᚕboolᚄ(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -4640,7 +4640,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalODATE_FILTER_OP2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐDateFilterOp(ctx context.Context, v interface{}) (*models.DateFilterOp, error) { +func (ec *executionContext) unmarshalODATE_FILTER_OP2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐDateFilterOp(ctx context.Context, v any) (*models.DateFilterOp, error) { if v == nil { return nil, nil } @@ -4704,11 +4704,11 @@ func (ec *executionContext) marshalOElement2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Element(ctx, sel, v) } -func (ec *executionContext) unmarshalOErrorType2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐErrorType(ctx context.Context, v interface{}) ([]*models.ErrorType, error) { +func (ec *executionContext) unmarshalOErrorType2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐErrorType(ctx context.Context, v any) ([]*models.ErrorType, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4765,7 +4765,7 @@ func (ec *executionContext) marshalOErrorType2ᚕᚖgithubᚗcomᚋ99designsᚋg return ret } -func (ec *executionContext) unmarshalOErrorType2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐErrorType(ctx context.Context, v interface{}) (*models.ErrorType, error) { +func (ec *executionContext) unmarshalOErrorType2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐErrorType(ctx context.Context, v any) (*models.ErrorType, error) { if v == nil { return nil, nil } @@ -4781,11 +4781,11 @@ func (ec *executionContext) marshalOErrorType2ᚖgithubᚗcomᚋ99designsᚋgqlg return v } -func (ec *executionContext) unmarshalOInt2ᚕᚖint(ctx context.Context, v interface{}) ([]*int, error) { +func (ec *executionContext) unmarshalOInt2ᚕᚖint(ctx context.Context, v any) ([]*int, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4813,7 +4813,7 @@ func (ec *executionContext) marshalOInt2ᚕᚖint(ctx context.Context, sel ast.S return ret } -func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { +func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v any) (*int, error) { if v == nil { return nil, nil } @@ -4829,11 +4829,11 @@ func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.Sele return res } -func (ec *executionContext) unmarshalOListCoercion2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐListCoercionᚄ(ctx context.Context, v interface{}) ([]*models.ListCoercion, error) { +func (ec *executionContext) unmarshalOListCoercion2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋintegrationᚋserverᚋmodelsᚑgoᚐListCoercionᚄ(ctx context.Context, v any) ([]*models.ListCoercion, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4849,7 +4849,7 @@ func (ec *executionContext) unmarshalOListCoercion2ᚕᚖgithubᚗcomᚋ99design return res, nil } -func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v any) (map[string]any, error) { if v == nil { return nil, nil } @@ -4857,7 +4857,7 @@ func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v interface{} return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalOMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]any) graphql.Marshaler { if v == nil { return graphql.Null } @@ -4865,16 +4865,16 @@ func (ec *executionContext) marshalOMap2map(ctx context.Context, sel ast.Selecti return res } -func (ec *executionContext) unmarshalOMap2ᚕmap(ctx context.Context, v interface{}) ([]map[string]interface{}, error) { +func (ec *executionContext) unmarshalOMap2ᚕmap(ctx context.Context, v any) ([]map[string]any, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } var err error - res := make([]map[string]interface{}, len(vSlice)) + res := make([]map[string]any, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) res[i], err = ec.unmarshalOMap2map(ctx, vSlice[i]) @@ -4885,7 +4885,7 @@ func (ec *executionContext) unmarshalOMap2ᚕmap(ctx context.Context, v interfac return res, nil } -func (ec *executionContext) marshalOMap2ᚕmap(ctx context.Context, sel ast.SelectionSet, v []map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalOMap2ᚕmap(ctx context.Context, sel ast.SelectionSet, v []map[string]any) graphql.Marshaler { if v == nil { return graphql.Null } @@ -4897,7 +4897,7 @@ func (ec *executionContext) marshalOMap2ᚕmap(ctx context.Context, sel ast.Sele return ret } -func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalOString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -4907,11 +4907,11 @@ func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOString2ᚕᚖstring(ctx context.Context, v interface{}) ([]*string, error) { +func (ec *executionContext) unmarshalOString2ᚕᚖstring(ctx context.Context, v any) ([]*string, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -4939,7 +4939,7 @@ func (ec *executionContext) marshalOString2ᚕᚖstring(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/integration/server/models-go/generated.go b/integration/server/models-go/generated.go index acdc10830c0..17fcf410aa5 100644 --- a/integration/server/models-go/generated.go +++ b/integration/server/models-go/generated.go @@ -18,7 +18,7 @@ type ListCoercion struct { EnumVal []*ErrorType `json:"enumVal,omitempty"` StrVal []*string `json:"strVal,omitempty"` IntVal []*int `json:"intVal,omitempty"` - ScalarVal []map[string]interface{} `json:"scalarVal,omitempty"` + ScalarVal []map[string]any `json:"scalarVal,omitempty"` } type Query struct { @@ -56,7 +56,7 @@ func (e DateFilterOp) String() string { return string(e) } -func (e *DateFilterOp) UnmarshalGQL(v interface{}) error { +func (e *DateFilterOp) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -97,7 +97,7 @@ func (e ErrorType) String() string { return string(e) } -func (e *ErrorType) UnmarshalGQL(v interface{}) error { +func (e *ErrorType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/internal/code/compare_test.go b/internal/code/compare_test.go index 0100d574237..d01a20d59a4 100644 --- a/internal/code/compare_test.go +++ b/internal/code/compare_test.go @@ -24,10 +24,10 @@ func TestCompatibleTypes(t *testing.T) { {"*[]string", "[]string"}, {"*[]string", "[]*string"}, {"*[]*[]*[]string", "[][][]string"}, - {"map[string]interface{}", "map[string]interface{}"}, + {"map[string]any", "map[string]any"}, {"map[string]string", "map[string]string"}, {"Bar", "Bar"}, - {"interface{}", "interface{}"}, + {"any", "any"}, {"interface{Foo() bool}", "interface{Foo() bool}"}, {"struct{Foo bool}", "struct{Foo bool}"}, } @@ -48,9 +48,9 @@ func TestCompatibleTypes(t *testing.T) { {"*string", "[]string"}, {"[]string", "[][]string"}, {"Bar", "Baz"}, - {"map[string]interface{}", "map[string]string"}, + {"map[string]any", "map[string]string"}, {"map[string]string", "[]string"}, - {"interface{Foo() bool}", "interface{}"}, + {"interface{Foo() bool}", "any"}, {"struct{Foo bool}", "struct{Bar bool}"}, } diff --git a/plugin/federation/federation.gotpl b/plugin/federation/federation.gotpl index 8e3aef9d592..5e61e15cbc3 100644 --- a/plugin/federation/federation.gotpl +++ b/plugin/federation/federation.gotpl @@ -35,7 +35,7 @@ func (ec *executionContext) __resolve__service(ctx context.Context) (fedruntime. } {{if .Entities}} -func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]interface{}) []fedruntime.Entity { +func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]any) []fedruntime.Entity { list := make([]fedruntime.Entity, len(representations)) repsMap := ec.buildRepresentationGroups(ctx, representations) @@ -172,9 +172,9 @@ func (ec *executionContext) resolveEntity( case "{{.ResolverName}}": {{- range $j, $keyField := .KeyFields }} {{ if $useFunctionSyntaxForExecutionContext -}} - id{{$j}}, err := {{.Type.UnmarshalFunc}}(ctx, ec, rep["{{.Field.Join `"].(map[string]interface{})["`}}"]) + id{{$j}}, err := {{.Type.UnmarshalFunc}}(ctx, ec, rep["{{.Field.Join `"].(map[string]any)["`}}"]) {{- else -}} - id{{$j}}, err := ec.{{.Type.UnmarshalFunc}}(ctx, rep["{{.Field.Join `"].(map[string]interface{})["`}}"]) + id{{$j}}, err := ec.{{.Type.UnmarshalFunc}}(ctx, rep["{{.Field.Join `"].(map[string]any)["`}}"]) {{- end }} if err != nil { return nil, fmt.Errorf(`unmarshalling param {{$j}} for {{$resolver.ResolverName}}(): %w`, err) @@ -194,9 +194,9 @@ func (ec *executionContext) resolveEntity( {{- else }} {{ range $entity.Requires }} {{ if $useFunctionSyntaxForExecutionContext -}} - entity.{{.Field.JoinGo `.`}}, err = {{.Type.UnmarshalFunc}}(ctx, ec, rep["{{.Field.Join `"].(map[string]interface{})["`}}"]) + entity.{{.Field.JoinGo `.`}}, err = {{.Type.UnmarshalFunc}}(ctx, ec, rep["{{.Field.Join `"].(map[string]any)["`}}"]) {{- else -}} - entity.{{.Field.JoinGo `.`}}, err = ec.{{.Type.UnmarshalFunc}}(ctx, rep["{{.Field.Join `"].(map[string]interface{})["`}}"]) + entity.{{.Field.JoinGo `.`}}, err = ec.{{.Type.UnmarshalFunc}}(ctx, rep["{{.Field.Join `"].(map[string]any)["`}}"]) {{- end }} if err != nil { return nil, err @@ -242,9 +242,9 @@ func (ec *executionContext) resolveManyEntities( for i, rep := range reps { {{ range $i, $keyField := .KeyFields -}} {{ if $useFunctionSyntaxForExecutionContext -}} - id{{$i}}, err := {{.Type.UnmarshalFunc}}(ctx, ec, rep.entity["{{.Field.Join `"].(map[string]interface{})["`}}"]) + id{{$i}}, err := {{.Type.UnmarshalFunc}}(ctx, ec, rep.entity["{{.Field.Join `"].(map[string]any)["`}}"]) {{- else -}} - id{{$i}}, err := ec.{{.Type.UnmarshalFunc}}(ctx, rep.entity["{{.Field.Join `"].(map[string]interface{})["`}}"]) + id{{$i}}, err := ec.{{.Type.UnmarshalFunc}}(ctx, rep.entity["{{.Field.Join `"].(map[string]any)["`}}"]) {{- end }} if err != nil { return errors.New(fmt.Sprintf("Field %s undefined in schema.", "{{.Definition.Name}}")) @@ -266,9 +266,9 @@ func (ec *executionContext) resolveManyEntities( for i, entity := range entities { {{- range $entity.Requires }} {{ if $useFunctionSyntaxForExecutionContext -}} - entity.{{.Field.JoinGo `.`}}, err = {{.Type.UnmarshalFunc}}(ctx, ec, reps[i].entity["{{.Field.Join `"].(map[string]interface{})["`}}"]) + entity.{{.Field.JoinGo `.`}}, err = {{.Type.UnmarshalFunc}}(ctx, ec, reps[i].entity["{{.Field.Join `"].(map[string]any)["`}}"]) {{- else -}} - entity.{{.Field.JoinGo `.`}}, err = ec.{{.Type.UnmarshalFunc}}(ctx, reps[i].entity["{{.Field.Join `"].(map[string]interface{})["`}}"]) + entity.{{.Field.JoinGo `.`}}, err = ec.{{.Type.UnmarshalFunc}}(ctx, reps[i].entity["{{.Field.Join `"].(map[string]any)["`}}"]) {{- end }} if err != nil { return err @@ -301,7 +301,7 @@ func (ec *executionContext) resolveManyEntities( for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -318,7 +318,7 @@ func (ec *executionContext) resolveManyEntities( break } {{- if (ne $i $keyField.Field.LastIndex ) }} - if m, ok = val.(map[string]interface{}); !ok { + if m, ok = val.(map[string]any); !ok { // nested field value is not a map[string]interface so don't use it entityResolverErrs = append(entityResolverErrs, fmt.Errorf("%w due to nested Key Field \"{{.}}\" value not matching map[string]any for {{$entity.Name}}", ErrTypeNotFound)) diff --git a/plugin/federation/requires.gotpl b/plugin/federation/requires.gotpl index 17377104739..64d8b7960b1 100644 --- a/plugin/federation/requires.gotpl +++ b/plugin/federation/requires.gotpl @@ -12,7 +12,7 @@ {{- else -}} // {{.FuncName}} is the requires populator for the {{.Entity.Def.Name}} entity. {{- end }} -func (ec *executionContext) {{.FuncName}}(ctx context.Context, entity *{{.Entity.GetTypeInfo}}, reps map[string]interface{}) error { +func (ec *executionContext) {{.FuncName}}(ctx context.Context, entity *{{.Entity.GetTypeInfo}}, reps map[string]any) error { {{.Implementation}} } {{ end }} diff --git a/plugin/federation/testdata/allthethings/generated/federation.go b/plugin/federation/testdata/allthethings/generated/federation.go index 9e461828db9..28b1124b5cf 100644 --- a/plugin/federation/testdata/allthethings/generated/federation.go +++ b/plugin/federation/testdata/allthethings/generated/federation.go @@ -37,7 +37,7 @@ func (ec *executionContext) __resolve__service(ctx context.Context) (fedruntime. }, nil } -func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]interface{}) []fedruntime.Entity { +func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]any) []fedruntime.Entity { list := make([]fedruntime.Entity, len(representations)) repsMap := ec.buildRepresentationGroups(ctx, representations) @@ -206,7 +206,7 @@ func (ec *executionContext) resolveEntity( if err != nil { return nil, fmt.Errorf(`unmarshalling param 0 for findNestedKeyByIDAndHelloName(): %w`, err) } - id1, err := ec.unmarshalNString2string(ctx, rep["hello"].(map[string]interface{})["name"]) + id1, err := ec.unmarshalNString2string(ctx, rep["hello"].(map[string]any)["name"]) if err != nil { return nil, fmt.Errorf(`unmarshalling param 1 for findNestedKeyByIDAndHelloName(): %w`, err) } @@ -229,19 +229,19 @@ func (ec *executionContext) resolveEntity( if err != nil { return nil, fmt.Errorf(`unmarshalling param 0 for findVeryNestedKeyByIDAndHelloNameAndWorldFooAndWorldBarAndMoreWorldFoo(): %w`, err) } - id1, err := ec.unmarshalNString2string(ctx, rep["hello"].(map[string]interface{})["name"]) + id1, err := ec.unmarshalNString2string(ctx, rep["hello"].(map[string]any)["name"]) if err != nil { return nil, fmt.Errorf(`unmarshalling param 1 for findVeryNestedKeyByIDAndHelloNameAndWorldFooAndWorldBarAndMoreWorldFoo(): %w`, err) } - id2, err := ec.unmarshalNString2string(ctx, rep["world"].(map[string]interface{})["foo"]) + id2, err := ec.unmarshalNString2string(ctx, rep["world"].(map[string]any)["foo"]) if err != nil { return nil, fmt.Errorf(`unmarshalling param 2 for findVeryNestedKeyByIDAndHelloNameAndWorldFooAndWorldBarAndMoreWorldFoo(): %w`, err) } - id3, err := ec.unmarshalNInt2int(ctx, rep["world"].(map[string]interface{})["bar"]) + id3, err := ec.unmarshalNInt2int(ctx, rep["world"].(map[string]any)["bar"]) if err != nil { return nil, fmt.Errorf(`unmarshalling param 3 for findVeryNestedKeyByIDAndHelloNameAndWorldFooAndWorldBarAndMoreWorldFoo(): %w`, err) } - id4, err := ec.unmarshalNString2string(ctx, rep["more"].(map[string]interface{})["world"].(map[string]interface{})["foo"]) + id4, err := ec.unmarshalNString2string(ctx, rep["more"].(map[string]any)["world"].(map[string]any)["foo"]) if err != nil { return nil, fmt.Errorf(`unmarshalling param 4 for findVeryNestedKeyByIDAndHelloNameAndWorldFooAndWorldBarAndMoreWorldFoo(): %w`, err) } @@ -254,7 +254,7 @@ func (ec *executionContext) resolveEntity( if err != nil { return nil, err } - entity.Hello.Secondary, err = ec.unmarshalNString2string(ctx, rep["hello"].(map[string]interface{})["secondary"]) + entity.Hello.Secondary, err = ec.unmarshalNString2string(ctx, rep["hello"].(map[string]any)["secondary"]) if err != nil { return nil, err } @@ -382,7 +382,7 @@ func entityResolverNameForExternalExtension(ctx context.Context, rep EntityRepre for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -417,7 +417,7 @@ func entityResolverNameForHello(ctx context.Context, rep EntityRepresentation) ( for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -452,7 +452,7 @@ func entityResolverNameForMultiHelloMultiKey(ctx context.Context, rep EntityRepr for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -479,7 +479,7 @@ func entityResolverNameForMultiHelloMultiKey(ctx context.Context, rep EntityRepr for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -514,7 +514,7 @@ func entityResolverNameForNestedKey(ctx context.Context, rep EntityRepresentatio for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -538,7 +538,7 @@ func entityResolverNameForNestedKey(ctx context.Context, rep EntityRepresentatio fmt.Errorf("%w due to missing Key Field \"hello\" for NestedKey", ErrTypeNotFound)) break } - if m, ok = val.(map[string]interface{}); !ok { + if m, ok = val.(map[string]any); !ok { // nested field value is not a map[string]interface so don't use it entityResolverErrs = append(entityResolverErrs, fmt.Errorf("%w due to nested Key Field \"hello\" value not matching map[string]any for NestedKey", ErrTypeNotFound)) @@ -571,7 +571,7 @@ func entityResolverNameForVeryNestedKey(ctx context.Context, rep EntityRepresent for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -595,7 +595,7 @@ func entityResolverNameForVeryNestedKey(ctx context.Context, rep EntityRepresent fmt.Errorf("%w due to missing Key Field \"hello\" for VeryNestedKey", ErrTypeNotFound)) break } - if m, ok = val.(map[string]interface{}); !ok { + if m, ok = val.(map[string]any); !ok { // nested field value is not a map[string]interface so don't use it entityResolverErrs = append(entityResolverErrs, fmt.Errorf("%w due to nested Key Field \"hello\" value not matching map[string]any for VeryNestedKey", ErrTypeNotFound)) @@ -617,7 +617,7 @@ func entityResolverNameForVeryNestedKey(ctx context.Context, rep EntityRepresent fmt.Errorf("%w due to missing Key Field \"world\" for VeryNestedKey", ErrTypeNotFound)) break } - if m, ok = val.(map[string]interface{}); !ok { + if m, ok = val.(map[string]any); !ok { // nested field value is not a map[string]interface so don't use it entityResolverErrs = append(entityResolverErrs, fmt.Errorf("%w due to nested Key Field \"world\" value not matching map[string]any for VeryNestedKey", ErrTypeNotFound)) @@ -639,7 +639,7 @@ func entityResolverNameForVeryNestedKey(ctx context.Context, rep EntityRepresent fmt.Errorf("%w due to missing Key Field \"world\" for VeryNestedKey", ErrTypeNotFound)) break } - if m, ok = val.(map[string]interface{}); !ok { + if m, ok = val.(map[string]any); !ok { // nested field value is not a map[string]interface so don't use it entityResolverErrs = append(entityResolverErrs, fmt.Errorf("%w due to nested Key Field \"world\" value not matching map[string]any for VeryNestedKey", ErrTypeNotFound)) @@ -661,7 +661,7 @@ func entityResolverNameForVeryNestedKey(ctx context.Context, rep EntityRepresent fmt.Errorf("%w due to missing Key Field \"more\" for VeryNestedKey", ErrTypeNotFound)) break } - if m, ok = val.(map[string]interface{}); !ok { + if m, ok = val.(map[string]any); !ok { // nested field value is not a map[string]interface so don't use it entityResolverErrs = append(entityResolverErrs, fmt.Errorf("%w due to nested Key Field \"more\" value not matching map[string]any for VeryNestedKey", ErrTypeNotFound)) @@ -673,7 +673,7 @@ func entityResolverNameForVeryNestedKey(ctx context.Context, rep EntityRepresent fmt.Errorf("%w due to missing Key Field \"world\" for VeryNestedKey", ErrTypeNotFound)) break } - if m, ok = val.(map[string]interface{}); !ok { + if m, ok = val.(map[string]any); !ok { // nested field value is not a map[string]interface so don't use it entityResolverErrs = append(entityResolverErrs, fmt.Errorf("%w due to nested Key Field \"world\" value not matching map[string]any for VeryNestedKey", ErrTypeNotFound)) @@ -706,7 +706,7 @@ func entityResolverNameForWorld(ctx context.Context, rep EntityRepresentation) ( for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -733,7 +733,7 @@ func entityResolverNameForWorld(ctx context.Context, rep EntityRepresentation) ( for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val diff --git a/plugin/federation/testdata/computedrequires/generated/exec.go b/plugin/federation/testdata/computedrequires/generated/exec.go index 5becb497870..1562fc042ff 100644 --- a/plugin/federation/testdata/computedrequires/generated/exec.go +++ b/plugin/federation/testdata/computedrequires/generated/exec.go @@ -75,26 +75,26 @@ type EntityResolver interface { FindWorldWithMultipleKeysByBar(ctx context.Context, bar int) (*model.WorldWithMultipleKeys, error) } type MultiHelloMultipleRequiresResolver interface { - Key3(ctx context.Context, obj *model.MultiHelloMultipleRequires, federationRequires map[string]interface{}) (string, error) + Key3(ctx context.Context, obj *model.MultiHelloMultipleRequires, federationRequires map[string]any) (string, error) } type MultiHelloRequiresResolver interface { - Key2(ctx context.Context, obj *model.MultiHelloRequires, federationRequires map[string]interface{}) (string, error) + Key2(ctx context.Context, obj *model.MultiHelloRequires, federationRequires map[string]any) (string, error) } type MultiPlanetRequiresNestedResolver interface { - Size(ctx context.Context, obj *model.MultiPlanetRequiresNested, federationRequires map[string]interface{}) (int, error) + Size(ctx context.Context, obj *model.MultiPlanetRequiresNested, federationRequires map[string]any) (int, error) } type PersonResolver interface { - WelcomeMessage(ctx context.Context, obj *model.Person, federationRequires map[string]interface{}) (*string, error) + WelcomeMessage(ctx context.Context, obj *model.Person, federationRequires map[string]any) (*string, error) } type PlanetMultipleRequiresResolver interface { - Weight(ctx context.Context, obj *model.PlanetMultipleRequires, foo *string, federationRequires map[string]interface{}) (int, error) + Weight(ctx context.Context, obj *model.PlanetMultipleRequires, foo *string, federationRequires map[string]any) (int, error) } type PlanetRequiresResolver interface { - Size(ctx context.Context, obj *model.PlanetRequires, federationRequires map[string]interface{}) (int, error) + Size(ctx context.Context, obj *model.PlanetRequires, federationRequires map[string]any) (int, error) } type PlanetRequiresNestedResolver interface { - Size(ctx context.Context, obj *model.PlanetRequiresNested, federationRequires map[string]interface{}) (int, error) - Sizes(ctx context.Context, obj *model.PlanetRequiresNested, federationRequires map[string]interface{}) ([]int, error) + Size(ctx context.Context, obj *model.PlanetRequiresNested, federationRequires map[string]any) (int, error) + Sizes(ctx context.Context, obj *model.PlanetRequiresNested, federationRequires map[string]any) ([]int, error) } type QueryResolver interface { Test(ctx context.Context) (*string, error) @@ -139,7 +139,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec @@ -450,9 +450,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Entity_findHelloByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findHelloByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findHelloByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -462,7 +462,7 @@ func (ec *executionContext) field_Entity_findHelloByName_args(ctx context.Contex } func (ec *executionContext) field_Entity_findHelloByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) if tmp, ok := rawArgs["name"]; ok { @@ -473,9 +473,9 @@ func (ec *executionContext) field_Entity_findHelloByName_argsName( return zeroVal, nil } -func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findHelloMultiSingleKeysByKey1AndKey2_argsKey1(ctx, rawArgs) if err != nil { return nil, err @@ -490,7 +490,7 @@ func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_a } func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_argsKey1( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("key1")) if tmp, ok := rawArgs["key1"]; ok { @@ -503,7 +503,7 @@ func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_a func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_argsKey2( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("key2")) if tmp, ok := rawArgs["key2"]; ok { @@ -514,9 +514,9 @@ func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_a return zeroVal, nil } -func (ec *executionContext) field_Entity_findHelloWithErrorsByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findHelloWithErrorsByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findHelloWithErrorsByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -526,7 +526,7 @@ func (ec *executionContext) field_Entity_findHelloWithErrorsByName_args(ctx cont } func (ec *executionContext) field_Entity_findHelloWithErrorsByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) if tmp, ok := rawArgs["name"]; ok { @@ -537,9 +537,9 @@ func (ec *executionContext) field_Entity_findHelloWithErrorsByName_argsName( return zeroVal, nil } -func (ec *executionContext) field_Entity_findManyMultiHelloByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findManyMultiHelloByNames_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findManyMultiHelloByNames_argsReps(ctx, rawArgs) if err != nil { return nil, err @@ -549,7 +549,7 @@ func (ec *executionContext) field_Entity_findManyMultiHelloByNames_args(ctx cont } func (ec *executionContext) field_Entity_findManyMultiHelloByNames_argsReps( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*model.MultiHelloByNamesInput, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("reps")) if tmp, ok := rawArgs["reps"]; ok { @@ -560,9 +560,9 @@ func (ec *executionContext) field_Entity_findManyMultiHelloByNames_argsReps( return zeroVal, nil } -func (ec *executionContext) field_Entity_findManyMultiHelloMultipleRequiresByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findManyMultiHelloMultipleRequiresByNames_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findManyMultiHelloMultipleRequiresByNames_argsReps(ctx, rawArgs) if err != nil { return nil, err @@ -572,7 +572,7 @@ func (ec *executionContext) field_Entity_findManyMultiHelloMultipleRequiresByNam } func (ec *executionContext) field_Entity_findManyMultiHelloMultipleRequiresByNames_argsReps( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*model.MultiHelloMultipleRequiresByNamesInput, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("reps")) if tmp, ok := rawArgs["reps"]; ok { @@ -583,9 +583,9 @@ func (ec *executionContext) field_Entity_findManyMultiHelloMultipleRequiresByNam return zeroVal, nil } -func (ec *executionContext) field_Entity_findManyMultiHelloRequiresByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findManyMultiHelloRequiresByNames_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findManyMultiHelloRequiresByNames_argsReps(ctx, rawArgs) if err != nil { return nil, err @@ -595,7 +595,7 @@ func (ec *executionContext) field_Entity_findManyMultiHelloRequiresByNames_args( } func (ec *executionContext) field_Entity_findManyMultiHelloRequiresByNames_argsReps( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*model.MultiHelloRequiresByNamesInput, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("reps")) if tmp, ok := rawArgs["reps"]; ok { @@ -606,9 +606,9 @@ func (ec *executionContext) field_Entity_findManyMultiHelloRequiresByNames_argsR return zeroVal, nil } -func (ec *executionContext) field_Entity_findManyMultiHelloWithErrorByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findManyMultiHelloWithErrorByNames_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findManyMultiHelloWithErrorByNames_argsReps(ctx, rawArgs) if err != nil { return nil, err @@ -618,7 +618,7 @@ func (ec *executionContext) field_Entity_findManyMultiHelloWithErrorByNames_args } func (ec *executionContext) field_Entity_findManyMultiHelloWithErrorByNames_argsReps( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*model.MultiHelloWithErrorByNamesInput, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("reps")) if tmp, ok := rawArgs["reps"]; ok { @@ -629,9 +629,9 @@ func (ec *executionContext) field_Entity_findManyMultiHelloWithErrorByNames_args return zeroVal, nil } -func (ec *executionContext) field_Entity_findManyMultiPlanetRequiresNestedByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findManyMultiPlanetRequiresNestedByNames_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findManyMultiPlanetRequiresNestedByNames_argsReps(ctx, rawArgs) if err != nil { return nil, err @@ -641,7 +641,7 @@ func (ec *executionContext) field_Entity_findManyMultiPlanetRequiresNestedByName } func (ec *executionContext) field_Entity_findManyMultiPlanetRequiresNestedByNames_argsReps( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*model.MultiPlanetRequiresNestedByNamesInput, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("reps")) if tmp, ok := rawArgs["reps"]; ok { @@ -652,9 +652,9 @@ func (ec *executionContext) field_Entity_findManyMultiPlanetRequiresNestedByName return zeroVal, nil } -func (ec *executionContext) field_Entity_findPersonByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findPersonByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findPersonByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -664,7 +664,7 @@ func (ec *executionContext) field_Entity_findPersonByName_args(ctx context.Conte } func (ec *executionContext) field_Entity_findPersonByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) if tmp, ok := rawArgs["name"]; ok { @@ -675,9 +675,9 @@ func (ec *executionContext) field_Entity_findPersonByName_argsName( return zeroVal, nil } -func (ec *executionContext) field_Entity_findPlanetMultipleRequiresByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findPlanetMultipleRequiresByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findPlanetMultipleRequiresByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -687,7 +687,7 @@ func (ec *executionContext) field_Entity_findPlanetMultipleRequiresByName_args(c } func (ec *executionContext) field_Entity_findPlanetMultipleRequiresByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) if tmp, ok := rawArgs["name"]; ok { @@ -698,9 +698,9 @@ func (ec *executionContext) field_Entity_findPlanetMultipleRequiresByName_argsNa return zeroVal, nil } -func (ec *executionContext) field_Entity_findPlanetRequiresByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findPlanetRequiresByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findPlanetRequiresByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -710,7 +710,7 @@ func (ec *executionContext) field_Entity_findPlanetRequiresByName_args(ctx conte } func (ec *executionContext) field_Entity_findPlanetRequiresByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) if tmp, ok := rawArgs["name"]; ok { @@ -721,9 +721,9 @@ func (ec *executionContext) field_Entity_findPlanetRequiresByName_argsName( return zeroVal, nil } -func (ec *executionContext) field_Entity_findPlanetRequiresNestedByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findPlanetRequiresNestedByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findPlanetRequiresNestedByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -733,7 +733,7 @@ func (ec *executionContext) field_Entity_findPlanetRequiresNestedByName_args(ctx } func (ec *executionContext) field_Entity_findPlanetRequiresNestedByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) if tmp, ok := rawArgs["name"]; ok { @@ -744,9 +744,9 @@ func (ec *executionContext) field_Entity_findPlanetRequiresNestedByName_argsName return zeroVal, nil } -func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findWorldByHelloNameAndFoo_argsHelloName(ctx, rawArgs) if err != nil { return nil, err @@ -761,7 +761,7 @@ func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_args(ctx con } func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_argsHelloName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("helloName")) if tmp, ok := rawArgs["helloName"]; ok { @@ -774,7 +774,7 @@ func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_argsHelloNam func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_argsFoo( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("foo")) if tmp, ok := rawArgs["foo"]; ok { @@ -785,9 +785,9 @@ func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_argsFoo( return zeroVal, nil } -func (ec *executionContext) field_Entity_findWorldNameByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findWorldNameByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findWorldNameByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -797,7 +797,7 @@ func (ec *executionContext) field_Entity_findWorldNameByName_args(ctx context.Co } func (ec *executionContext) field_Entity_findWorldNameByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) if tmp, ok := rawArgs["name"]; ok { @@ -808,9 +808,9 @@ func (ec *executionContext) field_Entity_findWorldNameByName_argsName( return zeroVal, nil } -func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByBar_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByBar_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findWorldWithMultipleKeysByBar_argsBar(ctx, rawArgs) if err != nil { return nil, err @@ -820,7 +820,7 @@ func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByBar_args(ctx } func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByBar_argsBar( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (int, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("bar")) if tmp, ok := rawArgs["bar"]; ok { @@ -831,9 +831,9 @@ func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByBar_argsBar( return zeroVal, nil } -func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_argsHelloName(ctx, rawArgs) if err != nil { return nil, err @@ -848,7 +848,7 @@ func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAnd } func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_argsHelloName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("helloName")) if tmp, ok := rawArgs["helloName"]; ok { @@ -861,7 +861,7 @@ func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAnd func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_argsFoo( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("foo")) if tmp, ok := rawArgs["foo"]; ok { @@ -872,9 +872,9 @@ func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAnd return zeroVal, nil } -func (ec *executionContext) field_MultiHelloMultipleRequires_key3_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_MultiHelloMultipleRequires_key3_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_MultiHelloMultipleRequires_key3_argsFederationRequires(ctx, rawArgs) if err != nil { return nil, err @@ -884,41 +884,41 @@ func (ec *executionContext) field_MultiHelloMultipleRequires_key3_args(ctx conte } func (ec *executionContext) field_MultiHelloMultipleRequires_key3_argsFederationRequires( ctx context.Context, - rawArgs map[string]interface{}, -) (map[string]interface{}, error) { + rawArgs map[string]any, +) (map[string]any, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("_federationRequires")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["_federationRequires"] if !ok { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } return ec.unmarshalO_RequiresMap2map(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { return builtInDirectivePopulateFromRepresentations(ctx, rawArgs, directive0) } tmp, err := directive1(ctx) if err != nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, graphql.ErrorOnPath(ctx, err) } - if data, ok := tmp.(map[string]interface{}); ok { + if data, ok := tmp.(map[string]any); ok { return data, nil } else if tmp == nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } else { - var zeroVal map[string]interface{} - return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]interface{}`, tmp)) + var zeroVal map[string]any + return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]any`, tmp)) } } -func (ec *executionContext) field_MultiHelloRequires_key2_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_MultiHelloRequires_key2_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_MultiHelloRequires_key2_argsFederationRequires(ctx, rawArgs) if err != nil { return nil, err @@ -928,41 +928,41 @@ func (ec *executionContext) field_MultiHelloRequires_key2_args(ctx context.Conte } func (ec *executionContext) field_MultiHelloRequires_key2_argsFederationRequires( ctx context.Context, - rawArgs map[string]interface{}, -) (map[string]interface{}, error) { + rawArgs map[string]any, +) (map[string]any, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("_federationRequires")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["_federationRequires"] if !ok { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } return ec.unmarshalO_RequiresMap2map(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { return builtInDirectivePopulateFromRepresentations(ctx, rawArgs, directive0) } tmp, err := directive1(ctx) if err != nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, graphql.ErrorOnPath(ctx, err) } - if data, ok := tmp.(map[string]interface{}); ok { + if data, ok := tmp.(map[string]any); ok { return data, nil } else if tmp == nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } else { - var zeroVal map[string]interface{} - return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]interface{}`, tmp)) + var zeroVal map[string]any + return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]any`, tmp)) } } -func (ec *executionContext) field_MultiPlanetRequiresNested_size_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_MultiPlanetRequiresNested_size_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_MultiPlanetRequiresNested_size_argsFederationRequires(ctx, rawArgs) if err != nil { return nil, err @@ -972,41 +972,41 @@ func (ec *executionContext) field_MultiPlanetRequiresNested_size_args(ctx contex } func (ec *executionContext) field_MultiPlanetRequiresNested_size_argsFederationRequires( ctx context.Context, - rawArgs map[string]interface{}, -) (map[string]interface{}, error) { + rawArgs map[string]any, +) (map[string]any, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("_federationRequires")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["_federationRequires"] if !ok { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } return ec.unmarshalO_RequiresMap2map(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { return builtInDirectivePopulateFromRepresentations(ctx, rawArgs, directive0) } tmp, err := directive1(ctx) if err != nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, graphql.ErrorOnPath(ctx, err) } - if data, ok := tmp.(map[string]interface{}); ok { + if data, ok := tmp.(map[string]any); ok { return data, nil } else if tmp == nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } else { - var zeroVal map[string]interface{} - return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]interface{}`, tmp)) + var zeroVal map[string]any + return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]any`, tmp)) } } -func (ec *executionContext) field_Person_welcomeMessage_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Person_welcomeMessage_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Person_welcomeMessage_argsFederationRequires(ctx, rawArgs) if err != nil { return nil, err @@ -1016,41 +1016,41 @@ func (ec *executionContext) field_Person_welcomeMessage_args(ctx context.Context } func (ec *executionContext) field_Person_welcomeMessage_argsFederationRequires( ctx context.Context, - rawArgs map[string]interface{}, -) (map[string]interface{}, error) { + rawArgs map[string]any, +) (map[string]any, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("_federationRequires")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["_federationRequires"] if !ok { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } return ec.unmarshalO_RequiresMap2map(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { return builtInDirectivePopulateFromRepresentations(ctx, rawArgs, directive0) } tmp, err := directive1(ctx) if err != nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, graphql.ErrorOnPath(ctx, err) } - if data, ok := tmp.(map[string]interface{}); ok { + if data, ok := tmp.(map[string]any); ok { return data, nil } else if tmp == nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } else { - var zeroVal map[string]interface{} - return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]interface{}`, tmp)) + var zeroVal map[string]any + return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]any`, tmp)) } } -func (ec *executionContext) field_PlanetMultipleRequires_anotherField_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_PlanetMultipleRequires_anotherField_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_PlanetMultipleRequires_anotherField_argsFoobar(ctx, rawArgs) if err != nil { return nil, err @@ -1060,7 +1060,7 @@ func (ec *executionContext) field_PlanetMultipleRequires_anotherField_args(ctx c } func (ec *executionContext) field_PlanetMultipleRequires_anotherField_argsFoobar( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("foobar")) if tmp, ok := rawArgs["foobar"]; ok { @@ -1071,9 +1071,9 @@ func (ec *executionContext) field_PlanetMultipleRequires_anotherField_argsFoobar return zeroVal, nil } -func (ec *executionContext) field_PlanetMultipleRequires_weight_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_PlanetMultipleRequires_weight_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_PlanetMultipleRequires_weight_argsFoo(ctx, rawArgs) if err != nil { return nil, err @@ -1088,7 +1088,7 @@ func (ec *executionContext) field_PlanetMultipleRequires_weight_args(ctx context } func (ec *executionContext) field_PlanetMultipleRequires_weight_argsFoo( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("foo")) if tmp, ok := rawArgs["foo"]; ok { @@ -1101,41 +1101,41 @@ func (ec *executionContext) field_PlanetMultipleRequires_weight_argsFoo( func (ec *executionContext) field_PlanetMultipleRequires_weight_argsFederationRequires( ctx context.Context, - rawArgs map[string]interface{}, -) (map[string]interface{}, error) { + rawArgs map[string]any, +) (map[string]any, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("_federationRequires")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["_federationRequires"] if !ok { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } return ec.unmarshalO_RequiresMap2map(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { return builtInDirectivePopulateFromRepresentations(ctx, rawArgs, directive0) } tmp, err := directive1(ctx) if err != nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, graphql.ErrorOnPath(ctx, err) } - if data, ok := tmp.(map[string]interface{}); ok { + if data, ok := tmp.(map[string]any); ok { return data, nil } else if tmp == nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } else { - var zeroVal map[string]interface{} - return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]interface{}`, tmp)) + var zeroVal map[string]any + return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]any`, tmp)) } } -func (ec *executionContext) field_PlanetRequiresNested_size_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_PlanetRequiresNested_size_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_PlanetRequiresNested_size_argsFederationRequires(ctx, rawArgs) if err != nil { return nil, err @@ -1145,41 +1145,41 @@ func (ec *executionContext) field_PlanetRequiresNested_size_args(ctx context.Con } func (ec *executionContext) field_PlanetRequiresNested_size_argsFederationRequires( ctx context.Context, - rawArgs map[string]interface{}, -) (map[string]interface{}, error) { + rawArgs map[string]any, +) (map[string]any, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("_federationRequires")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["_federationRequires"] if !ok { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } return ec.unmarshalO_RequiresMap2map(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { return builtInDirectivePopulateFromRepresentations(ctx, rawArgs, directive0) } tmp, err := directive1(ctx) if err != nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, graphql.ErrorOnPath(ctx, err) } - if data, ok := tmp.(map[string]interface{}); ok { + if data, ok := tmp.(map[string]any); ok { return data, nil } else if tmp == nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } else { - var zeroVal map[string]interface{} - return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]interface{}`, tmp)) + var zeroVal map[string]any + return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]any`, tmp)) } } -func (ec *executionContext) field_PlanetRequiresNested_sizes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_PlanetRequiresNested_sizes_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_PlanetRequiresNested_sizes_argsFederationRequires(ctx, rawArgs) if err != nil { return nil, err @@ -1189,41 +1189,41 @@ func (ec *executionContext) field_PlanetRequiresNested_sizes_args(ctx context.Co } func (ec *executionContext) field_PlanetRequiresNested_sizes_argsFederationRequires( ctx context.Context, - rawArgs map[string]interface{}, -) (map[string]interface{}, error) { + rawArgs map[string]any, +) (map[string]any, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("_federationRequires")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["_federationRequires"] if !ok { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } return ec.unmarshalO_RequiresMap2map(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { return builtInDirectivePopulateFromRepresentations(ctx, rawArgs, directive0) } tmp, err := directive1(ctx) if err != nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, graphql.ErrorOnPath(ctx, err) } - if data, ok := tmp.(map[string]interface{}); ok { + if data, ok := tmp.(map[string]any); ok { return data, nil } else if tmp == nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } else { - var zeroVal map[string]interface{} - return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]interface{}`, tmp)) + var zeroVal map[string]any + return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]any`, tmp)) } } -func (ec *executionContext) field_PlanetRequires_size_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_PlanetRequires_size_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_PlanetRequires_size_argsFederationRequires(ctx, rawArgs) if err != nil { return nil, err @@ -1233,41 +1233,41 @@ func (ec *executionContext) field_PlanetRequires_size_args(ctx context.Context, } func (ec *executionContext) field_PlanetRequires_size_argsFederationRequires( ctx context.Context, - rawArgs map[string]interface{}, -) (map[string]interface{}, error) { + rawArgs map[string]any, +) (map[string]any, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("_federationRequires")) - directive0 := func(ctx context.Context) (interface{}, error) { + directive0 := func(ctx context.Context) (any, error) { tmp, ok := rawArgs["_federationRequires"] if !ok { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } return ec.unmarshalO_RequiresMap2map(ctx, tmp) } - directive1 := func(ctx context.Context) (interface{}, error) { + directive1 := func(ctx context.Context) (any, error) { return builtInDirectivePopulateFromRepresentations(ctx, rawArgs, directive0) } tmp, err := directive1(ctx) if err != nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, graphql.ErrorOnPath(ctx, err) } - if data, ok := tmp.(map[string]interface{}); ok { + if data, ok := tmp.(map[string]any); ok { return data, nil } else if tmp == nil { - var zeroVal map[string]interface{} + var zeroVal map[string]any return zeroVal, nil } else { - var zeroVal map[string]interface{} - return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]interface{}`, tmp)) + var zeroVal map[string]any + return zeroVal, graphql.ErrorOnPath(ctx, fmt.Errorf(`unexpected type %T from directive, should be map[string]any`, tmp)) } } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -1277,7 +1277,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) if tmp, ok := rawArgs["name"]; ok { @@ -1288,9 +1288,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query__entities_argsRepresentations(ctx, rawArgs) if err != nil { return nil, err @@ -1300,20 +1300,20 @@ func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawA } func (ec *executionContext) field_Query__entities_argsRepresentations( ctx context.Context, - rawArgs map[string]interface{}, -) ([]map[string]interface{}, error) { + rawArgs map[string]any, +) ([]map[string]any, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("representations")) if tmp, ok := rawArgs["representations"]; ok { return ec.unmarshalN_Any2ᚕmapᚄ(ctx, tmp) } - var zeroVal []map[string]interface{} + var zeroVal []map[string]any return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -1323,7 +1323,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) if tmp, ok := rawArgs["includeDeprecated"]; ok { @@ -1334,9 +1334,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -1346,7 +1346,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) if tmp, ok := rawArgs["includeDeprecated"]; ok { @@ -1377,7 +1377,7 @@ func (ec *executionContext) _Entity_findHelloByName(ctx context.Context, field g ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindHelloByName(rctx, fc.Args["name"].(string)) }) @@ -1438,7 +1438,7 @@ func (ec *executionContext) _Entity_findHelloMultiSingleKeysByKey1AndKey2(ctx co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindHelloMultiSingleKeysByKey1AndKey2(rctx, fc.Args["key1"].(string), fc.Args["key2"].(string)) }) @@ -1499,7 +1499,7 @@ func (ec *executionContext) _Entity_findHelloWithErrorsByName(ctx context.Contex ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindHelloWithErrorsByName(rctx, fc.Args["name"].(string)) }) @@ -1558,7 +1558,7 @@ func (ec *executionContext) _Entity_findManyMultiHelloByNames(ctx context.Contex ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiHelloByNames(rctx, fc.Args["reps"].([]*model.MultiHelloByNamesInput)) }) @@ -1614,7 +1614,7 @@ func (ec *executionContext) _Entity_findManyMultiHelloMultipleRequiresByNames(ct ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiHelloMultipleRequiresByNames(rctx, fc.Args["reps"].([]*model.MultiHelloMultipleRequiresByNamesInput)) }) @@ -1676,7 +1676,7 @@ func (ec *executionContext) _Entity_findManyMultiHelloRequiresByNames(ctx contex ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiHelloRequiresByNames(rctx, fc.Args["reps"].([]*model.MultiHelloRequiresByNamesInput)) }) @@ -1736,7 +1736,7 @@ func (ec *executionContext) _Entity_findManyMultiHelloWithErrorByNames(ctx conte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiHelloWithErrorByNames(rctx, fc.Args["reps"].([]*model.MultiHelloWithErrorByNamesInput)) }) @@ -1792,7 +1792,7 @@ func (ec *executionContext) _Entity_findManyMultiPlanetRequiresNestedByNames(ctx ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiPlanetRequiresNestedByNames(rctx, fc.Args["reps"].([]*model.MultiPlanetRequiresNestedByNamesInput)) }) @@ -1852,7 +1852,7 @@ func (ec *executionContext) _Entity_findPersonByName(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindPersonByName(rctx, fc.Args["name"].(string)) }) @@ -1915,7 +1915,7 @@ func (ec *executionContext) _Entity_findPlanetMultipleRequiresByName(ctx context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindPlanetMultipleRequiresByName(rctx, fc.Args["name"].(string)) }) @@ -1982,7 +1982,7 @@ func (ec *executionContext) _Entity_findPlanetRequiresByName(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindPlanetRequiresByName(rctx, fc.Args["name"].(string)) }) @@ -2045,7 +2045,7 @@ func (ec *executionContext) _Entity_findPlanetRequiresNestedByName(ctx context.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindPlanetRequiresNestedByName(rctx, fc.Args["name"].(string)) }) @@ -2112,7 +2112,7 @@ func (ec *executionContext) _Entity_findWorldByHelloNameAndFoo(ctx context.Conte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindWorldByHelloNameAndFoo(rctx, fc.Args["helloName"].(string), fc.Args["foo"].(string)) }) @@ -2175,7 +2175,7 @@ func (ec *executionContext) _Entity_findWorldNameByName(ctx context.Context, fie ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindWorldNameByName(rctx, fc.Args["name"].(string)) }) @@ -2234,7 +2234,7 @@ func (ec *executionContext) _Entity_findWorldWithMultipleKeysByHelloNameAndFoo(c ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindWorldWithMultipleKeysByHelloNameAndFoo(rctx, fc.Args["helloName"].(string), fc.Args["foo"].(string)) }) @@ -2297,7 +2297,7 @@ func (ec *executionContext) _Entity_findWorldWithMultipleKeysByBar(ctx context.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindWorldWithMultipleKeysByBar(rctx, fc.Args["bar"].(int)) }) @@ -2360,7 +2360,7 @@ func (ec *executionContext) _Female_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description, nil }) @@ -2404,7 +2404,7 @@ func (ec *executionContext) _Hello_name(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2448,7 +2448,7 @@ func (ec *executionContext) _Hello_secondary(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Secondary, nil }) @@ -2492,7 +2492,7 @@ func (ec *executionContext) _HelloMultiSingleKeys_key1(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key1, nil }) @@ -2536,7 +2536,7 @@ func (ec *executionContext) _HelloMultiSingleKeys_key2(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key2, nil }) @@ -2580,7 +2580,7 @@ func (ec *executionContext) _HelloWithErrors_name(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2624,7 +2624,7 @@ func (ec *executionContext) _Male_description(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description, nil }) @@ -2668,7 +2668,7 @@ func (ec *executionContext) _MultiHello_name(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2712,7 +2712,7 @@ func (ec *executionContext) _MultiHelloMultipleRequires_name(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2756,7 +2756,7 @@ func (ec *executionContext) _MultiHelloMultipleRequires_key1(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key1, nil }) @@ -2800,7 +2800,7 @@ func (ec *executionContext) _MultiHelloMultipleRequires_key2(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key2, nil }) @@ -2844,9 +2844,9 @@ func (ec *executionContext) _MultiHelloMultipleRequires_key3(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.MultiHelloMultipleRequires().Key3(rctx, obj, fc.Args["_federationRequires"].(map[string]interface{})) + return ec.resolvers.MultiHelloMultipleRequires().Key3(rctx, obj, fc.Args["_federationRequires"].(map[string]any)) }) if err != nil { ec.Error(ctx, err) @@ -2899,7 +2899,7 @@ func (ec *executionContext) _MultiHelloRequires_name(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2943,7 +2943,7 @@ func (ec *executionContext) _MultiHelloRequires_key1(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key1, nil }) @@ -2987,9 +2987,9 @@ func (ec *executionContext) _MultiHelloRequires_key2(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.MultiHelloRequires().Key2(rctx, obj, fc.Args["_federationRequires"].(map[string]interface{})) + return ec.resolvers.MultiHelloRequires().Key2(rctx, obj, fc.Args["_federationRequires"].(map[string]any)) }) if err != nil { ec.Error(ctx, err) @@ -3042,7 +3042,7 @@ func (ec *executionContext) _MultiHelloWithError_name(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3086,7 +3086,7 @@ func (ec *executionContext) _MultiPlanetRequiresNested_name(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3130,7 +3130,7 @@ func (ec *executionContext) _MultiPlanetRequiresNested_world(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.World, nil }) @@ -3182,9 +3182,9 @@ func (ec *executionContext) _MultiPlanetRequiresNested_size(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.MultiPlanetRequiresNested().Size(rctx, obj, fc.Args["_federationRequires"].(map[string]interface{})) + return ec.resolvers.MultiPlanetRequiresNested().Size(rctx, obj, fc.Args["_federationRequires"].(map[string]any)) }) if err != nil { ec.Error(ctx, err) @@ -3237,7 +3237,7 @@ func (ec *executionContext) _Person_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3281,7 +3281,7 @@ func (ec *executionContext) _Person_gender(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Gender, nil }) @@ -3325,9 +3325,9 @@ func (ec *executionContext) _Person_welcomeMessage(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Person().WelcomeMessage(rctx, obj, fc.Args["_federationRequires"].(map[string]interface{})) + return ec.resolvers.Person().WelcomeMessage(rctx, obj, fc.Args["_federationRequires"].(map[string]any)) }) if err != nil { ec.Error(ctx, err) @@ -3377,7 +3377,7 @@ func (ec *executionContext) _PlanetMultipleRequires_name(ctx context.Context, fi ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3421,7 +3421,7 @@ func (ec *executionContext) _PlanetMultipleRequires_diameter(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Diameter, nil }) @@ -3465,7 +3465,7 @@ func (ec *executionContext) _PlanetMultipleRequires_density(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Density, nil }) @@ -3509,9 +3509,9 @@ func (ec *executionContext) _PlanetMultipleRequires_weight(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanetMultipleRequires().Weight(rctx, obj, fc.Args["foo"].(*string), fc.Args["_federationRequires"].(map[string]interface{})) + return ec.resolvers.PlanetMultipleRequires().Weight(rctx, obj, fc.Args["foo"].(*string), fc.Args["_federationRequires"].(map[string]any)) }) if err != nil { ec.Error(ctx, err) @@ -3564,7 +3564,7 @@ func (ec *executionContext) _PlanetMultipleRequires_anotherField(ctx context.Con ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.AnotherField, nil }) @@ -3616,7 +3616,7 @@ func (ec *executionContext) _PlanetRequires_name(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3660,9 +3660,9 @@ func (ec *executionContext) _PlanetRequires_size(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanetRequires().Size(rctx, obj, fc.Args["_federationRequires"].(map[string]interface{})) + return ec.resolvers.PlanetRequires().Size(rctx, obj, fc.Args["_federationRequires"].(map[string]any)) }) if err != nil { ec.Error(ctx, err) @@ -3715,7 +3715,7 @@ func (ec *executionContext) _PlanetRequires_diameter(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Diameter, nil }) @@ -3759,7 +3759,7 @@ func (ec *executionContext) _PlanetRequiresNested_name(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3803,7 +3803,7 @@ func (ec *executionContext) _PlanetRequiresNested_world(ctx context.Context, fie ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.World, nil }) @@ -3855,7 +3855,7 @@ func (ec *executionContext) _PlanetRequiresNested_worlds(ctx context.Context, fi ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Worlds, nil }) @@ -3904,9 +3904,9 @@ func (ec *executionContext) _PlanetRequiresNested_size(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanetRequiresNested().Size(rctx, obj, fc.Args["_federationRequires"].(map[string]interface{})) + return ec.resolvers.PlanetRequiresNested().Size(rctx, obj, fc.Args["_federationRequires"].(map[string]any)) }) if err != nil { ec.Error(ctx, err) @@ -3959,9 +3959,9 @@ func (ec *executionContext) _PlanetRequiresNested_sizes(ctx context.Context, fie ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanetRequiresNested().Sizes(rctx, obj, fc.Args["_federationRequires"].(map[string]interface{})) + return ec.resolvers.PlanetRequiresNested().Sizes(rctx, obj, fc.Args["_federationRequires"].(map[string]any)) }) if err != nil { ec.Error(ctx, err) @@ -4011,7 +4011,7 @@ func (ec *executionContext) _Query_test(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().Test(rctx) }) @@ -4052,9 +4052,9 @@ func (ec *executionContext) _Query__entities(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.__resolve_entities(ctx, fc.Args["representations"].([]map[string]interface{})), nil + return ec.__resolve_entities(ctx, fc.Args["representations"].([]map[string]any)), nil }) if err != nil { ec.Error(ctx, err) @@ -4107,7 +4107,7 @@ func (ec *executionContext) _Query__service(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.__resolve__service(ctx) }) @@ -4155,7 +4155,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -4229,7 +4229,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -4284,7 +4284,7 @@ func (ec *executionContext) _World_foo(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Foo, nil }) @@ -4328,7 +4328,7 @@ func (ec *executionContext) _World_bar(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Bar, nil }) @@ -4372,7 +4372,7 @@ func (ec *executionContext) _World_hello(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Hello, nil }) @@ -4419,7 +4419,7 @@ func (ec *executionContext) _WorldName_name(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -4463,7 +4463,7 @@ func (ec *executionContext) _WorldWithMultipleKeys_foo(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Foo, nil }) @@ -4507,7 +4507,7 @@ func (ec *executionContext) _WorldWithMultipleKeys_bar(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Bar, nil }) @@ -4551,7 +4551,7 @@ func (ec *executionContext) _WorldWithMultipleKeys_hello(ctx context.Context, fi ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Hello, nil }) @@ -4598,7 +4598,7 @@ func (ec *executionContext) __Service_sdl(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SDL, nil }) @@ -4639,7 +4639,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -4683,7 +4683,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -4724,7 +4724,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -4768,7 +4768,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -4822,7 +4822,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -4866,7 +4866,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -4910,7 +4910,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -4951,7 +4951,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -4995,7 +4995,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -5036,7 +5036,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -5080,7 +5080,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -5121,7 +5121,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -5175,7 +5175,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -5241,7 +5241,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -5285,7 +5285,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -5326,7 +5326,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -5370,7 +5370,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -5411,7 +5411,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -5477,7 +5477,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -5518,7 +5518,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -5559,7 +5559,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -5625,7 +5625,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -5691,7 +5691,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -5754,7 +5754,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -5817,7 +5817,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -5873,7 +5873,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -5917,7 +5917,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -5958,7 +5958,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -5999,7 +5999,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -6065,7 +6065,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -6128,7 +6128,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -6191,7 +6191,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -6253,7 +6253,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -6304,7 +6304,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -6367,7 +6367,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -6400,10 +6400,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputMultiHelloByNamesInput(ctx context.Context, obj interface{}) (model.MultiHelloByNamesInput, error) { +func (ec *executionContext) unmarshalInputMultiHelloByNamesInput(ctx context.Context, obj any) (model.MultiHelloByNamesInput, error) { var it model.MultiHelloByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6427,10 +6427,10 @@ func (ec *executionContext) unmarshalInputMultiHelloByNamesInput(ctx context.Con return it, nil } -func (ec *executionContext) unmarshalInputMultiHelloMultipleRequiresByNamesInput(ctx context.Context, obj interface{}) (model.MultiHelloMultipleRequiresByNamesInput, error) { +func (ec *executionContext) unmarshalInputMultiHelloMultipleRequiresByNamesInput(ctx context.Context, obj any) (model.MultiHelloMultipleRequiresByNamesInput, error) { var it model.MultiHelloMultipleRequiresByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6454,10 +6454,10 @@ func (ec *executionContext) unmarshalInputMultiHelloMultipleRequiresByNamesInput return it, nil } -func (ec *executionContext) unmarshalInputMultiHelloRequiresByNamesInput(ctx context.Context, obj interface{}) (model.MultiHelloRequiresByNamesInput, error) { +func (ec *executionContext) unmarshalInputMultiHelloRequiresByNamesInput(ctx context.Context, obj any) (model.MultiHelloRequiresByNamesInput, error) { var it model.MultiHelloRequiresByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6481,10 +6481,10 @@ func (ec *executionContext) unmarshalInputMultiHelloRequiresByNamesInput(ctx con return it, nil } -func (ec *executionContext) unmarshalInputMultiHelloWithErrorByNamesInput(ctx context.Context, obj interface{}) (model.MultiHelloWithErrorByNamesInput, error) { +func (ec *executionContext) unmarshalInputMultiHelloWithErrorByNamesInput(ctx context.Context, obj any) (model.MultiHelloWithErrorByNamesInput, error) { var it model.MultiHelloWithErrorByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6508,10 +6508,10 @@ func (ec *executionContext) unmarshalInputMultiHelloWithErrorByNamesInput(ctx co return it, nil } -func (ec *executionContext) unmarshalInputMultiPlanetRequiresNestedByNamesInput(ctx context.Context, obj interface{}) (model.MultiPlanetRequiresNestedByNamesInput, error) { +func (ec *executionContext) unmarshalInputMultiPlanetRequiresNestedByNamesInput(ctx context.Context, obj any) (model.MultiPlanetRequiresNestedByNamesInput, error) { var it model.MultiPlanetRequiresNestedByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -8552,7 +8552,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8567,7 +8567,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNFieldSet2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNFieldSet2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8634,7 +8634,7 @@ func (ec *executionContext) marshalNHelloWithErrors2ᚖgithubᚗcomᚋ99designs return ec._HelloWithErrors(ctx, sel, v) } -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8649,8 +8649,8 @@ func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.Selecti return res } -func (ec *executionContext) unmarshalNMultiHelloByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiHelloByNamesInput(ctx context.Context, v interface{}) ([]*model.MultiHelloByNamesInput, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNMultiHelloByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiHelloByNamesInput(ctx context.Context, v any) ([]*model.MultiHelloByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -8666,8 +8666,8 @@ func (ec *executionContext) unmarshalNMultiHelloByNamesInput2ᚕᚖgithubᚗcom return res, nil } -func (ec *executionContext) unmarshalNMultiHelloMultipleRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiHelloMultipleRequiresByNamesInput(ctx context.Context, v interface{}) ([]*model.MultiHelloMultipleRequiresByNamesInput, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNMultiHelloMultipleRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiHelloMultipleRequiresByNamesInput(ctx context.Context, v any) ([]*model.MultiHelloMultipleRequiresByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -8683,8 +8683,8 @@ func (ec *executionContext) unmarshalNMultiHelloMultipleRequiresByNamesInput2ᚕ return res, nil } -func (ec *executionContext) unmarshalNMultiHelloRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiHelloRequiresByNamesInput(ctx context.Context, v interface{}) ([]*model.MultiHelloRequiresByNamesInput, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNMultiHelloRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiHelloRequiresByNamesInput(ctx context.Context, v any) ([]*model.MultiHelloRequiresByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -8700,8 +8700,8 @@ func (ec *executionContext) unmarshalNMultiHelloRequiresByNamesInput2ᚕᚖgithu return res, nil } -func (ec *executionContext) unmarshalNMultiHelloWithErrorByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiHelloWithErrorByNamesInput(ctx context.Context, v interface{}) ([]*model.MultiHelloWithErrorByNamesInput, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNMultiHelloWithErrorByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiHelloWithErrorByNamesInput(ctx context.Context, v any) ([]*model.MultiHelloWithErrorByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -8717,8 +8717,8 @@ func (ec *executionContext) unmarshalNMultiHelloWithErrorByNamesInput2ᚕᚖgith return res, nil } -func (ec *executionContext) unmarshalNMultiPlanetRequiresNestedByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiPlanetRequiresNestedByNamesInput(ctx context.Context, v interface{}) ([]*model.MultiPlanetRequiresNestedByNamesInput, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNMultiPlanetRequiresNestedByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiPlanetRequiresNestedByNamesInput(ctx context.Context, v any) ([]*model.MultiPlanetRequiresNestedByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -8790,7 +8790,7 @@ func (ec *executionContext) marshalNPlanetRequiresNested2ᚖgithubᚗcomᚋ99des return ec._PlanetRequiresNested(ctx, sel, v) } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8847,12 +8847,12 @@ func (ec *executionContext) marshalNWorldWithMultipleKeys2ᚖgithubᚗcomᚋ99de return ec._WorldWithMultipleKeys(ctx, sel, v) } -func (ec *executionContext) unmarshalN_Any2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalN_Any2map(ctx context.Context, v any) (map[string]any, error) { res, err := graphql.UnmarshalMap(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.SelectionSet, v map[string]any) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -8868,13 +8868,13 @@ func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.Select return res } -func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v interface{}) ([]map[string]interface{}, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v any) ([]map[string]any, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } var err error - res := make([]map[string]interface{}, len(vSlice)) + res := make([]map[string]any, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) res[i], err = ec.unmarshalN_Any2map(ctx, vSlice[i]) @@ -8885,7 +8885,7 @@ func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v inte return res, nil } -func (ec *executionContext) marshalN_Any2ᚕmapᚄ(ctx context.Context, sel ast.SelectionSet, v []map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalN_Any2ᚕmapᚄ(ctx context.Context, sel ast.SelectionSet, v []map[string]any) graphql.Marshaler { ret := make(graphql.Array, len(v)) for i := range v { ret[i] = ec.marshalN_Any2map(ctx, sel, v[i]) @@ -8990,7 +8990,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -9005,8 +9005,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -9180,7 +9180,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -9195,7 +9195,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalNfederation__Policy2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNfederation__Policy2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -9210,8 +9210,8 @@ func (ec *executionContext) marshalNfederation__Policy2string(ctx context.Contex return res } -func (ec *executionContext) unmarshalNfederation__Policy2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNfederation__Policy2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -9242,8 +9242,8 @@ func (ec *executionContext) marshalNfederation__Policy2ᚕstringᚄ(ctx context. return ret } -func (ec *executionContext) unmarshalNfederation__Policy2ᚕᚕstringᚄ(ctx context.Context, v interface{}) ([][]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNfederation__Policy2ᚕᚕstringᚄ(ctx context.Context, v any) ([][]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -9274,7 +9274,7 @@ func (ec *executionContext) marshalNfederation__Policy2ᚕᚕstringᚄ(ctx conte return ret } -func (ec *executionContext) unmarshalNfederation__Scope2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNfederation__Scope2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -9289,8 +9289,8 @@ func (ec *executionContext) marshalNfederation__Scope2string(ctx context.Context return res } -func (ec *executionContext) unmarshalNfederation__Scope2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNfederation__Scope2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -9321,8 +9321,8 @@ func (ec *executionContext) marshalNfederation__Scope2ᚕstringᚄ(ctx context.C return ret } -func (ec *executionContext) unmarshalNfederation__Scope2ᚕᚕstringᚄ(ctx context.Context, v interface{}) ([][]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNfederation__Scope2ᚕᚕstringᚄ(ctx context.Context, v any) ([][]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -9353,7 +9353,7 @@ func (ec *executionContext) marshalNfederation__Scope2ᚕᚕstringᚄ(ctx contex return ret } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -9363,7 +9363,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -9386,11 +9386,11 @@ func (ec *executionContext) marshalOHello2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Hello(ctx, sel, v) } -func (ec *executionContext) unmarshalOInt2ᚕintᚄ(ctx context.Context, v interface{}) ([]int, error) { +func (ec *executionContext) unmarshalOInt2ᚕintᚄ(ctx context.Context, v any) ([]int, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -9472,7 +9472,7 @@ func (ec *executionContext) marshalOMultiHello2ᚖgithubᚗcomᚋ99designsᚋgql return ec._MultiHello(ctx, sel, v) } -func (ec *executionContext) unmarshalOMultiHelloByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiHelloByNamesInput(ctx context.Context, v interface{}) (*model.MultiHelloByNamesInput, error) { +func (ec *executionContext) unmarshalOMultiHelloByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiHelloByNamesInput(ctx context.Context, v any) (*model.MultiHelloByNamesInput, error) { if v == nil { return nil, nil } @@ -9528,7 +9528,7 @@ func (ec *executionContext) marshalOMultiHelloMultipleRequires2ᚖgithubᚗcom return ec._MultiHelloMultipleRequires(ctx, sel, v) } -func (ec *executionContext) unmarshalOMultiHelloMultipleRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiHelloMultipleRequiresByNamesInput(ctx context.Context, v interface{}) (*model.MultiHelloMultipleRequiresByNamesInput, error) { +func (ec *executionContext) unmarshalOMultiHelloMultipleRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiHelloMultipleRequiresByNamesInput(ctx context.Context, v any) (*model.MultiHelloMultipleRequiresByNamesInput, error) { if v == nil { return nil, nil } @@ -9584,7 +9584,7 @@ func (ec *executionContext) marshalOMultiHelloRequires2ᚖgithubᚗcomᚋ99desig return ec._MultiHelloRequires(ctx, sel, v) } -func (ec *executionContext) unmarshalOMultiHelloRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiHelloRequiresByNamesInput(ctx context.Context, v interface{}) (*model.MultiHelloRequiresByNamesInput, error) { +func (ec *executionContext) unmarshalOMultiHelloRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiHelloRequiresByNamesInput(ctx context.Context, v any) (*model.MultiHelloRequiresByNamesInput, error) { if v == nil { return nil, nil } @@ -9640,7 +9640,7 @@ func (ec *executionContext) marshalOMultiHelloWithError2ᚖgithubᚗcomᚋ99desi return ec._MultiHelloWithError(ctx, sel, v) } -func (ec *executionContext) unmarshalOMultiHelloWithErrorByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiHelloWithErrorByNamesInput(ctx context.Context, v interface{}) (*model.MultiHelloWithErrorByNamesInput, error) { +func (ec *executionContext) unmarshalOMultiHelloWithErrorByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiHelloWithErrorByNamesInput(ctx context.Context, v any) (*model.MultiHelloWithErrorByNamesInput, error) { if v == nil { return nil, nil } @@ -9696,7 +9696,7 @@ func (ec *executionContext) marshalOMultiPlanetRequiresNested2ᚖgithubᚗcomᚋ return ec._MultiPlanetRequiresNested(ctx, sel, v) } -func (ec *executionContext) unmarshalOMultiPlanetRequiresNestedByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiPlanetRequiresNestedByNamesInput(ctx context.Context, v interface{}) (*model.MultiPlanetRequiresNestedByNamesInput, error) { +func (ec *executionContext) unmarshalOMultiPlanetRequiresNestedByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋcomputedrequiresᚋgeneratedᚋmodelsᚐMultiPlanetRequiresNestedByNamesInput(ctx context.Context, v any) (*model.MultiPlanetRequiresNestedByNamesInput, error) { if v == nil { return nil, nil } @@ -9704,7 +9704,7 @@ func (ec *executionContext) unmarshalOMultiPlanetRequiresNestedByNamesInput2ᚖg return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalOString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -9714,11 +9714,11 @@ func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { +func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -9752,7 +9752,7 @@ func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } @@ -9822,7 +9822,7 @@ func (ec *executionContext) marshalO_Entity2githubᚗcomᚋ99designsᚋgqlgenᚋ return ec.__Entity(ctx, sel, v) } -func (ec *executionContext) unmarshalO_RequiresMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalO_RequiresMap2map(ctx context.Context, v any) (map[string]any, error) { if v == nil { return nil, nil } @@ -9830,7 +9830,7 @@ func (ec *executionContext) unmarshalO_RequiresMap2map(ctx context.Context, v in return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalO_RequiresMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalO_RequiresMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]any) graphql.Marshaler { if v == nil { return graphql.Null } diff --git a/plugin/federation/testdata/computedrequires/generated/federation.go b/plugin/federation/testdata/computedrequires/generated/federation.go index d3d67019427..0c21db7cc5e 100644 --- a/plugin/federation/testdata/computedrequires/generated/federation.go +++ b/plugin/federation/testdata/computedrequires/generated/federation.go @@ -37,7 +37,7 @@ func (ec *executionContext) __resolve__service(ctx context.Context) (fedruntime. }, nil } -func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]interface{}) []fedruntime.Entity { +func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]any) []fedruntime.Entity { list := make([]fedruntime.Entity, len(representations)) repsMap := ec.buildRepresentationGroups(ctx, representations) @@ -309,7 +309,7 @@ func (ec *executionContext) resolveEntity( switch resolverName { case "findWorldByHelloNameAndFoo": - id0, err := ec.unmarshalNString2string(ctx, rep["hello"].(map[string]interface{})["name"]) + id0, err := ec.unmarshalNString2string(ctx, rep["hello"].(map[string]any)["name"]) if err != nil { return nil, fmt.Errorf(`unmarshalling param 0 for findWorldByHelloNameAndFoo(): %w`, err) } @@ -351,7 +351,7 @@ func (ec *executionContext) resolveEntity( switch resolverName { case "findWorldWithMultipleKeysByHelloNameAndFoo": - id0, err := ec.unmarshalNString2string(ctx, rep["hello"].(map[string]interface{})["name"]) + id0, err := ec.unmarshalNString2string(ctx, rep["hello"].(map[string]any)["name"]) if err != nil { return nil, fmt.Errorf(`unmarshalling param 0 for findWorldWithMultipleKeysByHelloNameAndFoo(): %w`, err) } @@ -577,7 +577,7 @@ func (ec *executionContext) resolveManyEntities( } for i, entity := range entities { - entity.World.Foo, err = ec.unmarshalNString2string(ctx, reps[i].entity["world"].(map[string]interface{})["foo"]) + entity.World.Foo, err = ec.unmarshalNString2string(ctx, reps[i].entity["world"].(map[string]any)["foo"]) if err != nil { return err } @@ -601,7 +601,7 @@ func entityResolverNameForHello(ctx context.Context, rep EntityRepresentation) ( for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -636,7 +636,7 @@ func entityResolverNameForHelloMultiSingleKeys(ctx context.Context, rep EntityRe for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -681,7 +681,7 @@ func entityResolverNameForHelloWithErrors(ctx context.Context, rep EntityReprese for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -716,7 +716,7 @@ func entityResolverNameForMultiHello(ctx context.Context, rep EntityRepresentati for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -751,7 +751,7 @@ func entityResolverNameForMultiHelloMultipleRequires(ctx context.Context, rep En for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -786,7 +786,7 @@ func entityResolverNameForMultiHelloRequires(ctx context.Context, rep EntityRepr for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -821,7 +821,7 @@ func entityResolverNameForMultiHelloWithError(ctx context.Context, rep EntityRep for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -856,7 +856,7 @@ func entityResolverNameForMultiPlanetRequiresNested(ctx context.Context, rep Ent for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -891,7 +891,7 @@ func entityResolverNameForPerson(ctx context.Context, rep EntityRepresentation) for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -926,7 +926,7 @@ func entityResolverNameForPlanetMultipleRequires(ctx context.Context, rep Entity for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -961,7 +961,7 @@ func entityResolverNameForPlanetRequires(ctx context.Context, rep EntityRepresen for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -996,7 +996,7 @@ func entityResolverNameForPlanetRequiresNested(ctx context.Context, rep EntityRe for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -1031,7 +1031,7 @@ func entityResolverNameForWorld(ctx context.Context, rep EntityRepresentation) ( for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -1045,7 +1045,7 @@ func entityResolverNameForWorld(ctx context.Context, rep EntityRepresentation) ( fmt.Errorf("%w due to missing Key Field \"hello\" for World", ErrTypeNotFound)) break } - if m, ok = val.(map[string]interface{}); !ok { + if m, ok = val.(map[string]any); !ok { // nested field value is not a map[string]interface so don't use it entityResolverErrs = append(entityResolverErrs, fmt.Errorf("%w due to nested Key Field \"hello\" value not matching map[string]any for World", ErrTypeNotFound)) @@ -1088,7 +1088,7 @@ func entityResolverNameForWorldName(ctx context.Context, rep EntityRepresentatio for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -1123,7 +1123,7 @@ func entityResolverNameForWorldWithMultipleKeys(ctx context.Context, rep EntityR for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -1137,7 +1137,7 @@ func entityResolverNameForWorldWithMultipleKeys(ctx context.Context, rep EntityR fmt.Errorf("%w due to missing Key Field \"hello\" for WorldWithMultipleKeys", ErrTypeNotFound)) break } - if m, ok = val.(map[string]interface{}); !ok { + if m, ok = val.(map[string]any); !ok { // nested field value is not a map[string]interface so don't use it entityResolverErrs = append(entityResolverErrs, fmt.Errorf("%w due to nested Key Field \"hello\" value not matching map[string]any for WorldWithMultipleKeys", ErrTypeNotFound)) @@ -1172,7 +1172,7 @@ func entityResolverNameForWorldWithMultipleKeys(ctx context.Context, rep EntityR for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val diff --git a/plugin/federation/testdata/computedrequires/schema.resolvers.go b/plugin/federation/testdata/computedrequires/schema.resolvers.go index f9ba7de1a25..6c956d2e40b 100644 --- a/plugin/federation/testdata/computedrequires/schema.resolvers.go +++ b/plugin/federation/testdata/computedrequires/schema.resolvers.go @@ -14,31 +14,31 @@ import ( ) // Key3 is the resolver for the key3 field. -func (r *multiHelloMultipleRequiresResolver) Key3(ctx context.Context, obj *model.MultiHelloMultipleRequires, federationRequires map[string]interface{}) (string, error) { +func (r *multiHelloMultipleRequiresResolver) Key3(ctx context.Context, obj *model.MultiHelloMultipleRequires, federationRequires map[string]any) (string, error) { key1 := federationRequires["key1"].(string) key2 := federationRequires["key2"].(string) return key1 + ":" + key2, nil } // Key2 is the resolver for the key2 field. -func (r *multiHelloRequiresResolver) Key2(ctx context.Context, obj *model.MultiHelloRequires, federationRequires map[string]interface{}) (string, error) { +func (r *multiHelloRequiresResolver) Key2(ctx context.Context, obj *model.MultiHelloRequires, federationRequires map[string]any) (string, error) { key1 := federationRequires["key1"].(string) return key1, nil } // Size is the resolver for the size field. -func (r *multiPlanetRequiresNestedResolver) Size(ctx context.Context, obj *model.MultiPlanetRequiresNested, federationRequires map[string]interface{}) (int, error) { - foo := federationRequires["world"].(map[string]interface{})["foo"].(string) +func (r *multiPlanetRequiresNestedResolver) Size(ctx context.Context, obj *model.MultiPlanetRequiresNested, federationRequires map[string]any) (int, error) { + foo := federationRequires["world"].(map[string]any)["foo"].(string) return len(foo), nil } // WelcomeMessage is the resolver for the welcomeMessage field. -func (r *personResolver) WelcomeMessage(ctx context.Context, obj *model.Person, federationRequires map[string]interface{}) (*string, error) { +func (r *personResolver) WelcomeMessage(ctx context.Context, obj *model.Person, federationRequires map[string]any) (*string, error) { panic(fmt.Errorf("not implemented: WelcomeMessage - welcomeMessage")) } // Weight is the resolver for the weight field. -func (r *planetMultipleRequiresResolver) Weight(ctx context.Context, obj *model.PlanetMultipleRequires, foo *string, federationRequires map[string]interface{}) (int, error) { +func (r *planetMultipleRequiresResolver) Weight(ctx context.Context, obj *model.PlanetMultipleRequires, foo *string, federationRequires map[string]any) (int, error) { diameter, err := federationRequires["diameter"].(json.Number).Int64() if err != nil { return 0, err @@ -53,7 +53,7 @@ func (r *planetMultipleRequiresResolver) Weight(ctx context.Context, obj *model. } // Size is the resolver for the size field. -func (r *planetRequiresResolver) Size(ctx context.Context, obj *model.PlanetRequires, federationRequires map[string]interface{}) (int, error) { +func (r *planetRequiresResolver) Size(ctx context.Context, obj *model.PlanetRequires, federationRequires map[string]any) (int, error) { diameter, err := federationRequires["diameter"].(json.Number).Int64() if err != nil { return 0, err @@ -63,14 +63,14 @@ func (r *planetRequiresResolver) Size(ctx context.Context, obj *model.PlanetRequ } // Size is the resolver for the size field. -func (r *planetRequiresNestedResolver) Size(ctx context.Context, obj *model.PlanetRequiresNested, federationRequires map[string]interface{}) (int, error) { - foo := federationRequires["world"].(map[string]interface{})["foo"].(string) +func (r *planetRequiresNestedResolver) Size(ctx context.Context, obj *model.PlanetRequiresNested, federationRequires map[string]any) (int, error) { + foo := federationRequires["world"].(map[string]any)["foo"].(string) return len(foo), nil } // Sizes is the resolver for the sizes field. -func (r *planetRequiresNestedResolver) Sizes(ctx context.Context, obj *model.PlanetRequiresNested, federationRequires map[string]interface{}) ([]int, error) { - foo := federationRequires["world"].(map[string]interface{})["foo"].(string) +func (r *planetRequiresNestedResolver) Sizes(ctx context.Context, obj *model.PlanetRequiresNested, federationRequires map[string]any) ([]int, error) { + foo := federationRequires["world"].(map[string]any)["foo"].(string) return []int{len(foo)}, nil } diff --git a/plugin/federation/testdata/entityinterfaces/generated/exec.go b/plugin/federation/testdata/entityinterfaces/generated/exec.go index d2cf1aceeeb..711dc10c558 100644 --- a/plugin/federation/testdata/entityinterfaces/generated/exec.go +++ b/plugin/federation/testdata/entityinterfaces/generated/exec.go @@ -52,7 +52,7 @@ type ComplexityRoot struct { Query struct { __resolve__service func(childComplexity int) int - __resolve_entities func(childComplexity int, representations []map[string]interface{}) int + __resolve_entities func(childComplexity int, representations []map[string]any) int } World struct { @@ -84,7 +84,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -130,7 +130,7 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return 0, false } - return e.complexity.Query.__resolve_entities(childComplexity, args["representations"].([]map[string]interface{})), true + return e.complexity.Query.__resolve_entities(childComplexity, args["representations"].([]map[string]any)), true case "World.id": if e.complexity.World.ID == nil { @@ -326,9 +326,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Entity_findHelloByID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findHelloByID_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} var arg0 string if tmp, ok := rawArgs["id"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) @@ -341,9 +341,9 @@ func (ec *executionContext) field_Entity_findHelloByID_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Entity_findWorldByID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findWorldByID_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} var arg0 string if tmp, ok := rawArgs["id"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) @@ -356,9 +356,9 @@ func (ec *executionContext) field_Entity_findWorldByID_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} var arg0 string if tmp, ok := rawArgs["name"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) @@ -371,10 +371,10 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} - var arg0 []map[string]interface{} + args := map[string]any{} + var arg0 []map[string]any if tmp, ok := rawArgs["representations"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("representations")) arg0, err = ec.unmarshalN_Any2ᚕmapᚄ(ctx, tmp) @@ -386,9 +386,9 @@ func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) @@ -401,9 +401,9 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) @@ -436,7 +436,7 @@ func (ec *executionContext) _Entity_findHelloByID(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindHelloByID(rctx, fc.Args["id"].(string)) }) @@ -491,7 +491,7 @@ func (ec *executionContext) _Entity_findWorldByID(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindWorldByID(rctx, fc.Args["id"].(string)) }) @@ -552,9 +552,9 @@ func (ec *executionContext) _Query__entities(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.__resolve_entities(ctx, fc.Args["representations"].([]map[string]interface{})), nil + return ec.__resolve_entities(ctx, fc.Args["representations"].([]map[string]any)), nil }) if err != nil { ec.Error(ctx, err) @@ -607,7 +607,7 @@ func (ec *executionContext) _Query__service(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.__resolve__service(ctx) }) @@ -655,7 +655,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -729,7 +729,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -784,7 +784,7 @@ func (ec *executionContext) _World_id(ctx context.Context, field graphql.Collect ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -828,7 +828,7 @@ func (ec *executionContext) _World_title(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Title, nil }) @@ -872,7 +872,7 @@ func (ec *executionContext) __Service_sdl(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SDL, nil }) @@ -913,7 +913,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -957,7 +957,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -998,7 +998,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -1042,7 +1042,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1096,7 +1096,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -1140,7 +1140,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1184,7 +1184,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1225,7 +1225,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1269,7 +1269,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1310,7 +1310,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1354,7 +1354,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1395,7 +1395,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1449,7 +1449,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1515,7 +1515,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1559,7 +1559,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1600,7 +1600,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1644,7 +1644,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1685,7 +1685,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1751,7 +1751,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -1792,7 +1792,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1833,7 +1833,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -1899,7 +1899,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -1965,7 +1965,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -2028,7 +2028,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -2091,7 +2091,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -2147,7 +2147,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -2191,7 +2191,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -2232,7 +2232,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -2273,7 +2273,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2339,7 +2339,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -2402,7 +2402,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -2465,7 +2465,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2527,7 +2527,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -2578,7 +2578,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -2641,7 +2641,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -3300,7 +3300,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3315,7 +3315,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNFieldSet2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNFieldSet2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3340,7 +3340,7 @@ func (ec *executionContext) marshalNHello2githubᚗcomᚋ99designsᚋgqlgenᚋpl return ec._Hello(ctx, sel, v) } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3369,12 +3369,12 @@ func (ec *executionContext) marshalNWorld2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._World(ctx, sel, v) } -func (ec *executionContext) unmarshalN_Any2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalN_Any2map(ctx context.Context, v any) (map[string]any, error) { res, err := graphql.UnmarshalMap(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.SelectionSet, v map[string]any) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -3390,13 +3390,13 @@ func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.Select return res } -func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v interface{}) ([]map[string]interface{}, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v any) ([]map[string]any, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } var err error - res := make([]map[string]interface{}, len(vSlice)) + res := make([]map[string]any, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) res[i], err = ec.unmarshalN_Any2map(ctx, vSlice[i]) @@ -3407,7 +3407,7 @@ func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v inte return res, nil } -func (ec *executionContext) marshalN_Any2ᚕmapᚄ(ctx context.Context, sel ast.SelectionSet, v []map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalN_Any2ᚕmapᚄ(ctx context.Context, sel ast.SelectionSet, v []map[string]any) graphql.Marshaler { ret := make(graphql.Array, len(v)) for i := range v { ret[i] = ec.marshalN_Any2map(ctx, sel, v[i]) @@ -3512,7 +3512,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3527,8 +3527,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -3702,7 +3702,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3717,7 +3717,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalNfederation__Scope2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNfederation__Scope2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3732,8 +3732,8 @@ func (ec *executionContext) marshalNfederation__Scope2string(ctx context.Context return res } -func (ec *executionContext) unmarshalNfederation__Scope2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNfederation__Scope2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -3764,8 +3764,8 @@ func (ec *executionContext) marshalNfederation__Scope2ᚕstringᚄ(ctx context.C return ret } -func (ec *executionContext) unmarshalNfederation__Scope2ᚕᚕstringᚄ(ctx context.Context, v interface{}) ([][]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNfederation__Scope2ᚕᚕstringᚄ(ctx context.Context, v any) ([][]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -3796,7 +3796,7 @@ func (ec *executionContext) marshalNfederation__Scope2ᚕᚕstringᚄ(ctx contex return ret } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3806,7 +3806,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -3822,7 +3822,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalOString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3832,11 +3832,11 @@ func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { +func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -3870,7 +3870,7 @@ func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/plugin/federation/testdata/entityinterfaces/generated/federation.go b/plugin/federation/testdata/entityinterfaces/generated/federation.go index a6bf5836c06..7f50050cce5 100644 --- a/plugin/federation/testdata/entityinterfaces/generated/federation.go +++ b/plugin/federation/testdata/entityinterfaces/generated/federation.go @@ -36,17 +36,17 @@ func (ec *executionContext) __resolve__service(ctx context.Context) (fedruntime. }, nil } -func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]interface{}) []fedruntime.Entity { +func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]any) []fedruntime.Entity { list := make([]fedruntime.Entity, len(representations)) repsMap := map[string]struct { i []int - r []map[string]interface{} + r []map[string]any }{} // We group entities by typename so that we can parallelize their resolution. // This is particularly helpful when there are entity groups in multi mode. - buildRepresentationGroups := func(reps []map[string]interface{}) { + buildRepresentationGroups := func(reps []map[string]any) { for i, rep := range reps { typeName, ok := rep["__typename"].(string) if !ok { @@ -70,7 +70,7 @@ func (ec *executionContext) __resolve_entities(ctx context.Context, representati } } - resolveEntity := func(ctx context.Context, typeName string, rep map[string]interface{}, idx []int, i int) (err error) { + resolveEntity := func(ctx context.Context, typeName string, rep map[string]any, idx []int, i int) (err error) { // we need to do our own panic handling, because we may be called in a // goroutine, where the usual panic handling can't catch us defer func() { @@ -125,7 +125,7 @@ func (ec *executionContext) __resolve_entities(ctx context.Context, representati return fmt.Errorf("%w: %s", ErrUnknownType, typeName) } - resolveManyEntities := func(ctx context.Context, typeName string, reps []map[string]interface{}, idx []int) (err error) { + resolveManyEntities := func(ctx context.Context, typeName string, reps []map[string]any, idx []int) (err error) { // we need to do our own panic handling, because we may be called in a // goroutine, where the usual panic handling can't catch us defer func() { @@ -141,7 +141,7 @@ func (ec *executionContext) __resolve_entities(ctx context.Context, representati } } - resolveEntityGroup := func(typeName string, reps []map[string]interface{}, idx []int) { + resolveEntityGroup := func(typeName string, reps []map[string]any, idx []int) { if isMulti(typeName) { err := resolveManyEntities(ctx, typeName, reps, idx) if err != nil { @@ -154,7 +154,7 @@ func (ec *executionContext) __resolve_entities(ctx context.Context, representati e.Add(len(reps)) for i, rep := range reps { i, rep := i, rep - go func(i int, rep map[string]interface{}) { + go func(i int, rep map[string]any) { err := resolveEntity(ctx, typeName, rep, idx, i) if err != nil { ec.Error(ctx, err) @@ -179,7 +179,7 @@ func (ec *executionContext) __resolve_entities(ctx context.Context, representati var g sync.WaitGroup g.Add(len(repsMap)) for typeName, reps := range repsMap { - go func(typeName string, reps []map[string]interface{}, idx []int) { + go func(typeName string, reps []map[string]any, idx []int) { resolveEntityGroup(typeName, reps, idx) g.Done() }(typeName, reps.r, reps.i) @@ -189,11 +189,11 @@ func (ec *executionContext) __resolve_entities(ctx context.Context, representati } } -func entityResolverNameForHello(ctx context.Context, rep map[string]interface{}) (string, error) { +func entityResolverNameForHello(ctx context.Context, rep map[string]any) (string, error) { for { var ( - m map[string]interface{} - val interface{} + m map[string]any + val any ok bool ) _ = val @@ -206,11 +206,11 @@ func entityResolverNameForHello(ctx context.Context, rep map[string]interface{}) return "", fmt.Errorf("%w for Hello", ErrTypeNotFound) } -func entityResolverNameForWorld(ctx context.Context, rep map[string]interface{}) (string, error) { +func entityResolverNameForWorld(ctx context.Context, rep map[string]any) (string, error) { for { var ( - m map[string]interface{} - val interface{} + m map[string]any + val any ok bool ) _ = val diff --git a/plugin/federation/testdata/entityresolver/generated/exec.go b/plugin/federation/testdata/entityresolver/generated/exec.go index 7fc332824f3..d720959b7f1 100644 --- a/plugin/federation/testdata/entityresolver/generated/exec.go +++ b/plugin/federation/testdata/entityresolver/generated/exec.go @@ -126,7 +126,7 @@ type ComplexityRoot struct { Query struct { __resolve__service func(childComplexity int) int - __resolve_entities func(childComplexity int, representations []map[string]interface{}) int + __resolve_entities func(childComplexity int, representations []map[string]any) int } World struct { @@ -182,7 +182,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -573,7 +573,7 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return 0, false } - return e.complexity.Query.__resolve_entities(childComplexity, args["representations"].([]map[string]interface{})), true + return e.complexity.Query.__resolve_entities(childComplexity, args["representations"].([]map[string]any)), true case "World.bar": if e.complexity.World.Bar == nil { @@ -872,9 +872,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Entity_findHelloByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findHelloByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findHelloByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -884,7 +884,7 @@ func (ec *executionContext) field_Entity_findHelloByName_args(ctx context.Contex } func (ec *executionContext) field_Entity_findHelloByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -904,9 +904,9 @@ func (ec *executionContext) field_Entity_findHelloByName_argsName( return zeroVal, nil } -func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findHelloMultiSingleKeysByKey1AndKey2_argsKey1(ctx, rawArgs) if err != nil { return nil, err @@ -921,7 +921,7 @@ func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_a } func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_argsKey1( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -943,7 +943,7 @@ func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_a func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_argsKey2( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -963,9 +963,9 @@ func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_a return zeroVal, nil } -func (ec *executionContext) field_Entity_findHelloWithErrorsByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findHelloWithErrorsByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findHelloWithErrorsByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -975,7 +975,7 @@ func (ec *executionContext) field_Entity_findHelloWithErrorsByName_args(ctx cont } func (ec *executionContext) field_Entity_findHelloWithErrorsByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -995,9 +995,9 @@ func (ec *executionContext) field_Entity_findHelloWithErrorsByName_argsName( return zeroVal, nil } -func (ec *executionContext) field_Entity_findManyMultiHelloByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findManyMultiHelloByNames_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findManyMultiHelloByNames_argsReps(ctx, rawArgs) if err != nil { return nil, err @@ -1007,7 +1007,7 @@ func (ec *executionContext) field_Entity_findManyMultiHelloByNames_args(ctx cont } func (ec *executionContext) field_Entity_findManyMultiHelloByNames_argsReps( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*model.MultiHelloByNamesInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1027,9 +1027,9 @@ func (ec *executionContext) field_Entity_findManyMultiHelloByNames_argsReps( return zeroVal, nil } -func (ec *executionContext) field_Entity_findManyMultiHelloMultipleRequiresByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findManyMultiHelloMultipleRequiresByNames_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findManyMultiHelloMultipleRequiresByNames_argsReps(ctx, rawArgs) if err != nil { return nil, err @@ -1039,7 +1039,7 @@ func (ec *executionContext) field_Entity_findManyMultiHelloMultipleRequiresByNam } func (ec *executionContext) field_Entity_findManyMultiHelloMultipleRequiresByNames_argsReps( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*model.MultiHelloMultipleRequiresByNamesInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1059,9 +1059,9 @@ func (ec *executionContext) field_Entity_findManyMultiHelloMultipleRequiresByNam return zeroVal, nil } -func (ec *executionContext) field_Entity_findManyMultiHelloRequiresByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findManyMultiHelloRequiresByNames_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findManyMultiHelloRequiresByNames_argsReps(ctx, rawArgs) if err != nil { return nil, err @@ -1071,7 +1071,7 @@ func (ec *executionContext) field_Entity_findManyMultiHelloRequiresByNames_args( } func (ec *executionContext) field_Entity_findManyMultiHelloRequiresByNames_argsReps( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*model.MultiHelloRequiresByNamesInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1091,9 +1091,9 @@ func (ec *executionContext) field_Entity_findManyMultiHelloRequiresByNames_argsR return zeroVal, nil } -func (ec *executionContext) field_Entity_findManyMultiHelloWithErrorByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findManyMultiHelloWithErrorByNames_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findManyMultiHelloWithErrorByNames_argsReps(ctx, rawArgs) if err != nil { return nil, err @@ -1103,7 +1103,7 @@ func (ec *executionContext) field_Entity_findManyMultiHelloWithErrorByNames_args } func (ec *executionContext) field_Entity_findManyMultiHelloWithErrorByNames_argsReps( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*model.MultiHelloWithErrorByNamesInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1123,9 +1123,9 @@ func (ec *executionContext) field_Entity_findManyMultiHelloWithErrorByNames_args return zeroVal, nil } -func (ec *executionContext) field_Entity_findManyMultiPlanetRequiresNestedByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findManyMultiPlanetRequiresNestedByNames_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findManyMultiPlanetRequiresNestedByNames_argsReps(ctx, rawArgs) if err != nil { return nil, err @@ -1135,7 +1135,7 @@ func (ec *executionContext) field_Entity_findManyMultiPlanetRequiresNestedByName } func (ec *executionContext) field_Entity_findManyMultiPlanetRequiresNestedByNames_argsReps( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*model.MultiPlanetRequiresNestedByNamesInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1155,9 +1155,9 @@ func (ec *executionContext) field_Entity_findManyMultiPlanetRequiresNestedByName return zeroVal, nil } -func (ec *executionContext) field_Entity_findPlanetMultipleRequiresByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findPlanetMultipleRequiresByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findPlanetMultipleRequiresByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -1167,7 +1167,7 @@ func (ec *executionContext) field_Entity_findPlanetMultipleRequiresByName_args(c } func (ec *executionContext) field_Entity_findPlanetMultipleRequiresByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1187,9 +1187,9 @@ func (ec *executionContext) field_Entity_findPlanetMultipleRequiresByName_argsNa return zeroVal, nil } -func (ec *executionContext) field_Entity_findPlanetRequiresByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findPlanetRequiresByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findPlanetRequiresByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -1199,7 +1199,7 @@ func (ec *executionContext) field_Entity_findPlanetRequiresByName_args(ctx conte } func (ec *executionContext) field_Entity_findPlanetRequiresByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1219,9 +1219,9 @@ func (ec *executionContext) field_Entity_findPlanetRequiresByName_argsName( return zeroVal, nil } -func (ec *executionContext) field_Entity_findPlanetRequiresNestedByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findPlanetRequiresNestedByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findPlanetRequiresNestedByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -1231,7 +1231,7 @@ func (ec *executionContext) field_Entity_findPlanetRequiresNestedByName_args(ctx } func (ec *executionContext) field_Entity_findPlanetRequiresNestedByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1251,9 +1251,9 @@ func (ec *executionContext) field_Entity_findPlanetRequiresNestedByName_argsName return zeroVal, nil } -func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findWorldByHelloNameAndFoo_argsHelloName(ctx, rawArgs) if err != nil { return nil, err @@ -1268,7 +1268,7 @@ func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_args(ctx con } func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_argsHelloName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1290,7 +1290,7 @@ func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_argsHelloNam func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_argsFoo( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1310,9 +1310,9 @@ func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_argsFoo( return zeroVal, nil } -func (ec *executionContext) field_Entity_findWorldNameByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findWorldNameByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findWorldNameByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -1322,7 +1322,7 @@ func (ec *executionContext) field_Entity_findWorldNameByName_args(ctx context.Co } func (ec *executionContext) field_Entity_findWorldNameByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1342,9 +1342,9 @@ func (ec *executionContext) field_Entity_findWorldNameByName_argsName( return zeroVal, nil } -func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByBar_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByBar_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findWorldWithMultipleKeysByBar_argsBar(ctx, rawArgs) if err != nil { return nil, err @@ -1354,7 +1354,7 @@ func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByBar_args(ctx } func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByBar_argsBar( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1374,9 +1374,9 @@ func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByBar_argsBar( return zeroVal, nil } -func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_argsHelloName(ctx, rawArgs) if err != nil { return nil, err @@ -1391,7 +1391,7 @@ func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAnd } func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_argsHelloName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1413,7 +1413,7 @@ func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAnd func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_argsFoo( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1433,9 +1433,9 @@ func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAnd return zeroVal, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -1445,7 +1445,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1465,9 +1465,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query__entities_argsRepresentations(ctx, rawArgs) if err != nil { return nil, err @@ -1477,14 +1477,14 @@ func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawA } func (ec *executionContext) field_Query__entities_argsRepresentations( ctx context.Context, - rawArgs map[string]interface{}, -) ([]map[string]interface{}, error) { + rawArgs map[string]any, +) ([]map[string]any, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives // even if the argument is null. _, ok := rawArgs["representations"] if !ok { - var zeroVal []map[string]interface{} + var zeroVal []map[string]any return zeroVal, nil } @@ -1493,13 +1493,13 @@ func (ec *executionContext) field_Query__entities_argsRepresentations( return ec.unmarshalN_Any2ᚕmapᚄ(ctx, tmp) } - var zeroVal []map[string]interface{} + var zeroVal []map[string]any return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -1509,7 +1509,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1529,9 +1529,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -1541,7 +1541,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1581,7 +1581,7 @@ func (ec *executionContext) _Entity_findHelloByName(ctx context.Context, field g ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindHelloByName(rctx, fc.Args["name"].(string)) }) @@ -1642,7 +1642,7 @@ func (ec *executionContext) _Entity_findHelloMultiSingleKeysByKey1AndKey2(ctx co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindHelloMultiSingleKeysByKey1AndKey2(rctx, fc.Args["key1"].(string), fc.Args["key2"].(string)) }) @@ -1703,7 +1703,7 @@ func (ec *executionContext) _Entity_findHelloWithErrorsByName(ctx context.Contex ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindHelloWithErrorsByName(rctx, fc.Args["name"].(string)) }) @@ -1762,7 +1762,7 @@ func (ec *executionContext) _Entity_findManyMultiHelloByNames(ctx context.Contex ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiHelloByNames(rctx, fc.Args["reps"].([]*model.MultiHelloByNamesInput)) }) @@ -1818,7 +1818,7 @@ func (ec *executionContext) _Entity_findManyMultiHelloMultipleRequiresByNames(ct ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiHelloMultipleRequiresByNames(rctx, fc.Args["reps"].([]*model.MultiHelloMultipleRequiresByNamesInput)) }) @@ -1880,7 +1880,7 @@ func (ec *executionContext) _Entity_findManyMultiHelloRequiresByNames(ctx contex ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiHelloRequiresByNames(rctx, fc.Args["reps"].([]*model.MultiHelloRequiresByNamesInput)) }) @@ -1940,7 +1940,7 @@ func (ec *executionContext) _Entity_findManyMultiHelloWithErrorByNames(ctx conte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiHelloWithErrorByNames(rctx, fc.Args["reps"].([]*model.MultiHelloWithErrorByNamesInput)) }) @@ -1996,7 +1996,7 @@ func (ec *executionContext) _Entity_findManyMultiPlanetRequiresNestedByNames(ctx ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiPlanetRequiresNestedByNames(rctx, fc.Args["reps"].([]*model.MultiPlanetRequiresNestedByNamesInput)) }) @@ -2056,7 +2056,7 @@ func (ec *executionContext) _Entity_findPlanetMultipleRequiresByName(ctx context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindPlanetMultipleRequiresByName(rctx, fc.Args["name"].(string)) }) @@ -2121,7 +2121,7 @@ func (ec *executionContext) _Entity_findPlanetRequiresByName(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindPlanetRequiresByName(rctx, fc.Args["name"].(string)) }) @@ -2184,7 +2184,7 @@ func (ec *executionContext) _Entity_findPlanetRequiresNestedByName(ctx context.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindPlanetRequiresNestedByName(rctx, fc.Args["name"].(string)) }) @@ -2247,7 +2247,7 @@ func (ec *executionContext) _Entity_findWorldByHelloNameAndFoo(ctx context.Conte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindWorldByHelloNameAndFoo(rctx, fc.Args["helloName"].(string), fc.Args["foo"].(string)) }) @@ -2310,7 +2310,7 @@ func (ec *executionContext) _Entity_findWorldNameByName(ctx context.Context, fie ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindWorldNameByName(rctx, fc.Args["name"].(string)) }) @@ -2369,7 +2369,7 @@ func (ec *executionContext) _Entity_findWorldWithMultipleKeysByHelloNameAndFoo(c ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindWorldWithMultipleKeysByHelloNameAndFoo(rctx, fc.Args["helloName"].(string), fc.Args["foo"].(string)) }) @@ -2432,7 +2432,7 @@ func (ec *executionContext) _Entity_findWorldWithMultipleKeysByBar(ctx context.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindWorldWithMultipleKeysByBar(rctx, fc.Args["bar"].(int)) }) @@ -2495,7 +2495,7 @@ func (ec *executionContext) _Hello_name(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2539,7 +2539,7 @@ func (ec *executionContext) _Hello_secondary(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Secondary, nil }) @@ -2583,7 +2583,7 @@ func (ec *executionContext) _HelloMultiSingleKeys_key1(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key1, nil }) @@ -2627,7 +2627,7 @@ func (ec *executionContext) _HelloMultiSingleKeys_key2(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key2, nil }) @@ -2671,7 +2671,7 @@ func (ec *executionContext) _HelloWithErrors_name(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2715,7 +2715,7 @@ func (ec *executionContext) _MultiHello_name(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2759,7 +2759,7 @@ func (ec *executionContext) _MultiHelloMultipleRequires_name(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2803,7 +2803,7 @@ func (ec *executionContext) _MultiHelloMultipleRequires_key1(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key1, nil }) @@ -2847,7 +2847,7 @@ func (ec *executionContext) _MultiHelloMultipleRequires_key2(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key2, nil }) @@ -2891,7 +2891,7 @@ func (ec *executionContext) _MultiHelloMultipleRequires_key3(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key3, nil }) @@ -2935,7 +2935,7 @@ func (ec *executionContext) _MultiHelloRequires_name(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2979,7 +2979,7 @@ func (ec *executionContext) _MultiHelloRequires_key1(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key1, nil }) @@ -3023,7 +3023,7 @@ func (ec *executionContext) _MultiHelloRequires_key2(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key2, nil }) @@ -3067,7 +3067,7 @@ func (ec *executionContext) _MultiHelloWithError_name(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3111,7 +3111,7 @@ func (ec *executionContext) _MultiPlanetRequiresNested_name(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3155,7 +3155,7 @@ func (ec *executionContext) _MultiPlanetRequiresNested_world(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.World, nil }) @@ -3207,7 +3207,7 @@ func (ec *executionContext) _MultiPlanetRequiresNested_size(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Size, nil }) @@ -3251,7 +3251,7 @@ func (ec *executionContext) _PlanetMultipleRequires_name(ctx context.Context, fi ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3295,7 +3295,7 @@ func (ec *executionContext) _PlanetMultipleRequires_diameter(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Diameter, nil }) @@ -3339,7 +3339,7 @@ func (ec *executionContext) _PlanetMultipleRequires_density(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Density, nil }) @@ -3383,7 +3383,7 @@ func (ec *executionContext) _PlanetMultipleRequires_weight(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Weight, nil }) @@ -3427,7 +3427,7 @@ func (ec *executionContext) _PlanetRequires_name(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3471,7 +3471,7 @@ func (ec *executionContext) _PlanetRequires_size(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Size, nil }) @@ -3515,7 +3515,7 @@ func (ec *executionContext) _PlanetRequires_diameter(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Diameter, nil }) @@ -3559,7 +3559,7 @@ func (ec *executionContext) _PlanetRequiresNested_name(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3603,7 +3603,7 @@ func (ec *executionContext) _PlanetRequiresNested_world(ctx context.Context, fie ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.World, nil }) @@ -3655,7 +3655,7 @@ func (ec *executionContext) _PlanetRequiresNested_size(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Size, nil }) @@ -3699,9 +3699,9 @@ func (ec *executionContext) _Query__entities(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.__resolve_entities(ctx, fc.Args["representations"].([]map[string]interface{})), nil + return ec.__resolve_entities(ctx, fc.Args["representations"].([]map[string]any)), nil }) if err != nil { ec.Error(ctx, err) @@ -3754,7 +3754,7 @@ func (ec *executionContext) _Query__service(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.__resolve__service(ctx) }) @@ -3802,7 +3802,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -3876,7 +3876,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -3931,7 +3931,7 @@ func (ec *executionContext) _World_foo(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Foo, nil }) @@ -3975,7 +3975,7 @@ func (ec *executionContext) _World_bar(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Bar, nil }) @@ -4019,7 +4019,7 @@ func (ec *executionContext) _World_hello(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Hello, nil }) @@ -4066,7 +4066,7 @@ func (ec *executionContext) _WorldName_name(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -4110,7 +4110,7 @@ func (ec *executionContext) _WorldWithMultipleKeys_foo(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Foo, nil }) @@ -4154,7 +4154,7 @@ func (ec *executionContext) _WorldWithMultipleKeys_bar(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Bar, nil }) @@ -4198,7 +4198,7 @@ func (ec *executionContext) _WorldWithMultipleKeys_hello(ctx context.Context, fi ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Hello, nil }) @@ -4245,7 +4245,7 @@ func (ec *executionContext) __Service_sdl(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SDL, nil }) @@ -4286,7 +4286,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -4330,7 +4330,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -4371,7 +4371,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -4415,7 +4415,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -4469,7 +4469,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -4513,7 +4513,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -4557,7 +4557,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -4598,7 +4598,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -4642,7 +4642,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -4683,7 +4683,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -4727,7 +4727,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -4768,7 +4768,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -4822,7 +4822,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -4888,7 +4888,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -4932,7 +4932,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -4973,7 +4973,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -5017,7 +5017,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -5058,7 +5058,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -5124,7 +5124,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -5165,7 +5165,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -5206,7 +5206,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -5272,7 +5272,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -5338,7 +5338,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -5401,7 +5401,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -5464,7 +5464,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -5520,7 +5520,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -5564,7 +5564,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -5605,7 +5605,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -5646,7 +5646,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -5712,7 +5712,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -5775,7 +5775,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -5838,7 +5838,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -5900,7 +5900,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -5951,7 +5951,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -6014,7 +6014,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -6047,10 +6047,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputMultiHelloByNamesInput(ctx context.Context, obj interface{}) (model.MultiHelloByNamesInput, error) { +func (ec *executionContext) unmarshalInputMultiHelloByNamesInput(ctx context.Context, obj any) (model.MultiHelloByNamesInput, error) { var it model.MultiHelloByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6074,10 +6074,10 @@ func (ec *executionContext) unmarshalInputMultiHelloByNamesInput(ctx context.Con return it, nil } -func (ec *executionContext) unmarshalInputMultiHelloMultipleRequiresByNamesInput(ctx context.Context, obj interface{}) (model.MultiHelloMultipleRequiresByNamesInput, error) { +func (ec *executionContext) unmarshalInputMultiHelloMultipleRequiresByNamesInput(ctx context.Context, obj any) (model.MultiHelloMultipleRequiresByNamesInput, error) { var it model.MultiHelloMultipleRequiresByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6101,10 +6101,10 @@ func (ec *executionContext) unmarshalInputMultiHelloMultipleRequiresByNamesInput return it, nil } -func (ec *executionContext) unmarshalInputMultiHelloRequiresByNamesInput(ctx context.Context, obj interface{}) (model.MultiHelloRequiresByNamesInput, error) { +func (ec *executionContext) unmarshalInputMultiHelloRequiresByNamesInput(ctx context.Context, obj any) (model.MultiHelloRequiresByNamesInput, error) { var it model.MultiHelloRequiresByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6128,10 +6128,10 @@ func (ec *executionContext) unmarshalInputMultiHelloRequiresByNamesInput(ctx con return it, nil } -func (ec *executionContext) unmarshalInputMultiHelloWithErrorByNamesInput(ctx context.Context, obj interface{}) (model.MultiHelloWithErrorByNamesInput, error) { +func (ec *executionContext) unmarshalInputMultiHelloWithErrorByNamesInput(ctx context.Context, obj any) (model.MultiHelloWithErrorByNamesInput, error) { var it model.MultiHelloWithErrorByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6155,10 +6155,10 @@ func (ec *executionContext) unmarshalInputMultiHelloWithErrorByNamesInput(ctx co return it, nil } -func (ec *executionContext) unmarshalInputMultiPlanetRequiresNestedByNamesInput(ctx context.Context, obj interface{}) (model.MultiPlanetRequiresNestedByNamesInput, error) { +func (ec *executionContext) unmarshalInputMultiPlanetRequiresNestedByNamesInput(ctx context.Context, obj any) (model.MultiPlanetRequiresNestedByNamesInput, error) { var it model.MultiPlanetRequiresNestedByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -7750,7 +7750,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -7807,7 +7807,7 @@ func (ec *executionContext) marshalNHelloWithErrors2ᚖgithubᚗcomᚋ99designs return ec._HelloWithErrors(ctx, sel, v) } -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -7822,8 +7822,8 @@ func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.Selecti return res } -func (ec *executionContext) unmarshalNMultiHelloByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiHelloByNamesInput(ctx context.Context, v interface{}) ([]*model.MultiHelloByNamesInput, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNMultiHelloByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiHelloByNamesInput(ctx context.Context, v any) ([]*model.MultiHelloByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -7839,8 +7839,8 @@ func (ec *executionContext) unmarshalNMultiHelloByNamesInput2ᚕᚖgithubᚗcom return res, nil } -func (ec *executionContext) unmarshalNMultiHelloMultipleRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiHelloMultipleRequiresByNamesInput(ctx context.Context, v interface{}) ([]*model.MultiHelloMultipleRequiresByNamesInput, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNMultiHelloMultipleRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiHelloMultipleRequiresByNamesInput(ctx context.Context, v any) ([]*model.MultiHelloMultipleRequiresByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -7856,8 +7856,8 @@ func (ec *executionContext) unmarshalNMultiHelloMultipleRequiresByNamesInput2ᚕ return res, nil } -func (ec *executionContext) unmarshalNMultiHelloRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiHelloRequiresByNamesInput(ctx context.Context, v interface{}) ([]*model.MultiHelloRequiresByNamesInput, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNMultiHelloRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiHelloRequiresByNamesInput(ctx context.Context, v any) ([]*model.MultiHelloRequiresByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -7873,8 +7873,8 @@ func (ec *executionContext) unmarshalNMultiHelloRequiresByNamesInput2ᚕᚖgithu return res, nil } -func (ec *executionContext) unmarshalNMultiHelloWithErrorByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiHelloWithErrorByNamesInput(ctx context.Context, v interface{}) ([]*model.MultiHelloWithErrorByNamesInput, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNMultiHelloWithErrorByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiHelloWithErrorByNamesInput(ctx context.Context, v any) ([]*model.MultiHelloWithErrorByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -7890,8 +7890,8 @@ func (ec *executionContext) unmarshalNMultiHelloWithErrorByNamesInput2ᚕᚖgith return res, nil } -func (ec *executionContext) unmarshalNMultiPlanetRequiresNestedByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiPlanetRequiresNestedByNamesInput(ctx context.Context, v interface{}) ([]*model.MultiPlanetRequiresNestedByNamesInput, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNMultiPlanetRequiresNestedByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiPlanetRequiresNestedByNamesInput(ctx context.Context, v any) ([]*model.MultiPlanetRequiresNestedByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -7949,7 +7949,7 @@ func (ec *executionContext) marshalNPlanetRequiresNested2ᚖgithubᚗcomᚋ99des return ec._PlanetRequiresNested(ctx, sel, v) } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8006,12 +8006,12 @@ func (ec *executionContext) marshalNWorldWithMultipleKeys2ᚖgithubᚗcomᚋ99de return ec._WorldWithMultipleKeys(ctx, sel, v) } -func (ec *executionContext) unmarshalN_Any2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalN_Any2map(ctx context.Context, v any) (map[string]any, error) { res, err := graphql.UnmarshalMap(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.SelectionSet, v map[string]any) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -8027,13 +8027,13 @@ func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.Select return res } -func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v interface{}) ([]map[string]interface{}, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v any) ([]map[string]any, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } var err error - res := make([]map[string]interface{}, len(vSlice)) + res := make([]map[string]any, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) res[i], err = ec.unmarshalN_Any2map(ctx, vSlice[i]) @@ -8044,7 +8044,7 @@ func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v inte return res, nil } -func (ec *executionContext) marshalN_Any2ᚕmapᚄ(ctx context.Context, sel ast.SelectionSet, v []map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalN_Any2ᚕmapᚄ(ctx context.Context, sel ast.SelectionSet, v []map[string]any) graphql.Marshaler { ret := make(graphql.Array, len(v)) for i := range v { ret[i] = ec.marshalN_Any2map(ctx, sel, v[i]) @@ -8097,7 +8097,7 @@ func (ec *executionContext) marshalN_Entity2ᚕgithubᚗcomᚋ99designsᚋgqlgen return ret } -func (ec *executionContext) unmarshalN_FieldSet2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN_FieldSet2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8164,7 +8164,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8179,8 +8179,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -8354,7 +8354,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8369,7 +8369,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8379,7 +8379,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -8450,7 +8450,7 @@ func (ec *executionContext) marshalOMultiHello2ᚖgithubᚗcomᚋ99designsᚋgql return ec._MultiHello(ctx, sel, v) } -func (ec *executionContext) unmarshalOMultiHelloByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiHelloByNamesInput(ctx context.Context, v interface{}) (*model.MultiHelloByNamesInput, error) { +func (ec *executionContext) unmarshalOMultiHelloByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiHelloByNamesInput(ctx context.Context, v any) (*model.MultiHelloByNamesInput, error) { if v == nil { return nil, nil } @@ -8506,7 +8506,7 @@ func (ec *executionContext) marshalOMultiHelloMultipleRequires2ᚖgithubᚗcom return ec._MultiHelloMultipleRequires(ctx, sel, v) } -func (ec *executionContext) unmarshalOMultiHelloMultipleRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiHelloMultipleRequiresByNamesInput(ctx context.Context, v interface{}) (*model.MultiHelloMultipleRequiresByNamesInput, error) { +func (ec *executionContext) unmarshalOMultiHelloMultipleRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiHelloMultipleRequiresByNamesInput(ctx context.Context, v any) (*model.MultiHelloMultipleRequiresByNamesInput, error) { if v == nil { return nil, nil } @@ -8562,7 +8562,7 @@ func (ec *executionContext) marshalOMultiHelloRequires2ᚖgithubᚗcomᚋ99desig return ec._MultiHelloRequires(ctx, sel, v) } -func (ec *executionContext) unmarshalOMultiHelloRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiHelloRequiresByNamesInput(ctx context.Context, v interface{}) (*model.MultiHelloRequiresByNamesInput, error) { +func (ec *executionContext) unmarshalOMultiHelloRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiHelloRequiresByNamesInput(ctx context.Context, v any) (*model.MultiHelloRequiresByNamesInput, error) { if v == nil { return nil, nil } @@ -8618,7 +8618,7 @@ func (ec *executionContext) marshalOMultiHelloWithError2ᚖgithubᚗcomᚋ99desi return ec._MultiHelloWithError(ctx, sel, v) } -func (ec *executionContext) unmarshalOMultiHelloWithErrorByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiHelloWithErrorByNamesInput(ctx context.Context, v interface{}) (*model.MultiHelloWithErrorByNamesInput, error) { +func (ec *executionContext) unmarshalOMultiHelloWithErrorByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiHelloWithErrorByNamesInput(ctx context.Context, v any) (*model.MultiHelloWithErrorByNamesInput, error) { if v == nil { return nil, nil } @@ -8674,7 +8674,7 @@ func (ec *executionContext) marshalOMultiPlanetRequiresNested2ᚖgithubᚗcomᚋ return ec._MultiPlanetRequiresNested(ctx, sel, v) } -func (ec *executionContext) unmarshalOMultiPlanetRequiresNestedByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiPlanetRequiresNestedByNamesInput(ctx context.Context, v interface{}) (*model.MultiPlanetRequiresNestedByNamesInput, error) { +func (ec *executionContext) unmarshalOMultiPlanetRequiresNestedByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋentityresolverᚋgeneratedᚋmodelᚐMultiPlanetRequiresNestedByNamesInput(ctx context.Context, v any) (*model.MultiPlanetRequiresNestedByNamesInput, error) { if v == nil { return nil, nil } @@ -8682,7 +8682,7 @@ func (ec *executionContext) unmarshalOMultiPlanetRequiresNestedByNamesInput2ᚖg return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalOString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8692,7 +8692,7 @@ func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/plugin/federation/testdata/entityresolver/generated/federation.go b/plugin/federation/testdata/entityresolver/generated/federation.go index e361e4ebed6..a8fd947dd3b 100644 --- a/plugin/federation/testdata/entityresolver/generated/federation.go +++ b/plugin/federation/testdata/entityresolver/generated/federation.go @@ -37,7 +37,7 @@ func (ec *executionContext) __resolve__service(ctx context.Context) (fedruntime. }, nil } -func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]interface{}) []fedruntime.Entity { +func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]any) []fedruntime.Entity { list := make([]fedruntime.Entity, len(representations)) repsMap := ec.buildRepresentationGroups(ctx, representations) @@ -292,7 +292,7 @@ func (ec *executionContext) resolveEntity( return nil, fmt.Errorf(`resolving Entity "PlanetRequiresNested": %w`, err) } - entity.World.Foo, err = ec.unmarshalNString2string(ctx, rep["world"].(map[string]interface{})["foo"]) + entity.World.Foo, err = ec.unmarshalNString2string(ctx, rep["world"].(map[string]any)["foo"]) if err != nil { return nil, err } @@ -306,7 +306,7 @@ func (ec *executionContext) resolveEntity( switch resolverName { case "findWorldByHelloNameAndFoo": - id0, err := ec.unmarshalNString2string(ctx, rep["hello"].(map[string]interface{})["name"]) + id0, err := ec.unmarshalNString2string(ctx, rep["hello"].(map[string]any)["name"]) if err != nil { return nil, fmt.Errorf(`unmarshalling param 0 for findWorldByHelloNameAndFoo(): %w`, err) } @@ -348,7 +348,7 @@ func (ec *executionContext) resolveEntity( switch resolverName { case "findWorldWithMultipleKeysByHelloNameAndFoo": - id0, err := ec.unmarshalNString2string(ctx, rep["hello"].(map[string]interface{})["name"]) + id0, err := ec.unmarshalNString2string(ctx, rep["hello"].(map[string]any)["name"]) if err != nil { return nil, fmt.Errorf(`unmarshalling param 0 for findWorldWithMultipleKeysByHelloNameAndFoo(): %w`, err) } @@ -574,7 +574,7 @@ func (ec *executionContext) resolveManyEntities( } for i, entity := range entities { - entity.World.Foo, err = ec.unmarshalNString2string(ctx, reps[i].entity["world"].(map[string]interface{})["foo"]) + entity.World.Foo, err = ec.unmarshalNString2string(ctx, reps[i].entity["world"].(map[string]any)["foo"]) if err != nil { return err } @@ -598,7 +598,7 @@ func entityResolverNameForHello(ctx context.Context, rep EntityRepresentation) ( for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -633,7 +633,7 @@ func entityResolverNameForHelloMultiSingleKeys(ctx context.Context, rep EntityRe for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -678,7 +678,7 @@ func entityResolverNameForHelloWithErrors(ctx context.Context, rep EntityReprese for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -713,7 +713,7 @@ func entityResolverNameForMultiHello(ctx context.Context, rep EntityRepresentati for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -748,7 +748,7 @@ func entityResolverNameForMultiHelloMultipleRequires(ctx context.Context, rep En for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -783,7 +783,7 @@ func entityResolverNameForMultiHelloRequires(ctx context.Context, rep EntityRepr for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -818,7 +818,7 @@ func entityResolverNameForMultiHelloWithError(ctx context.Context, rep EntityRep for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -853,7 +853,7 @@ func entityResolverNameForMultiPlanetRequiresNested(ctx context.Context, rep Ent for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -888,7 +888,7 @@ func entityResolverNameForPlanetMultipleRequires(ctx context.Context, rep Entity for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -923,7 +923,7 @@ func entityResolverNameForPlanetRequires(ctx context.Context, rep EntityRepresen for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -958,7 +958,7 @@ func entityResolverNameForPlanetRequiresNested(ctx context.Context, rep EntityRe for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -993,7 +993,7 @@ func entityResolverNameForWorld(ctx context.Context, rep EntityRepresentation) ( for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -1007,7 +1007,7 @@ func entityResolverNameForWorld(ctx context.Context, rep EntityRepresentation) ( fmt.Errorf("%w due to missing Key Field \"hello\" for World", ErrTypeNotFound)) break } - if m, ok = val.(map[string]interface{}); !ok { + if m, ok = val.(map[string]any); !ok { // nested field value is not a map[string]interface so don't use it entityResolverErrs = append(entityResolverErrs, fmt.Errorf("%w due to nested Key Field \"hello\" value not matching map[string]any for World", ErrTypeNotFound)) @@ -1050,7 +1050,7 @@ func entityResolverNameForWorldName(ctx context.Context, rep EntityRepresentatio for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -1085,7 +1085,7 @@ func entityResolverNameForWorldWithMultipleKeys(ctx context.Context, rep EntityR for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -1099,7 +1099,7 @@ func entityResolverNameForWorldWithMultipleKeys(ctx context.Context, rep EntityR fmt.Errorf("%w due to missing Key Field \"hello\" for WorldWithMultipleKeys", ErrTypeNotFound)) break } - if m, ok = val.(map[string]interface{}); !ok { + if m, ok = val.(map[string]any); !ok { // nested field value is not a map[string]interface so don't use it entityResolverErrs = append(entityResolverErrs, fmt.Errorf("%w due to nested Key Field \"hello\" value not matching map[string]any for WorldWithMultipleKeys", ErrTypeNotFound)) @@ -1134,7 +1134,7 @@ func entityResolverNameForWorldWithMultipleKeys(ctx context.Context, rep EntityR for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val diff --git a/plugin/federation/testdata/explicitrequires/generated/exec.go b/plugin/federation/testdata/explicitrequires/generated/exec.go index a85e9fdeef1..9b2e1246767 100644 --- a/plugin/federation/testdata/explicitrequires/generated/exec.go +++ b/plugin/federation/testdata/explicitrequires/generated/exec.go @@ -80,7 +80,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec @@ -343,9 +343,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Entity_findHelloByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findHelloByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findHelloByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -355,7 +355,7 @@ func (ec *executionContext) field_Entity_findHelloByName_args(ctx context.Contex } func (ec *executionContext) field_Entity_findHelloByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -375,9 +375,9 @@ func (ec *executionContext) field_Entity_findHelloByName_argsName( return zeroVal, nil } -func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findHelloMultiSingleKeysByKey1AndKey2_argsKey1(ctx, rawArgs) if err != nil { return nil, err @@ -392,7 +392,7 @@ func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_a } func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_argsKey1( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -414,7 +414,7 @@ func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_a func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_argsKey2( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -434,9 +434,9 @@ func (ec *executionContext) field_Entity_findHelloMultiSingleKeysByKey1AndKey2_a return zeroVal, nil } -func (ec *executionContext) field_Entity_findHelloWithErrorsByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findHelloWithErrorsByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findHelloWithErrorsByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -446,7 +446,7 @@ func (ec *executionContext) field_Entity_findHelloWithErrorsByName_args(ctx cont } func (ec *executionContext) field_Entity_findHelloWithErrorsByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -466,9 +466,9 @@ func (ec *executionContext) field_Entity_findHelloWithErrorsByName_argsName( return zeroVal, nil } -func (ec *executionContext) field_Entity_findManyMultiHelloByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findManyMultiHelloByNames_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findManyMultiHelloByNames_argsReps(ctx, rawArgs) if err != nil { return nil, err @@ -478,7 +478,7 @@ func (ec *executionContext) field_Entity_findManyMultiHelloByNames_args(ctx cont } func (ec *executionContext) field_Entity_findManyMultiHelloByNames_argsReps( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*MultiHelloByNamesInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -498,9 +498,9 @@ func (ec *executionContext) field_Entity_findManyMultiHelloByNames_argsReps( return zeroVal, nil } -func (ec *executionContext) field_Entity_findManyMultiHelloMultipleRequiresByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findManyMultiHelloMultipleRequiresByNames_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findManyMultiHelloMultipleRequiresByNames_argsReps(ctx, rawArgs) if err != nil { return nil, err @@ -510,7 +510,7 @@ func (ec *executionContext) field_Entity_findManyMultiHelloMultipleRequiresByNam } func (ec *executionContext) field_Entity_findManyMultiHelloMultipleRequiresByNames_argsReps( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*MultiHelloMultipleRequiresByNamesInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -530,9 +530,9 @@ func (ec *executionContext) field_Entity_findManyMultiHelloMultipleRequiresByNam return zeroVal, nil } -func (ec *executionContext) field_Entity_findManyMultiHelloRequiresByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findManyMultiHelloRequiresByNames_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findManyMultiHelloRequiresByNames_argsReps(ctx, rawArgs) if err != nil { return nil, err @@ -542,7 +542,7 @@ func (ec *executionContext) field_Entity_findManyMultiHelloRequiresByNames_args( } func (ec *executionContext) field_Entity_findManyMultiHelloRequiresByNames_argsReps( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*MultiHelloRequiresByNamesInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -562,9 +562,9 @@ func (ec *executionContext) field_Entity_findManyMultiHelloRequiresByNames_argsR return zeroVal, nil } -func (ec *executionContext) field_Entity_findManyMultiHelloWithErrorByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findManyMultiHelloWithErrorByNames_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findManyMultiHelloWithErrorByNames_argsReps(ctx, rawArgs) if err != nil { return nil, err @@ -574,7 +574,7 @@ func (ec *executionContext) field_Entity_findManyMultiHelloWithErrorByNames_args } func (ec *executionContext) field_Entity_findManyMultiHelloWithErrorByNames_argsReps( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*MultiHelloWithErrorByNamesInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -594,9 +594,9 @@ func (ec *executionContext) field_Entity_findManyMultiHelloWithErrorByNames_args return zeroVal, nil } -func (ec *executionContext) field_Entity_findManyMultiPlanetRequiresNestedByNames_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findManyMultiPlanetRequiresNestedByNames_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findManyMultiPlanetRequiresNestedByNames_argsReps(ctx, rawArgs) if err != nil { return nil, err @@ -606,7 +606,7 @@ func (ec *executionContext) field_Entity_findManyMultiPlanetRequiresNestedByName } func (ec *executionContext) field_Entity_findManyMultiPlanetRequiresNestedByNames_argsReps( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*MultiPlanetRequiresNestedByNamesInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -626,9 +626,9 @@ func (ec *executionContext) field_Entity_findManyMultiPlanetRequiresNestedByName return zeroVal, nil } -func (ec *executionContext) field_Entity_findPersonByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findPersonByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findPersonByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -638,7 +638,7 @@ func (ec *executionContext) field_Entity_findPersonByName_args(ctx context.Conte } func (ec *executionContext) field_Entity_findPersonByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -658,9 +658,9 @@ func (ec *executionContext) field_Entity_findPersonByName_argsName( return zeroVal, nil } -func (ec *executionContext) field_Entity_findPlanetMultipleRequiresByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findPlanetMultipleRequiresByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findPlanetMultipleRequiresByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -670,7 +670,7 @@ func (ec *executionContext) field_Entity_findPlanetMultipleRequiresByName_args(c } func (ec *executionContext) field_Entity_findPlanetMultipleRequiresByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -690,9 +690,9 @@ func (ec *executionContext) field_Entity_findPlanetMultipleRequiresByName_argsNa return zeroVal, nil } -func (ec *executionContext) field_Entity_findPlanetRequiresByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findPlanetRequiresByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findPlanetRequiresByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -702,7 +702,7 @@ func (ec *executionContext) field_Entity_findPlanetRequiresByName_args(ctx conte } func (ec *executionContext) field_Entity_findPlanetRequiresByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -722,9 +722,9 @@ func (ec *executionContext) field_Entity_findPlanetRequiresByName_argsName( return zeroVal, nil } -func (ec *executionContext) field_Entity_findPlanetRequiresNestedByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findPlanetRequiresNestedByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findPlanetRequiresNestedByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -734,7 +734,7 @@ func (ec *executionContext) field_Entity_findPlanetRequiresNestedByName_args(ctx } func (ec *executionContext) field_Entity_findPlanetRequiresNestedByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -754,9 +754,9 @@ func (ec *executionContext) field_Entity_findPlanetRequiresNestedByName_argsName return zeroVal, nil } -func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findWorldByHelloNameAndFoo_argsHelloName(ctx, rawArgs) if err != nil { return nil, err @@ -771,7 +771,7 @@ func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_args(ctx con } func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_argsHelloName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -793,7 +793,7 @@ func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_argsHelloNam func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_argsFoo( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -813,9 +813,9 @@ func (ec *executionContext) field_Entity_findWorldByHelloNameAndFoo_argsFoo( return zeroVal, nil } -func (ec *executionContext) field_Entity_findWorldNameByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findWorldNameByName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findWorldNameByName_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -825,7 +825,7 @@ func (ec *executionContext) field_Entity_findWorldNameByName_args(ctx context.Co } func (ec *executionContext) field_Entity_findWorldNameByName_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -845,9 +845,9 @@ func (ec *executionContext) field_Entity_findWorldNameByName_argsName( return zeroVal, nil } -func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByBar_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByBar_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findWorldWithMultipleKeysByBar_argsBar(ctx, rawArgs) if err != nil { return nil, err @@ -857,7 +857,7 @@ func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByBar_args(ctx } func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByBar_argsBar( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -877,9 +877,9 @@ func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByBar_argsBar( return zeroVal, nil } -func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_argsHelloName(ctx, rawArgs) if err != nil { return nil, err @@ -894,7 +894,7 @@ func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAnd } func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_argsHelloName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -916,7 +916,7 @@ func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAnd func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_argsFoo( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -936,9 +936,9 @@ func (ec *executionContext) field_Entity_findWorldWithMultipleKeysByHelloNameAnd return zeroVal, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) if err != nil { return nil, err @@ -948,7 +948,7 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query___type_argsName( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -968,9 +968,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Query__entities_argsRepresentations(ctx, rawArgs) if err != nil { return nil, err @@ -980,14 +980,14 @@ func (ec *executionContext) field_Query__entities_args(ctx context.Context, rawA } func (ec *executionContext) field_Query__entities_argsRepresentations( ctx context.Context, - rawArgs map[string]interface{}, -) ([]map[string]interface{}, error) { + rawArgs map[string]any, +) ([]map[string]any, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives // even if the argument is null. _, ok := rawArgs["representations"] if !ok { - var zeroVal []map[string]interface{} + var zeroVal []map[string]any return zeroVal, nil } @@ -996,13 +996,13 @@ func (ec *executionContext) field_Query__entities_argsRepresentations( return ec.unmarshalN_Any2ᚕmapᚄ(ctx, tmp) } - var zeroVal []map[string]interface{} + var zeroVal []map[string]any return zeroVal, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -1012,7 +1012,7 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra } func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1032,9 +1032,9 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) if err != nil { return nil, err @@ -1044,7 +1044,7 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg } func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1084,7 +1084,7 @@ func (ec *executionContext) _Entity_findHelloByName(ctx context.Context, field g ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindHelloByName(rctx, fc.Args["name"].(string)) }) @@ -1145,7 +1145,7 @@ func (ec *executionContext) _Entity_findHelloMultiSingleKeysByKey1AndKey2(ctx co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindHelloMultiSingleKeysByKey1AndKey2(rctx, fc.Args["key1"].(string), fc.Args["key2"].(string)) }) @@ -1206,7 +1206,7 @@ func (ec *executionContext) _Entity_findHelloWithErrorsByName(ctx context.Contex ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindHelloWithErrorsByName(rctx, fc.Args["name"].(string)) }) @@ -1265,7 +1265,7 @@ func (ec *executionContext) _Entity_findManyMultiHelloByNames(ctx context.Contex ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiHelloByNames(rctx, fc.Args["reps"].([]*MultiHelloByNamesInput)) }) @@ -1321,7 +1321,7 @@ func (ec *executionContext) _Entity_findManyMultiHelloMultipleRequiresByNames(ct ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiHelloMultipleRequiresByNames(rctx, fc.Args["reps"].([]*MultiHelloMultipleRequiresByNamesInput)) }) @@ -1383,7 +1383,7 @@ func (ec *executionContext) _Entity_findManyMultiHelloRequiresByNames(ctx contex ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiHelloRequiresByNames(rctx, fc.Args["reps"].([]*MultiHelloRequiresByNamesInput)) }) @@ -1443,7 +1443,7 @@ func (ec *executionContext) _Entity_findManyMultiHelloWithErrorByNames(ctx conte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiHelloWithErrorByNames(rctx, fc.Args["reps"].([]*MultiHelloWithErrorByNamesInput)) }) @@ -1499,7 +1499,7 @@ func (ec *executionContext) _Entity_findManyMultiPlanetRequiresNestedByNames(ctx ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiPlanetRequiresNestedByNames(rctx, fc.Args["reps"].([]*MultiPlanetRequiresNestedByNamesInput)) }) @@ -1559,7 +1559,7 @@ func (ec *executionContext) _Entity_findPersonByName(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindPersonByName(rctx, fc.Args["name"].(string)) }) @@ -1622,7 +1622,7 @@ func (ec *executionContext) _Entity_findPlanetMultipleRequiresByName(ctx context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindPlanetMultipleRequiresByName(rctx, fc.Args["name"].(string)) }) @@ -1687,7 +1687,7 @@ func (ec *executionContext) _Entity_findPlanetRequiresByName(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindPlanetRequiresByName(rctx, fc.Args["name"].(string)) }) @@ -1750,7 +1750,7 @@ func (ec *executionContext) _Entity_findPlanetRequiresNestedByName(ctx context.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindPlanetRequiresNestedByName(rctx, fc.Args["name"].(string)) }) @@ -1817,7 +1817,7 @@ func (ec *executionContext) _Entity_findWorldByHelloNameAndFoo(ctx context.Conte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindWorldByHelloNameAndFoo(rctx, fc.Args["helloName"].(string), fc.Args["foo"].(string)) }) @@ -1880,7 +1880,7 @@ func (ec *executionContext) _Entity_findWorldNameByName(ctx context.Context, fie ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindWorldNameByName(rctx, fc.Args["name"].(string)) }) @@ -1939,7 +1939,7 @@ func (ec *executionContext) _Entity_findWorldWithMultipleKeysByHelloNameAndFoo(c ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindWorldWithMultipleKeysByHelloNameAndFoo(rctx, fc.Args["helloName"].(string), fc.Args["foo"].(string)) }) @@ -2002,7 +2002,7 @@ func (ec *executionContext) _Entity_findWorldWithMultipleKeysByBar(ctx context.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindWorldWithMultipleKeysByBar(rctx, fc.Args["bar"].(int)) }) @@ -2065,7 +2065,7 @@ func (ec *executionContext) _Female_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description, nil }) @@ -2109,7 +2109,7 @@ func (ec *executionContext) _Hello_name(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2153,7 +2153,7 @@ func (ec *executionContext) _Hello_secondary(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Secondary, nil }) @@ -2197,7 +2197,7 @@ func (ec *executionContext) _HelloMultiSingleKeys_key1(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key1, nil }) @@ -2241,7 +2241,7 @@ func (ec *executionContext) _HelloMultiSingleKeys_key2(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key2, nil }) @@ -2285,7 +2285,7 @@ func (ec *executionContext) _HelloWithErrors_name(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2329,7 +2329,7 @@ func (ec *executionContext) _Male_description(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description, nil }) @@ -2373,7 +2373,7 @@ func (ec *executionContext) _MultiHello_name(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2417,7 +2417,7 @@ func (ec *executionContext) _MultiHelloMultipleRequires_name(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2461,7 +2461,7 @@ func (ec *executionContext) _MultiHelloMultipleRequires_key1(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key1, nil }) @@ -2505,7 +2505,7 @@ func (ec *executionContext) _MultiHelloMultipleRequires_key2(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key2, nil }) @@ -2549,7 +2549,7 @@ func (ec *executionContext) _MultiHelloMultipleRequires_key3(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key3, nil }) @@ -2593,7 +2593,7 @@ func (ec *executionContext) _MultiHelloRequires_name(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2637,7 +2637,7 @@ func (ec *executionContext) _MultiHelloRequires_key1(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key1, nil }) @@ -2681,7 +2681,7 @@ func (ec *executionContext) _MultiHelloRequires_key2(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key2, nil }) @@ -2725,7 +2725,7 @@ func (ec *executionContext) _MultiHelloWithError_name(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2769,7 +2769,7 @@ func (ec *executionContext) _MultiPlanetRequiresNested_name(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2813,7 +2813,7 @@ func (ec *executionContext) _MultiPlanetRequiresNested_world(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.World, nil }) @@ -2865,7 +2865,7 @@ func (ec *executionContext) _MultiPlanetRequiresNested_size(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Size, nil }) @@ -2909,7 +2909,7 @@ func (ec *executionContext) _Person_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2953,7 +2953,7 @@ func (ec *executionContext) _Person_gender(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Gender, nil }) @@ -2997,7 +2997,7 @@ func (ec *executionContext) _Person_welcomeMessage(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.WelcomeMessage, nil }) @@ -3038,7 +3038,7 @@ func (ec *executionContext) _PlanetMultipleRequires_name(ctx context.Context, fi ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3082,7 +3082,7 @@ func (ec *executionContext) _PlanetMultipleRequires_diameter(ctx context.Context ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Diameter, nil }) @@ -3126,7 +3126,7 @@ func (ec *executionContext) _PlanetMultipleRequires_density(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Density, nil }) @@ -3170,7 +3170,7 @@ func (ec *executionContext) _PlanetMultipleRequires_weight(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Weight, nil }) @@ -3214,7 +3214,7 @@ func (ec *executionContext) _PlanetRequires_name(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3258,7 +3258,7 @@ func (ec *executionContext) _PlanetRequires_size(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Size, nil }) @@ -3302,7 +3302,7 @@ func (ec *executionContext) _PlanetRequires_diameter(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Diameter, nil }) @@ -3346,7 +3346,7 @@ func (ec *executionContext) _PlanetRequiresNested_name(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3390,7 +3390,7 @@ func (ec *executionContext) _PlanetRequiresNested_world(ctx context.Context, fie ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.World, nil }) @@ -3442,7 +3442,7 @@ func (ec *executionContext) _PlanetRequiresNested_worlds(ctx context.Context, fi ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Worlds, nil }) @@ -3491,7 +3491,7 @@ func (ec *executionContext) _PlanetRequiresNested_size(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Size, nil }) @@ -3535,7 +3535,7 @@ func (ec *executionContext) _PlanetRequiresNested_sizes(ctx context.Context, fie ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Sizes, nil }) @@ -3576,9 +3576,9 @@ func (ec *executionContext) _Query__entities(ctx context.Context, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.__resolve_entities(ctx, fc.Args["representations"].([]map[string]interface{})), nil + return ec.__resolve_entities(ctx, fc.Args["representations"].([]map[string]any)), nil }) if err != nil { ec.Error(ctx, err) @@ -3631,7 +3631,7 @@ func (ec *executionContext) _Query__service(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.__resolve__service(ctx) }) @@ -3679,7 +3679,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -3753,7 +3753,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -3808,7 +3808,7 @@ func (ec *executionContext) _World_foo(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Foo, nil }) @@ -3852,7 +3852,7 @@ func (ec *executionContext) _World_bar(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Bar, nil }) @@ -3896,7 +3896,7 @@ func (ec *executionContext) _World_hello(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Hello, nil }) @@ -3943,7 +3943,7 @@ func (ec *executionContext) _WorldName_name(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3987,7 +3987,7 @@ func (ec *executionContext) _WorldWithMultipleKeys_foo(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Foo, nil }) @@ -4031,7 +4031,7 @@ func (ec *executionContext) _WorldWithMultipleKeys_bar(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Bar, nil }) @@ -4075,7 +4075,7 @@ func (ec *executionContext) _WorldWithMultipleKeys_hello(ctx context.Context, fi ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Hello, nil }) @@ -4122,7 +4122,7 @@ func (ec *executionContext) __Service_sdl(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SDL, nil }) @@ -4163,7 +4163,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -4207,7 +4207,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -4248,7 +4248,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -4292,7 +4292,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -4346,7 +4346,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -4390,7 +4390,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -4434,7 +4434,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -4475,7 +4475,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -4519,7 +4519,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -4560,7 +4560,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -4604,7 +4604,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -4645,7 +4645,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -4699,7 +4699,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -4765,7 +4765,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -4809,7 +4809,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -4850,7 +4850,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -4894,7 +4894,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -4935,7 +4935,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -5001,7 +5001,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -5042,7 +5042,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -5083,7 +5083,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -5149,7 +5149,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -5215,7 +5215,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -5278,7 +5278,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -5341,7 +5341,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -5397,7 +5397,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -5441,7 +5441,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -5482,7 +5482,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -5523,7 +5523,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -5589,7 +5589,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -5652,7 +5652,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -5715,7 +5715,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -5777,7 +5777,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -5828,7 +5828,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -5891,7 +5891,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -5924,10 +5924,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputMultiHelloByNamesInput(ctx context.Context, obj interface{}) (MultiHelloByNamesInput, error) { +func (ec *executionContext) unmarshalInputMultiHelloByNamesInput(ctx context.Context, obj any) (MultiHelloByNamesInput, error) { var it MultiHelloByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -5951,10 +5951,10 @@ func (ec *executionContext) unmarshalInputMultiHelloByNamesInput(ctx context.Con return it, nil } -func (ec *executionContext) unmarshalInputMultiHelloMultipleRequiresByNamesInput(ctx context.Context, obj interface{}) (MultiHelloMultipleRequiresByNamesInput, error) { +func (ec *executionContext) unmarshalInputMultiHelloMultipleRequiresByNamesInput(ctx context.Context, obj any) (MultiHelloMultipleRequiresByNamesInput, error) { var it MultiHelloMultipleRequiresByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -5978,10 +5978,10 @@ func (ec *executionContext) unmarshalInputMultiHelloMultipleRequiresByNamesInput return it, nil } -func (ec *executionContext) unmarshalInputMultiHelloRequiresByNamesInput(ctx context.Context, obj interface{}) (MultiHelloRequiresByNamesInput, error) { +func (ec *executionContext) unmarshalInputMultiHelloRequiresByNamesInput(ctx context.Context, obj any) (MultiHelloRequiresByNamesInput, error) { var it MultiHelloRequiresByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6005,10 +6005,10 @@ func (ec *executionContext) unmarshalInputMultiHelloRequiresByNamesInput(ctx con return it, nil } -func (ec *executionContext) unmarshalInputMultiHelloWithErrorByNamesInput(ctx context.Context, obj interface{}) (MultiHelloWithErrorByNamesInput, error) { +func (ec *executionContext) unmarshalInputMultiHelloWithErrorByNamesInput(ctx context.Context, obj any) (MultiHelloWithErrorByNamesInput, error) { var it MultiHelloWithErrorByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6032,10 +6032,10 @@ func (ec *executionContext) unmarshalInputMultiHelloWithErrorByNamesInput(ctx co return it, nil } -func (ec *executionContext) unmarshalInputMultiPlanetRequiresNestedByNamesInput(ctx context.Context, obj interface{}) (MultiPlanetRequiresNestedByNamesInput, error) { +func (ec *executionContext) unmarshalInputMultiPlanetRequiresNestedByNamesInput(ctx context.Context, obj any) (MultiPlanetRequiresNestedByNamesInput, error) { var it MultiPlanetRequiresNestedByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -7807,7 +7807,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -7874,7 +7874,7 @@ func (ec *executionContext) marshalNHelloWithErrors2ᚖgithubᚗcomᚋ99designs return ec._HelloWithErrors(ctx, sel, v) } -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -7889,8 +7889,8 @@ func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.Selecti return res } -func (ec *executionContext) unmarshalNMultiHelloByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiHelloByNamesInput(ctx context.Context, v interface{}) ([]*MultiHelloByNamesInput, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNMultiHelloByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiHelloByNamesInput(ctx context.Context, v any) ([]*MultiHelloByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -7906,8 +7906,8 @@ func (ec *executionContext) unmarshalNMultiHelloByNamesInput2ᚕᚖgithubᚗcom return res, nil } -func (ec *executionContext) unmarshalNMultiHelloMultipleRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiHelloMultipleRequiresByNamesInput(ctx context.Context, v interface{}) ([]*MultiHelloMultipleRequiresByNamesInput, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNMultiHelloMultipleRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiHelloMultipleRequiresByNamesInput(ctx context.Context, v any) ([]*MultiHelloMultipleRequiresByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -7923,8 +7923,8 @@ func (ec *executionContext) unmarshalNMultiHelloMultipleRequiresByNamesInput2ᚕ return res, nil } -func (ec *executionContext) unmarshalNMultiHelloRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiHelloRequiresByNamesInput(ctx context.Context, v interface{}) ([]*MultiHelloRequiresByNamesInput, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNMultiHelloRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiHelloRequiresByNamesInput(ctx context.Context, v any) ([]*MultiHelloRequiresByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -7940,8 +7940,8 @@ func (ec *executionContext) unmarshalNMultiHelloRequiresByNamesInput2ᚕᚖgithu return res, nil } -func (ec *executionContext) unmarshalNMultiHelloWithErrorByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiHelloWithErrorByNamesInput(ctx context.Context, v interface{}) ([]*MultiHelloWithErrorByNamesInput, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNMultiHelloWithErrorByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiHelloWithErrorByNamesInput(ctx context.Context, v any) ([]*MultiHelloWithErrorByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -7957,8 +7957,8 @@ func (ec *executionContext) unmarshalNMultiHelloWithErrorByNamesInput2ᚕᚖgith return res, nil } -func (ec *executionContext) unmarshalNMultiPlanetRequiresNestedByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiPlanetRequiresNestedByNamesInput(ctx context.Context, v interface{}) ([]*MultiPlanetRequiresNestedByNamesInput, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNMultiPlanetRequiresNestedByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiPlanetRequiresNestedByNamesInput(ctx context.Context, v any) ([]*MultiPlanetRequiresNestedByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -8030,7 +8030,7 @@ func (ec *executionContext) marshalNPlanetRequiresNested2ᚖgithubᚗcomᚋ99des return ec._PlanetRequiresNested(ctx, sel, v) } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8087,12 +8087,12 @@ func (ec *executionContext) marshalNWorldWithMultipleKeys2ᚖgithubᚗcomᚋ99de return ec._WorldWithMultipleKeys(ctx, sel, v) } -func (ec *executionContext) unmarshalN_Any2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalN_Any2map(ctx context.Context, v any) (map[string]any, error) { res, err := graphql.UnmarshalMap(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.SelectionSet, v map[string]any) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -8108,13 +8108,13 @@ func (ec *executionContext) marshalN_Any2map(ctx context.Context, sel ast.Select return res } -func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v interface{}) ([]map[string]interface{}, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v any) ([]map[string]any, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } var err error - res := make([]map[string]interface{}, len(vSlice)) + res := make([]map[string]any, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) res[i], err = ec.unmarshalN_Any2map(ctx, vSlice[i]) @@ -8125,7 +8125,7 @@ func (ec *executionContext) unmarshalN_Any2ᚕmapᚄ(ctx context.Context, v inte return res, nil } -func (ec *executionContext) marshalN_Any2ᚕmapᚄ(ctx context.Context, sel ast.SelectionSet, v []map[string]interface{}) graphql.Marshaler { +func (ec *executionContext) marshalN_Any2ᚕmapᚄ(ctx context.Context, sel ast.SelectionSet, v []map[string]any) graphql.Marshaler { ret := make(graphql.Array, len(v)) for i := range v { ret[i] = ec.marshalN_Any2map(ctx, sel, v[i]) @@ -8178,7 +8178,7 @@ func (ec *executionContext) marshalN_Entity2ᚕgithubᚗcomᚋ99designsᚋgqlgen return ret } -func (ec *executionContext) unmarshalN_FieldSet2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN_FieldSet2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8245,7 +8245,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8260,8 +8260,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -8435,7 +8435,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8450,7 +8450,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8460,7 +8460,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -8483,11 +8483,11 @@ func (ec *executionContext) marshalOHello2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec._Hello(ctx, sel, v) } -func (ec *executionContext) unmarshalOInt2ᚕintᚄ(ctx context.Context, v interface{}) ([]int, error) { +func (ec *executionContext) unmarshalOInt2ᚕintᚄ(ctx context.Context, v any) ([]int, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -8569,7 +8569,7 @@ func (ec *executionContext) marshalOMultiHello2ᚖgithubᚗcomᚋ99designsᚋgql return ec._MultiHello(ctx, sel, v) } -func (ec *executionContext) unmarshalOMultiHelloByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiHelloByNamesInput(ctx context.Context, v interface{}) (*MultiHelloByNamesInput, error) { +func (ec *executionContext) unmarshalOMultiHelloByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiHelloByNamesInput(ctx context.Context, v any) (*MultiHelloByNamesInput, error) { if v == nil { return nil, nil } @@ -8625,7 +8625,7 @@ func (ec *executionContext) marshalOMultiHelloMultipleRequires2ᚖgithubᚗcom return ec._MultiHelloMultipleRequires(ctx, sel, v) } -func (ec *executionContext) unmarshalOMultiHelloMultipleRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiHelloMultipleRequiresByNamesInput(ctx context.Context, v interface{}) (*MultiHelloMultipleRequiresByNamesInput, error) { +func (ec *executionContext) unmarshalOMultiHelloMultipleRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiHelloMultipleRequiresByNamesInput(ctx context.Context, v any) (*MultiHelloMultipleRequiresByNamesInput, error) { if v == nil { return nil, nil } @@ -8681,7 +8681,7 @@ func (ec *executionContext) marshalOMultiHelloRequires2ᚖgithubᚗcomᚋ99desig return ec._MultiHelloRequires(ctx, sel, v) } -func (ec *executionContext) unmarshalOMultiHelloRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiHelloRequiresByNamesInput(ctx context.Context, v interface{}) (*MultiHelloRequiresByNamesInput, error) { +func (ec *executionContext) unmarshalOMultiHelloRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiHelloRequiresByNamesInput(ctx context.Context, v any) (*MultiHelloRequiresByNamesInput, error) { if v == nil { return nil, nil } @@ -8737,7 +8737,7 @@ func (ec *executionContext) marshalOMultiHelloWithError2ᚖgithubᚗcomᚋ99desi return ec._MultiHelloWithError(ctx, sel, v) } -func (ec *executionContext) unmarshalOMultiHelloWithErrorByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiHelloWithErrorByNamesInput(ctx context.Context, v interface{}) (*MultiHelloWithErrorByNamesInput, error) { +func (ec *executionContext) unmarshalOMultiHelloWithErrorByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiHelloWithErrorByNamesInput(ctx context.Context, v any) (*MultiHelloWithErrorByNamesInput, error) { if v == nil { return nil, nil } @@ -8793,7 +8793,7 @@ func (ec *executionContext) marshalOMultiPlanetRequiresNested2ᚖgithubᚗcomᚋ return ec._MultiPlanetRequiresNested(ctx, sel, v) } -func (ec *executionContext) unmarshalOMultiPlanetRequiresNestedByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiPlanetRequiresNestedByNamesInput(ctx context.Context, v interface{}) (*MultiPlanetRequiresNestedByNamesInput, error) { +func (ec *executionContext) unmarshalOMultiPlanetRequiresNestedByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋexplicitrequiresᚋgeneratedᚐMultiPlanetRequiresNestedByNamesInput(ctx context.Context, v any) (*MultiPlanetRequiresNestedByNamesInput, error) { if v == nil { return nil, nil } @@ -8801,7 +8801,7 @@ func (ec *executionContext) unmarshalOMultiPlanetRequiresNestedByNamesInput2ᚖg return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalOString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8811,7 +8811,7 @@ func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/plugin/federation/testdata/explicitrequires/generated/federation.go b/plugin/federation/testdata/explicitrequires/generated/federation.go index 32d53d862d5..6243f28b6f5 100644 --- a/plugin/federation/testdata/explicitrequires/generated/federation.go +++ b/plugin/federation/testdata/explicitrequires/generated/federation.go @@ -36,7 +36,7 @@ func (ec *executionContext) __resolve__service(ctx context.Context) (fedruntime. }, nil } -func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]interface{}) []fedruntime.Entity { +func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]any) []fedruntime.Entity { list := make([]fedruntime.Entity, len(representations)) repsMap := ec.buildRepresentationGroups(ctx, representations) @@ -320,7 +320,7 @@ func (ec *executionContext) resolveEntity( switch resolverName { case "findWorldByHelloNameAndFoo": - id0, err := ec.unmarshalNString2string(ctx, rep["hello"].(map[string]interface{})["name"]) + id0, err := ec.unmarshalNString2string(ctx, rep["hello"].(map[string]any)["name"]) if err != nil { return nil, fmt.Errorf(`unmarshalling param 0 for findWorldByHelloNameAndFoo(): %w`, err) } @@ -362,7 +362,7 @@ func (ec *executionContext) resolveEntity( switch resolverName { case "findWorldWithMultipleKeysByHelloNameAndFoo": - id0, err := ec.unmarshalNString2string(ctx, rep["hello"].(map[string]interface{})["name"]) + id0, err := ec.unmarshalNString2string(ctx, rep["hello"].(map[string]any)["name"]) if err != nil { return nil, fmt.Errorf(`unmarshalling param 0 for findWorldWithMultipleKeysByHelloNameAndFoo(): %w`, err) } @@ -588,7 +588,7 @@ func (ec *executionContext) resolveManyEntities( } for i, entity := range entities { - entity.World.Foo, err = ec.unmarshalNString2string(ctx, reps[i].entity["world"].(map[string]interface{})["foo"]) + entity.World.Foo, err = ec.unmarshalNString2string(ctx, reps[i].entity["world"].(map[string]any)["foo"]) if err != nil { return err } @@ -612,7 +612,7 @@ func entityResolverNameForHello(ctx context.Context, rep EntityRepresentation) ( for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -647,7 +647,7 @@ func entityResolverNameForHelloMultiSingleKeys(ctx context.Context, rep EntityRe for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -692,7 +692,7 @@ func entityResolverNameForHelloWithErrors(ctx context.Context, rep EntityReprese for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -727,7 +727,7 @@ func entityResolverNameForMultiHello(ctx context.Context, rep EntityRepresentati for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -762,7 +762,7 @@ func entityResolverNameForMultiHelloMultipleRequires(ctx context.Context, rep En for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -797,7 +797,7 @@ func entityResolverNameForMultiHelloRequires(ctx context.Context, rep EntityRepr for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -832,7 +832,7 @@ func entityResolverNameForMultiHelloWithError(ctx context.Context, rep EntityRep for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -867,7 +867,7 @@ func entityResolverNameForMultiPlanetRequiresNested(ctx context.Context, rep Ent for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -902,7 +902,7 @@ func entityResolverNameForPerson(ctx context.Context, rep EntityRepresentation) for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -937,7 +937,7 @@ func entityResolverNameForPlanetMultipleRequires(ctx context.Context, rep Entity for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -972,7 +972,7 @@ func entityResolverNameForPlanetRequires(ctx context.Context, rep EntityRepresen for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -1007,7 +1007,7 @@ func entityResolverNameForPlanetRequiresNested(ctx context.Context, rep EntityRe for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -1042,7 +1042,7 @@ func entityResolverNameForWorld(ctx context.Context, rep EntityRepresentation) ( for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -1056,7 +1056,7 @@ func entityResolverNameForWorld(ctx context.Context, rep EntityRepresentation) ( fmt.Errorf("%w due to missing Key Field \"hello\" for World", ErrTypeNotFound)) break } - if m, ok = val.(map[string]interface{}); !ok { + if m, ok = val.(map[string]any); !ok { // nested field value is not a map[string]interface so don't use it entityResolverErrs = append(entityResolverErrs, fmt.Errorf("%w due to nested Key Field \"hello\" value not matching map[string]any for World", ErrTypeNotFound)) @@ -1099,7 +1099,7 @@ func entityResolverNameForWorldName(ctx context.Context, rep EntityRepresentatio for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -1134,7 +1134,7 @@ func entityResolverNameForWorldWithMultipleKeys(ctx context.Context, rep EntityR for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -1148,7 +1148,7 @@ func entityResolverNameForWorldWithMultipleKeys(ctx context.Context, rep EntityR fmt.Errorf("%w due to missing Key Field \"hello\" for WorldWithMultipleKeys", ErrTypeNotFound)) break } - if m, ok = val.(map[string]interface{}); !ok { + if m, ok = val.(map[string]any); !ok { // nested field value is not a map[string]interface so don't use it entityResolverErrs = append(entityResolverErrs, fmt.Errorf("%w due to nested Key Field \"hello\" value not matching map[string]any for WorldWithMultipleKeys", ErrTypeNotFound)) @@ -1183,7 +1183,7 @@ func entityResolverNameForWorldWithMultipleKeys(ctx context.Context, rep EntityR for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val diff --git a/plugin/federation/testdata/explicitrequires/generated/federation.requires.go b/plugin/federation/testdata/explicitrequires/generated/federation.requires.go index 1a3a9335114..73fc22942e6 100644 --- a/plugin/federation/testdata/explicitrequires/generated/federation.requires.go +++ b/plugin/federation/testdata/explicitrequires/generated/federation.requires.go @@ -7,27 +7,27 @@ import ( ) // PopulateMultiHelloMultipleRequiresRequires is the requires populator for the MultiHelloMultipleRequires entity. -func (ec *executionContext) PopulateMultiHelloMultipleRequiresRequires(ctx context.Context, entity *MultiHelloMultipleRequires, reps map[string]interface{}) error { +func (ec *executionContext) PopulateMultiHelloMultipleRequiresRequires(ctx context.Context, entity *MultiHelloMultipleRequires, reps map[string]any) error { panic(fmt.Errorf("not implemented: PopulateMultiHelloMultipleRequiresRequires")) } // PopulateMultiHelloRequiresRequires is the requires populator for the MultiHelloRequires entity. -func (ec *executionContext) PopulateMultiHelloRequiresRequires(ctx context.Context, entity *MultiHelloRequires, reps map[string]interface{}) error { +func (ec *executionContext) PopulateMultiHelloRequiresRequires(ctx context.Context, entity *MultiHelloRequires, reps map[string]any) error { panic(fmt.Errorf("not implemented: PopulateMultiHelloRequiresRequires")) } // PopulateMultiPlanetRequiresNestedRequires is the requires populator for the MultiPlanetRequiresNested entity. -func (ec *executionContext) PopulateMultiPlanetRequiresNestedRequires(ctx context.Context, entity *MultiPlanetRequiresNested, reps map[string]interface{}) error { +func (ec *executionContext) PopulateMultiPlanetRequiresNestedRequires(ctx context.Context, entity *MultiPlanetRequiresNested, reps map[string]any) error { panic(fmt.Errorf("not implemented: PopulateMultiPlanetRequiresNestedRequires")) } // PopulatePersonRequires is the requires populator for the Person entity. -func (ec *executionContext) PopulatePersonRequires(ctx context.Context, entity *Person, reps map[string]interface{}) error { +func (ec *executionContext) PopulatePersonRequires(ctx context.Context, entity *Person, reps map[string]any) error { panic(fmt.Errorf("not implemented: PopulatePersonRequires")) } // PopulatePlanetMultipleRequiresRequires is the requires populator for the PlanetMultipleRequires entity. -func (ec *executionContext) PopulatePlanetMultipleRequiresRequires(ctx context.Context, entity *PlanetMultipleRequires, reps map[string]interface{}) error { +func (ec *executionContext) PopulatePlanetMultipleRequiresRequires(ctx context.Context, entity *PlanetMultipleRequires, reps map[string]any) error { diameter, _ := reps["diameter"].(json.Number).Int64() density, _ := reps["density"].(json.Number).Int64() entity.Name = reps["name"].(string) @@ -37,16 +37,16 @@ func (ec *executionContext) PopulatePlanetMultipleRequiresRequires(ctx context.C } // PopulatePlanetRequiresNestedRequires is the requires populator for the PlanetRequiresNested entity. -func (ec *executionContext) PopulatePlanetRequiresNestedRequires(ctx context.Context, entity *PlanetRequiresNested, reps map[string]interface{}) error { +func (ec *executionContext) PopulatePlanetRequiresNestedRequires(ctx context.Context, entity *PlanetRequiresNested, reps map[string]any) error { entity.Name = reps["name"].(string) entity.World = &World{ - Foo: reps["world"].(map[string]interface{})["foo"].(string), + Foo: reps["world"].(map[string]any)["foo"].(string), } return nil } // PopulatePlanetRequiresRequires is the requires populator for the PlanetRequires entity. -func (ec *executionContext) PopulatePlanetRequiresRequires(ctx context.Context, entity *PlanetRequires, reps map[string]interface{}) error { +func (ec *executionContext) PopulatePlanetRequiresRequires(ctx context.Context, entity *PlanetRequires, reps map[string]any) error { diameter, _ := reps["diameter"].(json.Number).Int64() entity.Name = reps["name"].(string) entity.Diameter = int(diameter) diff --git a/plugin/federation/testdata/federation2/generated/federation.go b/plugin/federation/testdata/federation2/generated/federation.go index 136e5f5df24..270a44fffed 100644 --- a/plugin/federation/testdata/federation2/generated/federation.go +++ b/plugin/federation/testdata/federation2/generated/federation.go @@ -36,7 +36,7 @@ func (ec *executionContext) __resolve__service(ctx context.Context) (fedruntime. }, nil } -func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]interface{}) []fedruntime.Entity { +func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]any) []fedruntime.Entity { list := make([]fedruntime.Entity, len(representations)) repsMap := ec.buildRepresentationGroups(ctx, representations) @@ -205,7 +205,7 @@ func entityResolverNameForExternalExtension(ctx context.Context, rep EntityRepre for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val diff --git a/plugin/federation/testdata/usefunctionsyntaxforexecutioncontext/generated/exec.go b/plugin/federation/testdata/usefunctionsyntaxforexecutioncontext/generated/exec.go index d2035f47392..ca83464b5c6 100644 --- a/plugin/federation/testdata/usefunctionsyntaxforexecutioncontext/generated/exec.go +++ b/plugin/federation/testdata/usefunctionsyntaxforexecutioncontext/generated/exec.go @@ -126,7 +126,7 @@ type ComplexityRoot struct { Query struct { __resolve__service func(childComplexity int) int - __resolve_entities func(childComplexity int, representations []map[string]interface{}) int + __resolve_entities func(childComplexity int, representations []map[string]any) int } World struct { @@ -182,7 +182,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e, 0, 0, nil} _ = ec switch typeName + "." + field { @@ -573,7 +573,7 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return 0, false } - return e.complexity.Query.__resolve_entities(childComplexity, args["representations"].([]map[string]interface{})), true + return e.complexity.Query.__resolve_entities(childComplexity, args["representations"].([]map[string]any)), true case "World.bar": if e.complexity.World.Bar == nil { @@ -872,9 +872,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func field_Entity_findHelloByName_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Entity_findHelloByName_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Entity_findHelloByName_argsName(ctx, ec, rawArgs) if err != nil { return nil, err @@ -885,7 +885,7 @@ func field_Entity_findHelloByName_args(ctx context.Context, ec *executionContext func field_Entity_findHelloByName_argsName( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -905,9 +905,9 @@ func field_Entity_findHelloByName_argsName( return zeroVal, nil } -func field_Entity_findHelloMultiSingleKeysByKey1AndKey2_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Entity_findHelloMultiSingleKeysByKey1AndKey2_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Entity_findHelloMultiSingleKeysByKey1AndKey2_argsKey1(ctx, ec, rawArgs) if err != nil { return nil, err @@ -923,7 +923,7 @@ func field_Entity_findHelloMultiSingleKeysByKey1AndKey2_args(ctx context.Context func field_Entity_findHelloMultiSingleKeysByKey1AndKey2_argsKey1( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -946,7 +946,7 @@ func field_Entity_findHelloMultiSingleKeysByKey1AndKey2_argsKey1( func field_Entity_findHelloMultiSingleKeysByKey1AndKey2_argsKey2( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -966,9 +966,9 @@ func field_Entity_findHelloMultiSingleKeysByKey1AndKey2_argsKey2( return zeroVal, nil } -func field_Entity_findHelloWithErrorsByName_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Entity_findHelloWithErrorsByName_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Entity_findHelloWithErrorsByName_argsName(ctx, ec, rawArgs) if err != nil { return nil, err @@ -979,7 +979,7 @@ func field_Entity_findHelloWithErrorsByName_args(ctx context.Context, ec *execut func field_Entity_findHelloWithErrorsByName_argsName( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -999,9 +999,9 @@ func field_Entity_findHelloWithErrorsByName_argsName( return zeroVal, nil } -func field_Entity_findManyMultiHelloByNames_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Entity_findManyMultiHelloByNames_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Entity_findManyMultiHelloByNames_argsReps(ctx, ec, rawArgs) if err != nil { return nil, err @@ -1012,7 +1012,7 @@ func field_Entity_findManyMultiHelloByNames_args(ctx context.Context, ec *execut func field_Entity_findManyMultiHelloByNames_argsReps( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*model.MultiHelloByNamesInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1032,9 +1032,9 @@ func field_Entity_findManyMultiHelloByNames_argsReps( return zeroVal, nil } -func field_Entity_findManyMultiHelloMultipleRequiresByNames_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Entity_findManyMultiHelloMultipleRequiresByNames_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Entity_findManyMultiHelloMultipleRequiresByNames_argsReps(ctx, ec, rawArgs) if err != nil { return nil, err @@ -1045,7 +1045,7 @@ func field_Entity_findManyMultiHelloMultipleRequiresByNames_args(ctx context.Con func field_Entity_findManyMultiHelloMultipleRequiresByNames_argsReps( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*model.MultiHelloMultipleRequiresByNamesInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1065,9 +1065,9 @@ func field_Entity_findManyMultiHelloMultipleRequiresByNames_argsReps( return zeroVal, nil } -func field_Entity_findManyMultiHelloRequiresByNames_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Entity_findManyMultiHelloRequiresByNames_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Entity_findManyMultiHelloRequiresByNames_argsReps(ctx, ec, rawArgs) if err != nil { return nil, err @@ -1078,7 +1078,7 @@ func field_Entity_findManyMultiHelloRequiresByNames_args(ctx context.Context, ec func field_Entity_findManyMultiHelloRequiresByNames_argsReps( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*model.MultiHelloRequiresByNamesInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1098,9 +1098,9 @@ func field_Entity_findManyMultiHelloRequiresByNames_argsReps( return zeroVal, nil } -func field_Entity_findManyMultiHelloWithErrorByNames_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Entity_findManyMultiHelloWithErrorByNames_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Entity_findManyMultiHelloWithErrorByNames_argsReps(ctx, ec, rawArgs) if err != nil { return nil, err @@ -1111,7 +1111,7 @@ func field_Entity_findManyMultiHelloWithErrorByNames_args(ctx context.Context, e func field_Entity_findManyMultiHelloWithErrorByNames_argsReps( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*model.MultiHelloWithErrorByNamesInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1131,9 +1131,9 @@ func field_Entity_findManyMultiHelloWithErrorByNames_argsReps( return zeroVal, nil } -func field_Entity_findManyMultiPlanetRequiresNestedByNames_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Entity_findManyMultiPlanetRequiresNestedByNames_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Entity_findManyMultiPlanetRequiresNestedByNames_argsReps(ctx, ec, rawArgs) if err != nil { return nil, err @@ -1144,7 +1144,7 @@ func field_Entity_findManyMultiPlanetRequiresNestedByNames_args(ctx context.Cont func field_Entity_findManyMultiPlanetRequiresNestedByNames_argsReps( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*model.MultiPlanetRequiresNestedByNamesInput, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1164,9 +1164,9 @@ func field_Entity_findManyMultiPlanetRequiresNestedByNames_argsReps( return zeroVal, nil } -func field_Entity_findPlanetMultipleRequiresByName_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Entity_findPlanetMultipleRequiresByName_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Entity_findPlanetMultipleRequiresByName_argsName(ctx, ec, rawArgs) if err != nil { return nil, err @@ -1177,7 +1177,7 @@ func field_Entity_findPlanetMultipleRequiresByName_args(ctx context.Context, ec func field_Entity_findPlanetMultipleRequiresByName_argsName( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1197,9 +1197,9 @@ func field_Entity_findPlanetMultipleRequiresByName_argsName( return zeroVal, nil } -func field_Entity_findPlanetRequiresByName_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Entity_findPlanetRequiresByName_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Entity_findPlanetRequiresByName_argsName(ctx, ec, rawArgs) if err != nil { return nil, err @@ -1210,7 +1210,7 @@ func field_Entity_findPlanetRequiresByName_args(ctx context.Context, ec *executi func field_Entity_findPlanetRequiresByName_argsName( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1230,9 +1230,9 @@ func field_Entity_findPlanetRequiresByName_argsName( return zeroVal, nil } -func field_Entity_findPlanetRequiresNestedByName_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Entity_findPlanetRequiresNestedByName_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Entity_findPlanetRequiresNestedByName_argsName(ctx, ec, rawArgs) if err != nil { return nil, err @@ -1243,7 +1243,7 @@ func field_Entity_findPlanetRequiresNestedByName_args(ctx context.Context, ec *e func field_Entity_findPlanetRequiresNestedByName_argsName( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1263,9 +1263,9 @@ func field_Entity_findPlanetRequiresNestedByName_argsName( return zeroVal, nil } -func field_Entity_findWorldByHelloNameAndFoo_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Entity_findWorldByHelloNameAndFoo_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Entity_findWorldByHelloNameAndFoo_argsHelloName(ctx, ec, rawArgs) if err != nil { return nil, err @@ -1281,7 +1281,7 @@ func field_Entity_findWorldByHelloNameAndFoo_args(ctx context.Context, ec *execu func field_Entity_findWorldByHelloNameAndFoo_argsHelloName( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1304,7 +1304,7 @@ func field_Entity_findWorldByHelloNameAndFoo_argsHelloName( func field_Entity_findWorldByHelloNameAndFoo_argsFoo( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1324,9 +1324,9 @@ func field_Entity_findWorldByHelloNameAndFoo_argsFoo( return zeroVal, nil } -func field_Entity_findWorldNameByName_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Entity_findWorldNameByName_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Entity_findWorldNameByName_argsName(ctx, ec, rawArgs) if err != nil { return nil, err @@ -1337,7 +1337,7 @@ func field_Entity_findWorldNameByName_args(ctx context.Context, ec *executionCon func field_Entity_findWorldNameByName_argsName( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1357,9 +1357,9 @@ func field_Entity_findWorldNameByName_argsName( return zeroVal, nil } -func field_Entity_findWorldWithMultipleKeysByBar_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Entity_findWorldWithMultipleKeysByBar_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Entity_findWorldWithMultipleKeysByBar_argsBar(ctx, ec, rawArgs) if err != nil { return nil, err @@ -1370,7 +1370,7 @@ func field_Entity_findWorldWithMultipleKeysByBar_args(ctx context.Context, ec *e func field_Entity_findWorldWithMultipleKeysByBar_argsBar( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (int, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1390,9 +1390,9 @@ func field_Entity_findWorldWithMultipleKeysByBar_argsBar( return zeroVal, nil } -func field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_argsHelloName(ctx, ec, rawArgs) if err != nil { return nil, err @@ -1408,7 +1408,7 @@ func field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_args(ctx context.Co func field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_argsHelloName( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1431,7 +1431,7 @@ func field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_argsHelloName( func field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_argsFoo( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1451,9 +1451,9 @@ func field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_argsFoo( return zeroVal, nil } -func field_Query___type_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Query___type_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Query___type_argsName(ctx, ec, rawArgs) if err != nil { return nil, err @@ -1464,7 +1464,7 @@ func field_Query___type_args(ctx context.Context, ec *executionContext, rawArgs func field_Query___type_argsName( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (string, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1484,9 +1484,9 @@ func field_Query___type_argsName( return zeroVal, nil } -func field_Query__entities_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field_Query__entities_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field_Query__entities_argsRepresentations(ctx, ec, rawArgs) if err != nil { return nil, err @@ -1497,14 +1497,14 @@ func field_Query__entities_args(ctx context.Context, ec *executionContext, rawAr func field_Query__entities_argsRepresentations( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, -) ([]map[string]interface{}, error) { + rawArgs map[string]any, +) ([]map[string]any, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives // even if the argument is null. _, ok := rawArgs["representations"] if !ok { - var zeroVal []map[string]interface{} + var zeroVal []map[string]any return zeroVal, nil } @@ -1513,13 +1513,13 @@ func field_Query__entities_argsRepresentations( return unmarshalN_Any2ᚕmapᚄ(ctx, ec, tmp) } - var zeroVal []map[string]interface{} + var zeroVal []map[string]any return zeroVal, nil } -func field___Type_enumValues_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field___Type_enumValues_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field___Type_enumValues_argsIncludeDeprecated(ctx, ec, rawArgs) if err != nil { return nil, err @@ -1530,7 +1530,7 @@ func field___Type_enumValues_args(ctx context.Context, ec *executionContext, raw func field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1550,9 +1550,9 @@ func field___Type_enumValues_argsIncludeDeprecated( return zeroVal, nil } -func field___Type_fields_args(ctx context.Context, ec *executionContext, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func field___Type_fields_args(ctx context.Context, ec *executionContext, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := field___Type_fields_argsIncludeDeprecated(ctx, ec, rawArgs) if err != nil { return nil, err @@ -1563,7 +1563,7 @@ func field___Type_fields_args(ctx context.Context, ec *executionContext, rawArgs func field___Type_fields_argsIncludeDeprecated( ctx context.Context, ec *executionContext, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (bool, error) { // We won't call the directive if the argument is null. // Set call_argument_directives_with_null to true to call directives @@ -1603,7 +1603,7 @@ func _Entity_findHelloByName(ctx context.Context, ec *executionContext, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindHelloByName(rctx, fc.Args["name"].(string)) }) @@ -1664,7 +1664,7 @@ func _Entity_findHelloMultiSingleKeysByKey1AndKey2(ctx context.Context, ec *exec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindHelloMultiSingleKeysByKey1AndKey2(rctx, fc.Args["key1"].(string), fc.Args["key2"].(string)) }) @@ -1725,7 +1725,7 @@ func _Entity_findHelloWithErrorsByName(ctx context.Context, ec *executionContext ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindHelloWithErrorsByName(rctx, fc.Args["name"].(string)) }) @@ -1784,7 +1784,7 @@ func _Entity_findManyMultiHelloByNames(ctx context.Context, ec *executionContext ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiHelloByNames(rctx, fc.Args["reps"].([]*model.MultiHelloByNamesInput)) }) @@ -1840,7 +1840,7 @@ func _Entity_findManyMultiHelloMultipleRequiresByNames(ctx context.Context, ec * ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiHelloMultipleRequiresByNames(rctx, fc.Args["reps"].([]*model.MultiHelloMultipleRequiresByNamesInput)) }) @@ -1902,7 +1902,7 @@ func _Entity_findManyMultiHelloRequiresByNames(ctx context.Context, ec *executio ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiHelloRequiresByNames(rctx, fc.Args["reps"].([]*model.MultiHelloRequiresByNamesInput)) }) @@ -1962,7 +1962,7 @@ func _Entity_findManyMultiHelloWithErrorByNames(ctx context.Context, ec *executi ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiHelloWithErrorByNames(rctx, fc.Args["reps"].([]*model.MultiHelloWithErrorByNamesInput)) }) @@ -2018,7 +2018,7 @@ func _Entity_findManyMultiPlanetRequiresNestedByNames(ctx context.Context, ec *e ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindManyMultiPlanetRequiresNestedByNames(rctx, fc.Args["reps"].([]*model.MultiPlanetRequiresNestedByNamesInput)) }) @@ -2078,7 +2078,7 @@ func _Entity_findPlanetMultipleRequiresByName(ctx context.Context, ec *execution ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindPlanetMultipleRequiresByName(rctx, fc.Args["name"].(string)) }) @@ -2143,7 +2143,7 @@ func _Entity_findPlanetRequiresByName(ctx context.Context, ec *executionContext, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindPlanetRequiresByName(rctx, fc.Args["name"].(string)) }) @@ -2206,7 +2206,7 @@ func _Entity_findPlanetRequiresNestedByName(ctx context.Context, ec *executionCo ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindPlanetRequiresNestedByName(rctx, fc.Args["name"].(string)) }) @@ -2269,7 +2269,7 @@ func _Entity_findWorldByHelloNameAndFoo(ctx context.Context, ec *executionContex ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindWorldByHelloNameAndFoo(rctx, fc.Args["helloName"].(string), fc.Args["foo"].(string)) }) @@ -2332,7 +2332,7 @@ func _Entity_findWorldNameByName(ctx context.Context, ec *executionContext, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindWorldNameByName(rctx, fc.Args["name"].(string)) }) @@ -2391,7 +2391,7 @@ func _Entity_findWorldWithMultipleKeysByHelloNameAndFoo(ctx context.Context, ec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindWorldWithMultipleKeysByHelloNameAndFoo(rctx, fc.Args["helloName"].(string), fc.Args["foo"].(string)) }) @@ -2454,7 +2454,7 @@ func _Entity_findWorldWithMultipleKeysByBar(ctx context.Context, ec *executionCo ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Entity().FindWorldWithMultipleKeysByBar(rctx, fc.Args["bar"].(int)) }) @@ -2517,7 +2517,7 @@ func _Hello_name(ctx context.Context, ec *executionContext, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2561,7 +2561,7 @@ func _Hello_secondary(ctx context.Context, ec *executionContext, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Secondary, nil }) @@ -2605,7 +2605,7 @@ func _HelloMultiSingleKeys_key1(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key1, nil }) @@ -2649,7 +2649,7 @@ func _HelloMultiSingleKeys_key2(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key2, nil }) @@ -2693,7 +2693,7 @@ func _HelloWithErrors_name(ctx context.Context, ec *executionContext, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2737,7 +2737,7 @@ func _MultiHello_name(ctx context.Context, ec *executionContext, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2781,7 +2781,7 @@ func _MultiHelloMultipleRequires_name(ctx context.Context, ec *executionContext, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -2825,7 +2825,7 @@ func _MultiHelloMultipleRequires_key1(ctx context.Context, ec *executionContext, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key1, nil }) @@ -2869,7 +2869,7 @@ func _MultiHelloMultipleRequires_key2(ctx context.Context, ec *executionContext, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key2, nil }) @@ -2913,7 +2913,7 @@ func _MultiHelloMultipleRequires_key3(ctx context.Context, ec *executionContext, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key3, nil }) @@ -2957,7 +2957,7 @@ func _MultiHelloRequires_name(ctx context.Context, ec *executionContext, field g ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3001,7 +3001,7 @@ func _MultiHelloRequires_key1(ctx context.Context, ec *executionContext, field g ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key1, nil }) @@ -3045,7 +3045,7 @@ func _MultiHelloRequires_key2(ctx context.Context, ec *executionContext, field g ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Key2, nil }) @@ -3089,7 +3089,7 @@ func _MultiHelloWithError_name(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3133,7 +3133,7 @@ func _MultiPlanetRequiresNested_name(ctx context.Context, ec *executionContext, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3177,7 +3177,7 @@ func _MultiPlanetRequiresNested_world(ctx context.Context, ec *executionContext, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.World, nil }) @@ -3229,7 +3229,7 @@ func _MultiPlanetRequiresNested_size(ctx context.Context, ec *executionContext, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Size, nil }) @@ -3273,7 +3273,7 @@ func _PlanetMultipleRequires_name(ctx context.Context, ec *executionContext, fie ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3317,7 +3317,7 @@ func _PlanetMultipleRequires_diameter(ctx context.Context, ec *executionContext, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Diameter, nil }) @@ -3361,7 +3361,7 @@ func _PlanetMultipleRequires_density(ctx context.Context, ec *executionContext, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Density, nil }) @@ -3405,7 +3405,7 @@ func _PlanetMultipleRequires_weight(ctx context.Context, ec *executionContext, f ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Weight, nil }) @@ -3449,7 +3449,7 @@ func _PlanetRequires_name(ctx context.Context, ec *executionContext, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3493,7 +3493,7 @@ func _PlanetRequires_size(ctx context.Context, ec *executionContext, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Size, nil }) @@ -3537,7 +3537,7 @@ func _PlanetRequires_diameter(ctx context.Context, ec *executionContext, field g ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Diameter, nil }) @@ -3581,7 +3581,7 @@ func _PlanetRequiresNested_name(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -3625,7 +3625,7 @@ func _PlanetRequiresNested_world(ctx context.Context, ec *executionContext, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.World, nil }) @@ -3677,7 +3677,7 @@ func _PlanetRequiresNested_size(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Size, nil }) @@ -3721,9 +3721,9 @@ func _Query__entities(ctx context.Context, ec *executionContext, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children - return ec.__resolve_entities(ctx, fc.Args["representations"].([]map[string]interface{})), nil + return ec.__resolve_entities(ctx, fc.Args["representations"].([]map[string]any)), nil }) if err != nil { ec.Error(ctx, err) @@ -3776,7 +3776,7 @@ func _Query__service(ctx context.Context, ec *executionContext, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.__resolve__service(ctx) }) @@ -3824,7 +3824,7 @@ func _Query___type(ctx context.Context, ec *executionContext, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -3898,7 +3898,7 @@ func _Query___schema(ctx context.Context, ec *executionContext, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -3953,7 +3953,7 @@ func _World_foo(ctx context.Context, ec *executionContext, field graphql.Collect ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Foo, nil }) @@ -3997,7 +3997,7 @@ func _World_bar(ctx context.Context, ec *executionContext, field graphql.Collect ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Bar, nil }) @@ -4041,7 +4041,7 @@ func _World_hello(ctx context.Context, ec *executionContext, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Hello, nil }) @@ -4088,7 +4088,7 @@ func _WorldName_name(ctx context.Context, ec *executionContext, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -4132,7 +4132,7 @@ func _WorldWithMultipleKeys_foo(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Foo, nil }) @@ -4176,7 +4176,7 @@ func _WorldWithMultipleKeys_bar(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Bar, nil }) @@ -4220,7 +4220,7 @@ func _WorldWithMultipleKeys_hello(ctx context.Context, ec *executionContext, fie ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Hello, nil }) @@ -4267,7 +4267,7 @@ func __Service_sdl(ctx context.Context, ec *executionContext, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SDL, nil }) @@ -4308,7 +4308,7 @@ func ___Directive_name(ctx context.Context, ec *executionContext, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -4352,7 +4352,7 @@ func ___Directive_description(ctx context.Context, ec *executionContext, field g ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -4393,7 +4393,7 @@ func ___Directive_locations(ctx context.Context, ec *executionContext, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -4437,7 +4437,7 @@ func ___Directive_args(ctx context.Context, ec *executionContext, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -4491,7 +4491,7 @@ func ___Directive_isRepeatable(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -4535,7 +4535,7 @@ func ___EnumValue_name(ctx context.Context, ec *executionContext, field graphql. ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -4579,7 +4579,7 @@ func ___EnumValue_description(ctx context.Context, ec *executionContext, field g ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -4620,7 +4620,7 @@ func ___EnumValue_isDeprecated(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -4664,7 +4664,7 @@ func ___EnumValue_deprecationReason(ctx context.Context, ec *executionContext, f ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -4705,7 +4705,7 @@ func ___Field_name(ctx context.Context, ec *executionContext, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -4749,7 +4749,7 @@ func ___Field_description(ctx context.Context, ec *executionContext, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -4790,7 +4790,7 @@ func ___Field_args(ctx context.Context, ec *executionContext, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -4844,7 +4844,7 @@ func ___Field_type(ctx context.Context, ec *executionContext, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -4910,7 +4910,7 @@ func ___Field_isDeprecated(ctx context.Context, ec *executionContext, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -4954,7 +4954,7 @@ func ___Field_deprecationReason(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -4995,7 +4995,7 @@ func ___InputValue_name(ctx context.Context, ec *executionContext, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -5039,7 +5039,7 @@ func ___InputValue_description(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -5080,7 +5080,7 @@ func ___InputValue_type(ctx context.Context, ec *executionContext, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -5146,7 +5146,7 @@ func ___InputValue_defaultValue(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -5187,7 +5187,7 @@ func ___Schema_description(ctx context.Context, ec *executionContext, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -5228,7 +5228,7 @@ func ___Schema_types(ctx context.Context, ec *executionContext, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -5294,7 +5294,7 @@ func ___Schema_queryType(ctx context.Context, ec *executionContext, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -5360,7 +5360,7 @@ func ___Schema_mutationType(ctx context.Context, ec *executionContext, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -5423,7 +5423,7 @@ func ___Schema_subscriptionType(ctx context.Context, ec *executionContext, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -5486,7 +5486,7 @@ func ___Schema_directives(ctx context.Context, ec *executionContext, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -5542,7 +5542,7 @@ func ___Type_kind(ctx context.Context, ec *executionContext, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -5586,7 +5586,7 @@ func ___Type_name(ctx context.Context, ec *executionContext, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -5627,7 +5627,7 @@ func ___Type_description(ctx context.Context, ec *executionContext, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -5668,7 +5668,7 @@ func ___Type_fields(ctx context.Context, ec *executionContext, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -5734,7 +5734,7 @@ func ___Type_interfaces(ctx context.Context, ec *executionContext, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -5797,7 +5797,7 @@ func ___Type_possibleTypes(ctx context.Context, ec *executionContext, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -5860,7 +5860,7 @@ func ___Type_enumValues(ctx context.Context, ec *executionContext, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -5922,7 +5922,7 @@ func ___Type_inputFields(ctx context.Context, ec *executionContext, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -5973,7 +5973,7 @@ func ___Type_ofType(ctx context.Context, ec *executionContext, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -6036,7 +6036,7 @@ func ___Type_specifiedByURL(ctx context.Context, ec *executionContext, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -6069,10 +6069,10 @@ func fieldContext___Type_specifiedByURL(_ context.Context, ec *executionContext, // region **************************** input.gotpl ***************************** -func unmarshalInputMultiHelloByNamesInput(ctx context.Context, ec *executionContext, obj interface{}) (model.MultiHelloByNamesInput, error) { +func unmarshalInputMultiHelloByNamesInput(ctx context.Context, ec *executionContext, obj any) (model.MultiHelloByNamesInput, error) { var it model.MultiHelloByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6096,10 +6096,10 @@ func unmarshalInputMultiHelloByNamesInput(ctx context.Context, ec *executionCont return it, nil } -func unmarshalInputMultiHelloMultipleRequiresByNamesInput(ctx context.Context, ec *executionContext, obj interface{}) (model.MultiHelloMultipleRequiresByNamesInput, error) { +func unmarshalInputMultiHelloMultipleRequiresByNamesInput(ctx context.Context, ec *executionContext, obj any) (model.MultiHelloMultipleRequiresByNamesInput, error) { var it model.MultiHelloMultipleRequiresByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6123,10 +6123,10 @@ func unmarshalInputMultiHelloMultipleRequiresByNamesInput(ctx context.Context, e return it, nil } -func unmarshalInputMultiHelloRequiresByNamesInput(ctx context.Context, ec *executionContext, obj interface{}) (model.MultiHelloRequiresByNamesInput, error) { +func unmarshalInputMultiHelloRequiresByNamesInput(ctx context.Context, ec *executionContext, obj any) (model.MultiHelloRequiresByNamesInput, error) { var it model.MultiHelloRequiresByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6150,10 +6150,10 @@ func unmarshalInputMultiHelloRequiresByNamesInput(ctx context.Context, ec *execu return it, nil } -func unmarshalInputMultiHelloWithErrorByNamesInput(ctx context.Context, ec *executionContext, obj interface{}) (model.MultiHelloWithErrorByNamesInput, error) { +func unmarshalInputMultiHelloWithErrorByNamesInput(ctx context.Context, ec *executionContext, obj any) (model.MultiHelloWithErrorByNamesInput, error) { var it model.MultiHelloWithErrorByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -6177,10 +6177,10 @@ func unmarshalInputMultiHelloWithErrorByNamesInput(ctx context.Context, ec *exec return it, nil } -func unmarshalInputMultiPlanetRequiresNestedByNamesInput(ctx context.Context, ec *executionContext, obj interface{}) (model.MultiPlanetRequiresNestedByNamesInput, error) { +func unmarshalInputMultiPlanetRequiresNestedByNamesInput(ctx context.Context, ec *executionContext, obj any) (model.MultiPlanetRequiresNestedByNamesInput, error) { var it model.MultiPlanetRequiresNestedByNamesInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { asMap[k] = v } @@ -7772,7 +7772,7 @@ func ___Type(ctx context.Context, ec *executionContext, sel ast.SelectionSet, ob // region ***************************** type.gotpl ***************************** -func unmarshalNBoolean2bool(ctx context.Context, ec *executionContext, v interface{}) (bool, error) { +func unmarshalNBoolean2bool(ctx context.Context, ec *executionContext, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -7829,7 +7829,7 @@ func marshalNHelloWithErrors2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfed return _HelloWithErrors(ctx, ec, sel, v) } -func unmarshalNInt2int(ctx context.Context, ec *executionContext, v interface{}) (int, error) { +func unmarshalNInt2int(ctx context.Context, ec *executionContext, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -7844,8 +7844,8 @@ func marshalNInt2int(ctx context.Context, ec *executionContext, sel ast.Selectio return res } -func unmarshalNMultiHelloByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiHelloByNamesInput(ctx context.Context, ec *executionContext, v interface{}) ([]*model.MultiHelloByNamesInput, error) { - var vSlice []interface{} +func unmarshalNMultiHelloByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiHelloByNamesInput(ctx context.Context, ec *executionContext, v any) ([]*model.MultiHelloByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -7861,8 +7861,8 @@ func unmarshalNMultiHelloByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋ return res, nil } -func unmarshalNMultiHelloMultipleRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiHelloMultipleRequiresByNamesInput(ctx context.Context, ec *executionContext, v interface{}) ([]*model.MultiHelloMultipleRequiresByNamesInput, error) { - var vSlice []interface{} +func unmarshalNMultiHelloMultipleRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiHelloMultipleRequiresByNamesInput(ctx context.Context, ec *executionContext, v any) ([]*model.MultiHelloMultipleRequiresByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -7878,8 +7878,8 @@ func unmarshalNMultiHelloMultipleRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99des return res, nil } -func unmarshalNMultiHelloRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiHelloRequiresByNamesInput(ctx context.Context, ec *executionContext, v interface{}) ([]*model.MultiHelloRequiresByNamesInput, error) { - var vSlice []interface{} +func unmarshalNMultiHelloRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiHelloRequiresByNamesInput(ctx context.Context, ec *executionContext, v any) ([]*model.MultiHelloRequiresByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -7895,8 +7895,8 @@ func unmarshalNMultiHelloRequiresByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋg return res, nil } -func unmarshalNMultiHelloWithErrorByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiHelloWithErrorByNamesInput(ctx context.Context, ec *executionContext, v interface{}) ([]*model.MultiHelloWithErrorByNamesInput, error) { - var vSlice []interface{} +func unmarshalNMultiHelloWithErrorByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiHelloWithErrorByNamesInput(ctx context.Context, ec *executionContext, v any) ([]*model.MultiHelloWithErrorByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -7912,8 +7912,8 @@ func unmarshalNMultiHelloWithErrorByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋ return res, nil } -func unmarshalNMultiPlanetRequiresNestedByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiPlanetRequiresNestedByNamesInput(ctx context.Context, ec *executionContext, v interface{}) ([]*model.MultiPlanetRequiresNestedByNamesInput, error) { - var vSlice []interface{} +func unmarshalNMultiPlanetRequiresNestedByNamesInput2ᚕᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiPlanetRequiresNestedByNamesInput(ctx context.Context, ec *executionContext, v any) ([]*model.MultiPlanetRequiresNestedByNamesInput, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -7971,7 +7971,7 @@ func marshalNPlanetRequiresNested2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋplugin return _PlanetRequiresNested(ctx, ec, sel, v) } -func unmarshalNString2string(ctx context.Context, ec *executionContext, v interface{}) (string, error) { +func unmarshalNString2string(ctx context.Context, ec *executionContext, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8028,12 +8028,12 @@ func marshalNWorldWithMultipleKeys2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋplugin return _WorldWithMultipleKeys(ctx, ec, sel, v) } -func unmarshalN_Any2map(ctx context.Context, ec *executionContext, v interface{}) (map[string]interface{}, error) { +func unmarshalN_Any2map(ctx context.Context, ec *executionContext, v any) (map[string]any, error) { res, err := graphql.UnmarshalMap(v) return res, graphql.ErrorOnPath(ctx, err) } -func marshalN_Any2map(ctx context.Context, ec *executionContext, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { +func marshalN_Any2map(ctx context.Context, ec *executionContext, sel ast.SelectionSet, v map[string]any) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -8049,13 +8049,13 @@ func marshalN_Any2map(ctx context.Context, ec *executionContext, sel ast.Selecti return res } -func unmarshalN_Any2ᚕmapᚄ(ctx context.Context, ec *executionContext, v interface{}) ([]map[string]interface{}, error) { - var vSlice []interface{} +func unmarshalN_Any2ᚕmapᚄ(ctx context.Context, ec *executionContext, v any) ([]map[string]any, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } var err error - res := make([]map[string]interface{}, len(vSlice)) + res := make([]map[string]any, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) res[i], err = unmarshalN_Any2map(ctx, ec, vSlice[i]) @@ -8066,7 +8066,7 @@ func unmarshalN_Any2ᚕmapᚄ(ctx context.Context, ec *executionContext, v inter return res, nil } -func marshalN_Any2ᚕmapᚄ(ctx context.Context, ec *executionContext, sel ast.SelectionSet, v []map[string]interface{}) graphql.Marshaler { +func marshalN_Any2ᚕmapᚄ(ctx context.Context, ec *executionContext, sel ast.SelectionSet, v []map[string]any) graphql.Marshaler { ret := make(graphql.Array, len(v)) for i := range v { ret[i] = marshalN_Any2map(ctx, ec, sel, v[i]) @@ -8119,7 +8119,7 @@ func marshalN_Entity2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederation return ret } -func unmarshalN_FieldSet2string(ctx context.Context, ec *executionContext, v interface{}) (string, error) { +func unmarshalN_FieldSet2string(ctx context.Context, ec *executionContext, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8186,7 +8186,7 @@ func marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintros return ret } -func unmarshalN__DirectiveLocation2string(ctx context.Context, ec *executionContext, v interface{}) (string, error) { +func unmarshalN__DirectiveLocation2string(ctx context.Context, ec *executionContext, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8201,8 +8201,8 @@ func marshalN__DirectiveLocation2string(ctx context.Context, ec *executionContex return res } -func unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, ec *executionContext, v interface{}) ([]string, error) { - var vSlice []interface{} +func unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, ec *executionContext, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -8376,7 +8376,7 @@ func marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospecti return ___Type(ctx, ec, sel, v) } -func unmarshalN__TypeKind2string(ctx context.Context, ec *executionContext, v interface{}) (string, error) { +func unmarshalN__TypeKind2string(ctx context.Context, ec *executionContext, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8391,7 +8391,7 @@ func marshalN__TypeKind2string(ctx context.Context, ec *executionContext, sel as return res } -func unmarshalOBoolean2bool(ctx context.Context, ec *executionContext, v interface{}) (bool, error) { +func unmarshalOBoolean2bool(ctx context.Context, ec *executionContext, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8401,7 +8401,7 @@ func marshalOBoolean2bool(ctx context.Context, ec *executionContext, sel ast.Sel return res } -func unmarshalOBoolean2ᚖbool(ctx context.Context, ec *executionContext, v interface{}) (*bool, error) { +func unmarshalOBoolean2ᚖbool(ctx context.Context, ec *executionContext, v any) (*bool, error) { if v == nil { return nil, nil } @@ -8472,7 +8472,7 @@ func marshalOMultiHello2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederati return _MultiHello(ctx, ec, sel, v) } -func unmarshalOMultiHelloByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiHelloByNamesInput(ctx context.Context, ec *executionContext, v interface{}) (*model.MultiHelloByNamesInput, error) { +func unmarshalOMultiHelloByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiHelloByNamesInput(ctx context.Context, ec *executionContext, v any) (*model.MultiHelloByNamesInput, error) { if v == nil { return nil, nil } @@ -8528,7 +8528,7 @@ func marshalOMultiHelloMultipleRequires2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋp return _MultiHelloMultipleRequires(ctx, ec, sel, v) } -func unmarshalOMultiHelloMultipleRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiHelloMultipleRequiresByNamesInput(ctx context.Context, ec *executionContext, v interface{}) (*model.MultiHelloMultipleRequiresByNamesInput, error) { +func unmarshalOMultiHelloMultipleRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiHelloMultipleRequiresByNamesInput(ctx context.Context, ec *executionContext, v any) (*model.MultiHelloMultipleRequiresByNamesInput, error) { if v == nil { return nil, nil } @@ -8584,7 +8584,7 @@ func marshalOMultiHelloRequires2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋ return _MultiHelloRequires(ctx, ec, sel, v) } -func unmarshalOMultiHelloRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiHelloRequiresByNamesInput(ctx context.Context, ec *executionContext, v interface{}) (*model.MultiHelloRequiresByNamesInput, error) { +func unmarshalOMultiHelloRequiresByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiHelloRequiresByNamesInput(ctx context.Context, ec *executionContext, v any) (*model.MultiHelloRequiresByNamesInput, error) { if v == nil { return nil, nil } @@ -8640,7 +8640,7 @@ func marshalOMultiHelloWithError2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋplugin return _MultiHelloWithError(ctx, ec, sel, v) } -func unmarshalOMultiHelloWithErrorByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiHelloWithErrorByNamesInput(ctx context.Context, ec *executionContext, v interface{}) (*model.MultiHelloWithErrorByNamesInput, error) { +func unmarshalOMultiHelloWithErrorByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiHelloWithErrorByNamesInput(ctx context.Context, ec *executionContext, v any) (*model.MultiHelloWithErrorByNamesInput, error) { if v == nil { return nil, nil } @@ -8696,7 +8696,7 @@ func marshalOMultiPlanetRequiresNested2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpl return _MultiPlanetRequiresNested(ctx, ec, sel, v) } -func unmarshalOMultiPlanetRequiresNestedByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiPlanetRequiresNestedByNamesInput(ctx context.Context, ec *executionContext, v interface{}) (*model.MultiPlanetRequiresNestedByNamesInput, error) { +func unmarshalOMultiPlanetRequiresNestedByNamesInput2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋtestdataᚋusefunctionsyntaxforexecutioncontextᚋgeneratedᚋmodelᚐMultiPlanetRequiresNestedByNamesInput(ctx context.Context, ec *executionContext, v any) (*model.MultiPlanetRequiresNestedByNamesInput, error) { if v == nil { return nil, nil } @@ -8704,7 +8704,7 @@ func unmarshalOMultiPlanetRequiresNestedByNamesInput2ᚖgithubᚗcomᚋ99designs return &res, graphql.ErrorOnPath(ctx, err) } -func unmarshalOString2string(ctx context.Context, ec *executionContext, v interface{}) (string, error) { +func unmarshalOString2string(ctx context.Context, ec *executionContext, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -8714,7 +8714,7 @@ func marshalOString2string(ctx context.Context, ec *executionContext, sel ast.Se return res } -func unmarshalOString2ᚖstring(ctx context.Context, ec *executionContext, v interface{}) (*string, error) { +func unmarshalOString2ᚖstring(ctx context.Context, ec *executionContext, v any) (*string, error) { if v == nil { return nil, nil } diff --git a/plugin/federation/testdata/usefunctionsyntaxforexecutioncontext/generated/federation.go b/plugin/federation/testdata/usefunctionsyntaxforexecutioncontext/generated/federation.go index 93b856756a6..4ddb4ce9384 100644 --- a/plugin/federation/testdata/usefunctionsyntaxforexecutioncontext/generated/federation.go +++ b/plugin/federation/testdata/usefunctionsyntaxforexecutioncontext/generated/federation.go @@ -37,7 +37,7 @@ func (ec *executionContext) __resolve__service(ctx context.Context) (fedruntime. }, nil } -func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]interface{}) []fedruntime.Entity { +func (ec *executionContext) __resolve_entities(ctx context.Context, representations []map[string]any) []fedruntime.Entity { list := make([]fedruntime.Entity, len(representations)) repsMap := ec.buildRepresentationGroups(ctx, representations) @@ -292,7 +292,7 @@ func (ec *executionContext) resolveEntity( return nil, fmt.Errorf(`resolving Entity "PlanetRequiresNested": %w`, err) } - entity.World.Foo, err = unmarshalNString2string(ctx, ec, rep["world"].(map[string]interface{})["foo"]) + entity.World.Foo, err = unmarshalNString2string(ctx, ec, rep["world"].(map[string]any)["foo"]) if err != nil { return nil, err } @@ -306,7 +306,7 @@ func (ec *executionContext) resolveEntity( switch resolverName { case "findWorldByHelloNameAndFoo": - id0, err := unmarshalNString2string(ctx, ec, rep["hello"].(map[string]interface{})["name"]) + id0, err := unmarshalNString2string(ctx, ec, rep["hello"].(map[string]any)["name"]) if err != nil { return nil, fmt.Errorf(`unmarshalling param 0 for findWorldByHelloNameAndFoo(): %w`, err) } @@ -348,7 +348,7 @@ func (ec *executionContext) resolveEntity( switch resolverName { case "findWorldWithMultipleKeysByHelloNameAndFoo": - id0, err := unmarshalNString2string(ctx, ec, rep["hello"].(map[string]interface{})["name"]) + id0, err := unmarshalNString2string(ctx, ec, rep["hello"].(map[string]any)["name"]) if err != nil { return nil, fmt.Errorf(`unmarshalling param 0 for findWorldWithMultipleKeysByHelloNameAndFoo(): %w`, err) } @@ -574,7 +574,7 @@ func (ec *executionContext) resolveManyEntities( } for i, entity := range entities { - entity.World.Foo, err = unmarshalNString2string(ctx, ec, reps[i].entity["world"].(map[string]interface{})["foo"]) + entity.World.Foo, err = unmarshalNString2string(ctx, ec, reps[i].entity["world"].(map[string]any)["foo"]) if err != nil { return err } @@ -598,7 +598,7 @@ func entityResolverNameForHello(ctx context.Context, rep EntityRepresentation) ( for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -633,7 +633,7 @@ func entityResolverNameForHelloMultiSingleKeys(ctx context.Context, rep EntityRe for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -678,7 +678,7 @@ func entityResolverNameForHelloWithErrors(ctx context.Context, rep EntityReprese for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -713,7 +713,7 @@ func entityResolverNameForMultiHello(ctx context.Context, rep EntityRepresentati for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -748,7 +748,7 @@ func entityResolverNameForMultiHelloMultipleRequires(ctx context.Context, rep En for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -783,7 +783,7 @@ func entityResolverNameForMultiHelloRequires(ctx context.Context, rep EntityRepr for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -818,7 +818,7 @@ func entityResolverNameForMultiHelloWithError(ctx context.Context, rep EntityRep for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -853,7 +853,7 @@ func entityResolverNameForMultiPlanetRequiresNested(ctx context.Context, rep Ent for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -888,7 +888,7 @@ func entityResolverNameForPlanetMultipleRequires(ctx context.Context, rep Entity for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -923,7 +923,7 @@ func entityResolverNameForPlanetRequires(ctx context.Context, rep EntityRepresen for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -958,7 +958,7 @@ func entityResolverNameForPlanetRequiresNested(ctx context.Context, rep EntityRe for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -993,7 +993,7 @@ func entityResolverNameForWorld(ctx context.Context, rep EntityRepresentation) ( for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -1007,7 +1007,7 @@ func entityResolverNameForWorld(ctx context.Context, rep EntityRepresentation) ( fmt.Errorf("%w due to missing Key Field \"hello\" for World", ErrTypeNotFound)) break } - if m, ok = val.(map[string]interface{}); !ok { + if m, ok = val.(map[string]any); !ok { // nested field value is not a map[string]interface so don't use it entityResolverErrs = append(entityResolverErrs, fmt.Errorf("%w due to nested Key Field \"hello\" value not matching map[string]any for World", ErrTypeNotFound)) @@ -1050,7 +1050,7 @@ func entityResolverNameForWorldName(ctx context.Context, rep EntityRepresentatio for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -1085,7 +1085,7 @@ func entityResolverNameForWorldWithMultipleKeys(ctx context.Context, rep EntityR for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -1099,7 +1099,7 @@ func entityResolverNameForWorldWithMultipleKeys(ctx context.Context, rep EntityR fmt.Errorf("%w due to missing Key Field \"hello\" for WorldWithMultipleKeys", ErrTypeNotFound)) break } - if m, ok = val.(map[string]interface{}); !ok { + if m, ok = val.(map[string]any); !ok { // nested field value is not a map[string]interface so don't use it entityResolverErrs = append(entityResolverErrs, fmt.Errorf("%w due to nested Key Field \"hello\" value not matching map[string]any for WorldWithMultipleKeys", ErrTypeNotFound)) @@ -1134,7 +1134,7 @@ func entityResolverNameForWorldWithMultipleKeys(ctx context.Context, rep EntityR for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val diff --git a/plugin/modelgen/models.gotpl b/plugin/modelgen/models.gotpl index b11146939b9..29314f19b47 100644 --- a/plugin/modelgen/models.gotpl +++ b/plugin/modelgen/models.gotpl @@ -84,7 +84,7 @@ return string(e) } - func (e *{{ goModelName .Name }}) UnmarshalGQL(v interface{}) error { + func (e *{{ goModelName .Name }}) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/plugin/modelgen/out/generated.go b/plugin/modelgen/out/generated.go index 4d51c32d915..91b2d446785 100644 --- a/plugin/modelgen/out/generated.go +++ b/plugin/modelgen/out/generated.go @@ -279,7 +279,7 @@ func (e EnumWithDescription) String() string { return string(e) } -func (e *EnumWithDescription) UnmarshalGQL(v interface{}) error { +func (e *EnumWithDescription) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -320,7 +320,7 @@ func (e MissingEnum) String() string { return string(e) } -func (e *MissingEnum) UnmarshalGQL(v interface{}) error { +func (e *MissingEnum) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/plugin/modelgen/out/generated_omit_root_models.go b/plugin/modelgen/out/generated_omit_root_models.go index 0150b18b5a4..a82f9b29b1b 100644 --- a/plugin/modelgen/out/generated_omit_root_models.go +++ b/plugin/modelgen/out/generated_omit_root_models.go @@ -36,7 +36,7 @@ func (e SomeContent) String() string { return string(e) } -func (e *SomeContent) UnmarshalGQL(v interface{}) error { +func (e *SomeContent) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/plugin/modelgen/out_enable_model_json_omitempty_tag_false/generated.go b/plugin/modelgen/out_enable_model_json_omitempty_tag_false/generated.go index 0fbb7104782..4d3c658c5da 100644 --- a/plugin/modelgen/out_enable_model_json_omitempty_tag_false/generated.go +++ b/plugin/modelgen/out_enable_model_json_omitempty_tag_false/generated.go @@ -272,7 +272,7 @@ func (e EnumWithDescription) String() string { return string(e) } -func (e *EnumWithDescription) UnmarshalGQL(v interface{}) error { +func (e *EnumWithDescription) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -313,7 +313,7 @@ func (e MissingEnum) String() string { return string(e) } -func (e *MissingEnum) UnmarshalGQL(v interface{}) error { +func (e *MissingEnum) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/plugin/modelgen/out_enable_model_json_omitempty_tag_nil/generated.go b/plugin/modelgen/out_enable_model_json_omitempty_tag_nil/generated.go index e72996f4eae..49b51ef3965 100644 --- a/plugin/modelgen/out_enable_model_json_omitempty_tag_nil/generated.go +++ b/plugin/modelgen/out_enable_model_json_omitempty_tag_nil/generated.go @@ -271,7 +271,7 @@ func (e EnumWithDescription) String() string { return string(e) } -func (e *EnumWithDescription) UnmarshalGQL(v interface{}) error { +func (e *EnumWithDescription) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -312,7 +312,7 @@ func (e MissingEnum) String() string { return string(e) } -func (e *MissingEnum) UnmarshalGQL(v interface{}) error { +func (e *MissingEnum) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/plugin/modelgen/out_enable_model_json_omitempty_tag_true/generated.go b/plugin/modelgen/out_enable_model_json_omitempty_tag_true/generated.go index 1871c875b3e..7f5ccac363d 100644 --- a/plugin/modelgen/out_enable_model_json_omitempty_tag_true/generated.go +++ b/plugin/modelgen/out_enable_model_json_omitempty_tag_true/generated.go @@ -272,7 +272,7 @@ func (e EnumWithDescription) String() string { return string(e) } -func (e *EnumWithDescription) UnmarshalGQL(v interface{}) error { +func (e *EnumWithDescription) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -313,7 +313,7 @@ func (e MissingEnum) String() string { return string(e) } -func (e *MissingEnum) UnmarshalGQL(v interface{}) error { +func (e *MissingEnum) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/plugin/modelgen/out_nullable_input_omittable/generated.go b/plugin/modelgen/out_nullable_input_omittable/generated.go index 04f78b162ab..cd77e3d56e1 100644 --- a/plugin/modelgen/out_nullable_input_omittable/generated.go +++ b/plugin/modelgen/out_nullable_input_omittable/generated.go @@ -271,7 +271,7 @@ func (e EnumWithDescription) String() string { return string(e) } -func (e *EnumWithDescription) UnmarshalGQL(v interface{}) error { +func (e *EnumWithDescription) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -312,7 +312,7 @@ func (e MissingEnum) String() string { return string(e) } -func (e *MissingEnum) UnmarshalGQL(v interface{}) error { +func (e *MissingEnum) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/plugin/modelgen/out_struct_pointers/generated.go b/plugin/modelgen/out_struct_pointers/generated.go index b7205311463..f8d535ea124 100644 --- a/plugin/modelgen/out_struct_pointers/generated.go +++ b/plugin/modelgen/out_struct_pointers/generated.go @@ -229,7 +229,7 @@ func (e EnumWithDescription) String() string { return string(e) } -func (e *EnumWithDescription) UnmarshalGQL(v interface{}) error { +func (e *EnumWithDescription) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -270,7 +270,7 @@ func (e MissingEnum) String() string { return string(e) } -func (e *MissingEnum) UnmarshalGQL(v interface{}) error { +func (e *MissingEnum) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/plugin/modelgen/testdata/customModelTemplate.gotpl b/plugin/modelgen/testdata/customModelTemplate.gotpl index 4ff192a297c..39bccf1fe9c 100644 --- a/plugin/modelgen/testdata/customModelTemplate.gotpl +++ b/plugin/modelgen/testdata/customModelTemplate.gotpl @@ -86,7 +86,7 @@ return string(e) } - func (e *{{ goModelName .Name }}) UnmarshalGQL(v interface{}) error { + func (e *{{ goModelName .Name }}) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/plugin/resolvergen/testdata/return_values/ignored.go b/plugin/resolvergen/testdata/return_values/ignored.go index 59bdda651a0..5f463b1e702 100644 --- a/plugin/resolvergen/testdata/return_values/ignored.go +++ b/plugin/resolvergen/testdata/return_values/ignored.go @@ -69,7 +69,7 @@ func (e *executableSchema) Schema() *ast.Schema { return parsedSchema } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { ec := executionContext{nil, e} _ = ec switch typeName + "." + field { @@ -173,9 +173,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} var arg0 string if tmp, ok := rawArgs["name"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) @@ -188,9 +188,9 @@ func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) @@ -203,9 +203,9 @@ func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} var arg0 bool if tmp, ok := rawArgs["includeDeprecated"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) @@ -238,7 +238,7 @@ func (ec *executionContext) _Query_user(ctx context.Context, field graphql.Colle ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().User(rctx) }) @@ -288,7 +288,7 @@ func (ec *executionContext) _Query_userPointer(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.resolvers.Query().UserPointer(rctx) }) @@ -335,7 +335,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectType(fc.Args["name"].(string)) }) @@ -409,7 +409,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return ec.introspectSchema() }) @@ -464,7 +464,7 @@ func (ec *executionContext) _User_id(ctx context.Context, field graphql.Collecte ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.ID, nil }) @@ -508,7 +508,7 @@ func (ec *executionContext) _User_name(ctx context.Context, field graphql.Collec ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -552,7 +552,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -596,7 +596,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -637,7 +637,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Locations, nil }) @@ -681,7 +681,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -735,7 +735,7 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsRepeatable, nil }) @@ -779,7 +779,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -823,7 +823,7 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -864,7 +864,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -908,7 +908,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -949,7 +949,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -993,7 +993,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1034,7 +1034,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Args, nil }) @@ -1088,7 +1088,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1154,7 +1154,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.IsDeprecated(), nil }) @@ -1198,7 +1198,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DeprecationReason(), nil }) @@ -1239,7 +1239,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name, nil }) @@ -1283,7 +1283,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1324,7 +1324,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Type, nil }) @@ -1390,7 +1390,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.DefaultValue, nil }) @@ -1431,7 +1431,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1472,7 +1472,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Types(), nil }) @@ -1538,7 +1538,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.QueryType(), nil }) @@ -1604,7 +1604,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.MutationType(), nil }) @@ -1667,7 +1667,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SubscriptionType(), nil }) @@ -1730,7 +1730,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Directives(), nil }) @@ -1786,7 +1786,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Kind(), nil }) @@ -1830,7 +1830,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Name(), nil }) @@ -1871,7 +1871,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Description(), nil }) @@ -1912,7 +1912,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) @@ -1978,7 +1978,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.Interfaces(), nil }) @@ -2041,7 +2041,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.PossibleTypes(), nil }) @@ -2104,7 +2104,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) @@ -2166,7 +2166,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.InputFields(), nil }) @@ -2217,7 +2217,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.OfType(), nil }) @@ -2280,7 +2280,7 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr ret = graphql.Null } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { ctx = rctx // use context from middleware stack in children return obj.SpecifiedByURL(), nil }) @@ -2759,7 +2759,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // region ***************************** type.gotpl ***************************** -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2774,7 +2774,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNID2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2789,7 +2789,7 @@ func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2856,7 +2856,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -2871,8 +2871,8 @@ func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Conte return res } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -3046,7 +3046,7 @@ func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgen return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3061,7 +3061,7 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -3071,7 +3071,7 @@ func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) { if v == nil { return nil, nil } @@ -3087,7 +3087,7 @@ func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil }