diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4fee8e160..c22bf9367 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,6 +77,6 @@ jobs: if [ -n "$status" ]; then echo "you need to run 'go generate ./...' and commit the changes" echo "$status" - git diff + git --no-pager diff exit 1 fi diff --git a/entgql/internal/todo/generated.go b/entgql/internal/todo/generated.go index f02848b0e..24d9cafd4 100644 --- a/entgql/internal/todo/generated.go +++ b/entgql/internal/todo/generated.go @@ -57,7 +57,7 @@ type ResolverRoot interface { } type DirectiveRoot struct { - HasPermissions func(ctx context.Context, obj interface{}, next graphql.Resolver, permissions []string) (res interface{}, err error) + HasPermissions func(ctx context.Context, obj any, next graphql.Resolver, permissions []string) (res any, err error) } type ComplexityRoot struct { @@ -297,7 +297,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 { @@ -1156,8 +1156,8 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in } func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { - rc := graphql.GetOperationContext(ctx) - ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)} + opCtx := graphql.GetOperationContext(ctx) + ec := executionContext{opCtx, e, 0, 0, make(chan graphql.DeferredResult)} inputUnmarshalMap := graphql.BuildUnmarshalerMap( ec.unmarshalInputBillProductWhereInput, ec.unmarshalInputCategoryConfigInput, @@ -1184,7 +1184,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ) first := true - switch rc.Operation.Operation { + switch opCtx.Operation.Operation { case ast.Query: return func(ctx context.Context) *graphql.Response { var response graphql.Response @@ -1192,7 +1192,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { if first { first = false ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data = ec._Query(ctx, rc.Operation.SelectionSet) + data = ec._Query(ctx, opCtx.Operation.SelectionSet) } else { if atomic.LoadInt32(&ec.pendingDeferred) > 0 { result := <-ec.deferredResults @@ -1222,7 +1222,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { } first = false ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data := ec._Mutation(ctx, rc.Operation.SelectionSet) + data := ec._Mutation(ctx, opCtx.Operation.SelectionSet) var buf bytes.Buffer data.MarshalGQL(&buf) @@ -1298,9 +1298,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) dir_hasPermissions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_hasPermissions_args(ctx 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_hasPermissions_argsPermissions(ctx, rawArgs) if err != nil { return nil, err @@ -1310,13 +1310,9 @@ func (ec *executionContext) dir_hasPermissions_args(ctx context.Context, rawArgs } func (ec *executionContext) dir_hasPermissions_argsPermissions( 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 - // even if the argument is null. - _, ok := rawArgs["permissions"] - if !ok { + if _, ok := rawArgs["permissions"]; !ok { var zeroVal []string return zeroVal, nil } @@ -1330,9 +1326,9 @@ func (ec *executionContext) dir_hasPermissions_argsPermissions( return zeroVal, nil } -func (ec *executionContext) field_Category_subCategories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Category_subCategories_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Category_subCategories_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -1367,13 +1363,9 @@ func (ec *executionContext) field_Category_subCategories_args(ctx context.Contex } func (ec *executionContext) field_Category_subCategories_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -1389,13 +1381,9 @@ func (ec *executionContext) field_Category_subCategories_argsAfter( func (ec *executionContext) field_Category_subCategories_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -1411,13 +1399,9 @@ func (ec *executionContext) field_Category_subCategories_argsFirst( func (ec *executionContext) field_Category_subCategories_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -1433,13 +1417,9 @@ func (ec *executionContext) field_Category_subCategories_argsBefore( func (ec *executionContext) field_Category_subCategories_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -1455,13 +1435,9 @@ func (ec *executionContext) field_Category_subCategories_argsLast( func (ec *executionContext) field_Category_subCategories_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.CategoryOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.CategoryOrder return zeroVal, nil } @@ -1477,13 +1453,9 @@ func (ec *executionContext) field_Category_subCategories_argsOrderBy( func (ec *executionContext) field_Category_subCategories_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.CategoryWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.CategoryWhereInput return zeroVal, nil } @@ -1497,9 +1469,9 @@ func (ec *executionContext) field_Category_subCategories_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Category_todos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Category_todos_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Category_todos_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -1534,13 +1506,9 @@ func (ec *executionContext) field_Category_todos_args(ctx context.Context, rawAr } func (ec *executionContext) field_Category_todos_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -1556,13 +1524,9 @@ func (ec *executionContext) field_Category_todos_argsAfter( func (ec *executionContext) field_Category_todos_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -1578,13 +1542,9 @@ func (ec *executionContext) field_Category_todos_argsFirst( func (ec *executionContext) field_Category_todos_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -1600,13 +1560,9 @@ func (ec *executionContext) field_Category_todos_argsBefore( func (ec *executionContext) field_Category_todos_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -1622,13 +1578,9 @@ func (ec *executionContext) field_Category_todos_argsLast( func (ec *executionContext) field_Category_todos_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -1644,13 +1596,9 @@ func (ec *executionContext) field_Category_todos_argsOrderBy( func (ec *executionContext) field_Category_todos_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -1664,9 +1612,9 @@ func (ec *executionContext) field_Category_todos_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Group_users_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Group_users_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Group_users_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -1701,13 +1649,9 @@ func (ec *executionContext) field_Group_users_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Group_users_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -1723,13 +1667,9 @@ func (ec *executionContext) field_Group_users_argsAfter( func (ec *executionContext) field_Group_users_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -1745,13 +1685,9 @@ func (ec *executionContext) field_Group_users_argsFirst( func (ec *executionContext) field_Group_users_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -1767,13 +1703,9 @@ func (ec *executionContext) field_Group_users_argsBefore( func (ec *executionContext) field_Group_users_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -1789,13 +1721,9 @@ func (ec *executionContext) field_Group_users_argsLast( func (ec *executionContext) field_Group_users_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal *ent.UserOrder return zeroVal, nil } @@ -1811,13 +1739,9 @@ func (ec *executionContext) field_Group_users_argsOrderBy( func (ec *executionContext) field_Group_users_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.UserWhereInput return zeroVal, nil } @@ -1831,9 +1755,9 @@ func (ec *executionContext) field_Group_users_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Mutation_createCategory_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_createCategory_args(ctx context.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_createCategory_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -1843,13 +1767,9 @@ func (ec *executionContext) field_Mutation_createCategory_args(ctx context.Conte } func (ec *executionContext) field_Mutation_createCategory_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (ent.CreateCategoryInput, 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 { + if _, ok := rawArgs["input"]; !ok { var zeroVal ent.CreateCategoryInput return zeroVal, nil } @@ -1863,9 +1783,9 @@ func (ec *executionContext) field_Mutation_createCategory_argsInput( return zeroVal, nil } -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 @@ -1875,13 +1795,9 @@ 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, ) (ent.CreateTodoInput, 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 { + if _, ok := rawArgs["input"]; !ok { var zeroVal ent.CreateTodoInput return zeroVal, nil } @@ -1895,9 +1811,9 @@ func (ec *executionContext) field_Mutation_createTodo_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Mutation_updateFriendship_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_updateFriendship_args(ctx context.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_updateFriendship_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -1912,13 +1828,9 @@ func (ec *executionContext) field_Mutation_updateFriendship_args(ctx context.Con } func (ec *executionContext) field_Mutation_updateFriendship_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 - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { + if _, ok := rawArgs["id"]; !ok { var zeroVal int return zeroVal, nil } @@ -1934,13 +1846,9 @@ func (ec *executionContext) field_Mutation_updateFriendship_argsID( func (ec *executionContext) field_Mutation_updateFriendship_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (ent.UpdateFriendshipInput, 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 { + if _, ok := rawArgs["input"]; !ok { var zeroVal ent.UpdateFriendshipInput return zeroVal, nil } @@ -1954,9 +1862,9 @@ func (ec *executionContext) field_Mutation_updateFriendship_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Mutation_updateTodo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_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_Mutation_updateTodo_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -1971,13 +1879,9 @@ func (ec *executionContext) field_Mutation_updateTodo_args(ctx context.Context, } func (ec *executionContext) field_Mutation_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 - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { + if _, ok := rawArgs["id"]; !ok { var zeroVal int return zeroVal, nil } @@ -1993,13 +1897,9 @@ func (ec *executionContext) field_Mutation_updateTodo_argsID( func (ec *executionContext) field_Mutation_updateTodo_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (ent.UpdateTodoInput, 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 { + if _, ok := rawArgs["input"]; !ok { var zeroVal ent.UpdateTodoInput return zeroVal, nil } @@ -2013,9 +1913,9 @@ func (ec *executionContext) field_Mutation_updateTodo_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Project_todos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Project_todos_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Project_todos_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -2050,13 +1950,9 @@ func (ec *executionContext) field_Project_todos_args(ctx context.Context, rawArg } func (ec *executionContext) field_Project_todos_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -2072,13 +1968,9 @@ func (ec *executionContext) field_Project_todos_argsAfter( func (ec *executionContext) field_Project_todos_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -2094,13 +1986,9 @@ func (ec *executionContext) field_Project_todos_argsFirst( func (ec *executionContext) field_Project_todos_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -2116,13 +2004,9 @@ func (ec *executionContext) field_Project_todos_argsBefore( func (ec *executionContext) field_Project_todos_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -2138,13 +2022,9 @@ func (ec *executionContext) field_Project_todos_argsLast( func (ec *executionContext) field_Project_todos_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -2160,13 +2040,9 @@ func (ec *executionContext) field_Project_todos_argsOrderBy( func (ec *executionContext) field_Project_todos_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -2180,9 +2056,9 @@ func (ec *executionContext) field_Project_todos_argsWhere( 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 @@ -2192,13 +2068,9 @@ 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 - // even if the argument is null. - _, ok := rawArgs["name"] - if !ok { + if _, ok := rawArgs["name"]; !ok { var zeroVal string return zeroVal, nil } @@ -2212,9 +2084,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query_categories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_categories_args(ctx context.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_categories_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -2249,13 +2121,9 @@ func (ec *executionContext) field_Query_categories_args(ctx context.Context, raw } func (ec *executionContext) field_Query_categories_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -2271,13 +2139,9 @@ func (ec *executionContext) field_Query_categories_argsAfter( func (ec *executionContext) field_Query_categories_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -2293,13 +2157,9 @@ func (ec *executionContext) field_Query_categories_argsFirst( func (ec *executionContext) field_Query_categories_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -2315,13 +2175,9 @@ func (ec *executionContext) field_Query_categories_argsBefore( func (ec *executionContext) field_Query_categories_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -2337,13 +2193,9 @@ func (ec *executionContext) field_Query_categories_argsLast( func (ec *executionContext) field_Query_categories_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.CategoryOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.CategoryOrder return zeroVal, nil } @@ -2359,13 +2211,9 @@ func (ec *executionContext) field_Query_categories_argsOrderBy( func (ec *executionContext) field_Query_categories_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.CategoryWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.CategoryWhereInput return zeroVal, nil } @@ -2379,9 +2227,9 @@ func (ec *executionContext) field_Query_categories_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_groups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_groups_args(ctx context.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_groups_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -2411,13 +2259,9 @@ func (ec *executionContext) field_Query_groups_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_groups_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -2433,13 +2277,9 @@ func (ec *executionContext) field_Query_groups_argsAfter( func (ec *executionContext) field_Query_groups_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -2455,13 +2295,9 @@ func (ec *executionContext) field_Query_groups_argsFirst( func (ec *executionContext) field_Query_groups_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -2477,13 +2313,9 @@ func (ec *executionContext) field_Query_groups_argsBefore( func (ec *executionContext) field_Query_groups_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -2499,13 +2331,9 @@ func (ec *executionContext) field_Query_groups_argsLast( func (ec *executionContext) field_Query_groups_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.GroupWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.GroupWhereInput return zeroVal, nil } @@ -2519,9 +2347,9 @@ func (ec *executionContext) field_Query_groups_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_node_args(ctx context.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_node_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -2531,13 +2359,9 @@ func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs m } func (ec *executionContext) field_Query_node_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 - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { + if _, ok := rawArgs["id"]; !ok { var zeroVal int return zeroVal, nil } @@ -2551,9 +2375,9 @@ func (ec *executionContext) field_Query_node_argsID( return zeroVal, nil } -func (ec *executionContext) field_Query_nodes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_nodes_args(ctx context.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_nodes_argsIds(ctx, rawArgs) if err != nil { return nil, err @@ -2563,13 +2387,9 @@ func (ec *executionContext) field_Query_nodes_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_nodes_argsIds( 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 - // even if the argument is null. - _, ok := rawArgs["ids"] - if !ok { + if _, ok := rawArgs["ids"]; !ok { var zeroVal []int return zeroVal, nil } @@ -2583,9 +2403,9 @@ func (ec *executionContext) field_Query_nodes_argsIds( return zeroVal, nil } -func (ec *executionContext) field_Query_oneToMany_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_oneToMany_args(ctx context.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_oneToMany_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -2620,13 +2440,9 @@ func (ec *executionContext) field_Query_oneToMany_args(ctx context.Context, rawA } func (ec *executionContext) field_Query_oneToMany_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -2642,13 +2458,9 @@ func (ec *executionContext) field_Query_oneToMany_argsAfter( func (ec *executionContext) field_Query_oneToMany_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -2664,13 +2476,9 @@ func (ec *executionContext) field_Query_oneToMany_argsFirst( func (ec *executionContext) field_Query_oneToMany_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -2686,13 +2494,9 @@ func (ec *executionContext) field_Query_oneToMany_argsBefore( func (ec *executionContext) field_Query_oneToMany_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -2708,13 +2512,9 @@ func (ec *executionContext) field_Query_oneToMany_argsLast( func (ec *executionContext) field_Query_oneToMany_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.OneToManyOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal *ent.OneToManyOrder return zeroVal, nil } @@ -2730,13 +2530,9 @@ func (ec *executionContext) field_Query_oneToMany_argsOrderBy( func (ec *executionContext) field_Query_oneToMany_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.OneToManyWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.OneToManyWhereInput return zeroVal, nil } @@ -2750,9 +2546,9 @@ func (ec *executionContext) field_Query_oneToMany_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_todosWithJoins_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_todosWithJoins_args(ctx context.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_todosWithJoins_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -2787,13 +2583,9 @@ func (ec *executionContext) field_Query_todosWithJoins_args(ctx context.Context, } func (ec *executionContext) field_Query_todosWithJoins_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -2809,13 +2601,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsAfter( func (ec *executionContext) field_Query_todosWithJoins_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -2831,13 +2619,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsFirst( func (ec *executionContext) field_Query_todosWithJoins_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -2853,13 +2637,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsBefore( func (ec *executionContext) field_Query_todosWithJoins_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -2875,13 +2655,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsLast( func (ec *executionContext) field_Query_todosWithJoins_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -2897,13 +2673,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsOrderBy( func (ec *executionContext) field_Query_todosWithJoins_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -2917,9 +2689,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_todos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_todos_args(ctx context.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_todos_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -2954,13 +2726,9 @@ func (ec *executionContext) field_Query_todos_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_todos_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -2976,13 +2744,9 @@ func (ec *executionContext) field_Query_todos_argsAfter( func (ec *executionContext) field_Query_todos_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -2998,13 +2762,9 @@ func (ec *executionContext) field_Query_todos_argsFirst( func (ec *executionContext) field_Query_todos_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -3020,13 +2780,9 @@ func (ec *executionContext) field_Query_todos_argsBefore( func (ec *executionContext) field_Query_todos_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3042,13 +2798,9 @@ func (ec *executionContext) field_Query_todos_argsLast( func (ec *executionContext) field_Query_todos_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -3064,13 +2816,9 @@ func (ec *executionContext) field_Query_todos_argsOrderBy( func (ec *executionContext) field_Query_todos_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -3084,9 +2832,9 @@ func (ec *executionContext) field_Query_todos_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_users_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_users_args(ctx context.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_users_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3121,13 +2869,9 @@ func (ec *executionContext) field_Query_users_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_users_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -3143,13 +2887,9 @@ func (ec *executionContext) field_Query_users_argsAfter( func (ec *executionContext) field_Query_users_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3165,13 +2905,9 @@ func (ec *executionContext) field_Query_users_argsFirst( func (ec *executionContext) field_Query_users_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -3187,13 +2923,9 @@ func (ec *executionContext) field_Query_users_argsBefore( func (ec *executionContext) field_Query_users_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3209,13 +2941,9 @@ func (ec *executionContext) field_Query_users_argsLast( func (ec *executionContext) field_Query_users_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal *ent.UserOrder return zeroVal, nil } @@ -3231,13 +2959,9 @@ func (ec *executionContext) field_Query_users_argsOrderBy( func (ec *executionContext) field_Query_users_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.UserWhereInput return zeroVal, nil } @@ -3251,9 +2975,9 @@ func (ec *executionContext) field_Query_users_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Todo_children_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Todo_children_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Todo_children_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3288,13 +3012,9 @@ func (ec *executionContext) field_Todo_children_args(ctx context.Context, rawArg } func (ec *executionContext) field_Todo_children_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -3310,13 +3030,9 @@ func (ec *executionContext) field_Todo_children_argsAfter( func (ec *executionContext) field_Todo_children_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3332,13 +3048,9 @@ func (ec *executionContext) field_Todo_children_argsFirst( func (ec *executionContext) field_Todo_children_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -3354,13 +3066,9 @@ func (ec *executionContext) field_Todo_children_argsBefore( func (ec *executionContext) field_Todo_children_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3376,13 +3084,9 @@ func (ec *executionContext) field_Todo_children_argsLast( func (ec *executionContext) field_Todo_children_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -3398,13 +3102,9 @@ func (ec *executionContext) field_Todo_children_argsOrderBy( func (ec *executionContext) field_Todo_children_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -3418,9 +3118,9 @@ func (ec *executionContext) field_Todo_children_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_User_friends_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_User_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_User_friends_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3455,13 +3155,9 @@ func (ec *executionContext) field_User_friends_args(ctx context.Context, rawArgs } func (ec *executionContext) field_User_friends_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -3477,13 +3173,9 @@ func (ec *executionContext) field_User_friends_argsAfter( func (ec *executionContext) field_User_friends_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3499,13 +3191,9 @@ func (ec *executionContext) field_User_friends_argsFirst( func (ec *executionContext) field_User_friends_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -3521,13 +3209,9 @@ func (ec *executionContext) field_User_friends_argsBefore( func (ec *executionContext) field_User_friends_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3543,13 +3227,9 @@ func (ec *executionContext) field_User_friends_argsLast( func (ec *executionContext) field_User_friends_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal *ent.UserOrder return zeroVal, nil } @@ -3565,13 +3245,9 @@ func (ec *executionContext) field_User_friends_argsOrderBy( func (ec *executionContext) field_User_friends_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.UserWhereInput return zeroVal, nil } @@ -3585,9 +3261,9 @@ func (ec *executionContext) field_User_friends_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_User_friendships_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_User_friendships_args(ctx context.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_friendships_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3617,13 +3293,9 @@ func (ec *executionContext) field_User_friendships_args(ctx context.Context, raw } func (ec *executionContext) field_User_friendships_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -3639,13 +3311,9 @@ func (ec *executionContext) field_User_friendships_argsAfter( func (ec *executionContext) field_User_friendships_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3661,13 +3329,9 @@ func (ec *executionContext) field_User_friendships_argsFirst( func (ec *executionContext) field_User_friendships_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -3683,13 +3347,9 @@ func (ec *executionContext) field_User_friendships_argsBefore( func (ec *executionContext) field_User_friendships_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3705,13 +3365,9 @@ func (ec *executionContext) field_User_friendships_argsLast( func (ec *executionContext) field_User_friendships_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.FriendshipWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.FriendshipWhereInput return zeroVal, nil } @@ -3725,9 +3381,9 @@ func (ec *executionContext) field_User_friendships_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_User_groups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_User_groups_args(ctx context.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_groups_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3757,13 +3413,9 @@ func (ec *executionContext) field_User_groups_args(ctx context.Context, rawArgs } func (ec *executionContext) field_User_groups_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -3779,13 +3431,9 @@ func (ec *executionContext) field_User_groups_argsAfter( func (ec *executionContext) field_User_groups_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3801,13 +3449,9 @@ func (ec *executionContext) field_User_groups_argsFirst( func (ec *executionContext) field_User_groups_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -3823,13 +3467,9 @@ func (ec *executionContext) field_User_groups_argsBefore( func (ec *executionContext) field_User_groups_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3845,13 +3485,9 @@ func (ec *executionContext) field_User_groups_argsLast( func (ec *executionContext) field_User_groups_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.GroupWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.GroupWhereInput return zeroVal, nil } @@ -3865,9 +3501,9 @@ func (ec *executionContext) field_User_groups_argsWhere( 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 @@ -3877,13 +3513,9 @@ 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 - // even if the argument is null. - _, ok := rawArgs["includeDeprecated"] - if !ok { + if _, ok := rawArgs["includeDeprecated"]; !ok { var zeroVal bool return zeroVal, nil } @@ -3897,9 +3529,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 @@ -3909,13 +3541,9 @@ 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 - // even if the argument is null. - _, ok := rawArgs["includeDeprecated"] - if !ok { + if _, ok := rawArgs["includeDeprecated"]; !ok { var zeroVal bool return zeroVal, nil } @@ -3949,7 +3577,7 @@ func (ec *executionContext) _BillProduct_id(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.ID, nil }) @@ -3993,7 +3621,7 @@ func (ec *executionContext) _BillProduct_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 }) @@ -4037,7 +3665,7 @@ func (ec *executionContext) _BillProduct_sku(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.Sku, nil }) @@ -4081,7 +3709,7 @@ func (ec *executionContext) _BillProduct_quantity(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.Quantity, nil }) @@ -4125,7 +3753,7 @@ func (ec *executionContext) _Category_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 }) @@ -4169,7 +3797,7 @@ func (ec *executionContext) _Category_text(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.Text, nil }) @@ -4213,7 +3841,7 @@ func (ec *executionContext) _Category_status(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.Status, nil }) @@ -4257,7 +3885,7 @@ func (ec *executionContext) _Category_config(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.Config, nil }) @@ -4302,7 +3930,7 @@ func (ec *executionContext) _Category_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 }) @@ -4347,7 +3975,7 @@ func (ec *executionContext) _Category_duration(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.Duration, nil }) @@ -4388,7 +4016,7 @@ func (ec *executionContext) _Category_count(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.Count, nil }) @@ -4429,7 +4057,7 @@ func (ec *executionContext) _Category_strings(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.Strings, nil }) @@ -4470,7 +4098,7 @@ func (ec *executionContext) _Category_todos(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.Todos(ctx, fc.Args["after"].(*entgql.Cursor[int]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[int]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.TodoOrder), fc.Args["where"].(*ent.TodoWhereInput)) }) @@ -4533,7 +4161,7 @@ func (ec *executionContext) _Category_subCategories(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 obj.SubCategories(ctx, fc.Args["after"].(*entgql.Cursor[int]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[int]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.CategoryOrder), fc.Args["where"].(*ent.CategoryWhereInput)) }) @@ -4596,7 +4224,7 @@ func (ec *executionContext) _Category_todosCount(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.Category().TodosCount(rctx, obj) }) @@ -4637,7 +4265,7 @@ func (ec *executionContext) _CategoryConfig_maxMembers(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.MaxMembers, nil }) @@ -4678,7 +4306,7 @@ func (ec *executionContext) _CategoryConnection_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 obj.Edges, nil }) @@ -4725,7 +4353,7 @@ func (ec *executionContext) _CategoryConnection_pageInfo(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.PageInfo, nil }) @@ -4779,7 +4407,7 @@ func (ec *executionContext) _CategoryConnection_totalCount(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.TotalCount, nil }) @@ -4823,7 +4451,7 @@ func (ec *executionContext) _CategoryEdge_node(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.Node, nil }) @@ -4888,7 +4516,7 @@ func (ec *executionContext) _CategoryEdge_cursor(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.Cursor, nil }) @@ -4932,7 +4560,7 @@ func (ec *executionContext) _CategoryTypes_public(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.Public, nil }) @@ -4973,7 +4601,7 @@ func (ec *executionContext) _Custom_info(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.Info, nil }) @@ -5017,7 +4645,7 @@ func (ec *executionContext) _Friendship_id(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.ID, nil }) @@ -5061,7 +4689,7 @@ func (ec *executionContext) _Friendship_createdAt(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.CreatedAt, nil }) @@ -5105,7 +4733,7 @@ func (ec *executionContext) _Friendship_userID(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.UserID, nil }) @@ -5149,7 +4777,7 @@ func (ec *executionContext) _Friendship_friendID(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.FriendID, nil }) @@ -5193,7 +4821,7 @@ func (ec *executionContext) _Friendship_user(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.User(ctx) }) @@ -5255,7 +4883,7 @@ func (ec *executionContext) _Friendship_friend(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.Friend(ctx) }) @@ -5317,7 +4945,7 @@ func (ec *executionContext) _FriendshipConnection_edges(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.Edges, nil }) @@ -5364,7 +4992,7 @@ func (ec *executionContext) _FriendshipConnection_pageInfo(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.PageInfo, nil }) @@ -5418,7 +5046,7 @@ func (ec *executionContext) _FriendshipConnection_totalCount(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.TotalCount, nil }) @@ -5462,7 +5090,7 @@ func (ec *executionContext) _FriendshipEdge_node(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.Node, nil }) @@ -5517,7 +5145,7 @@ func (ec *executionContext) _FriendshipEdge_cursor(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.Cursor, nil }) @@ -5561,7 +5189,7 @@ func (ec *executionContext) _Group_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 }) @@ -5605,7 +5233,7 @@ func (ec *executionContext) _Group_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 }) @@ -5649,7 +5277,7 @@ func (ec *executionContext) _Group_users(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.Users(ctx, fc.Args["after"].(*entgql.Cursor[int]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[int]), fc.Args["last"].(*int), fc.Args["orderBy"].(*ent.UserOrder), fc.Args["where"].(*ent.UserWhereInput)) }) @@ -5712,7 +5340,7 @@ func (ec *executionContext) _GroupConnection_edges(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.Edges, nil }) @@ -5759,7 +5387,7 @@ func (ec *executionContext) _GroupConnection_pageInfo(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.PageInfo, nil }) @@ -5813,7 +5441,7 @@ func (ec *executionContext) _GroupConnection_totalCount(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.TotalCount, nil }) @@ -5857,14 +5485,14 @@ func (ec *executionContext) _GroupEdge_node(ctx context.Context, 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 obj.Node, nil } - directive1 := func(ctx context.Context) (interface{}, error) { - permissions, err := ec.unmarshalNString2ᚕstringᚄ(ctx, []interface{}{"ADMIN", "MODERATOR"}) + directive1 := func(ctx context.Context) (any, error) { + permissions, err := ec.unmarshalNString2ᚕstringᚄ(ctx, []any{"ADMIN", "MODERATOR"}) if err != nil { var zeroVal *ent.Group return zeroVal, err @@ -5933,7 +5561,7 @@ func (ec *executionContext) _GroupEdge_cursor(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.Cursor, nil }) @@ -5977,7 +5605,7 @@ func (ec *executionContext) _Mutation_createCategory(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().CreateCategory(rctx, fc.Args["input"].(ent.CreateCategoryInput)) }) @@ -6056,7 +5684,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"].(ent.CreateTodoInput)) }) @@ -6145,7 +5773,7 @@ func (ec *executionContext) _Mutation_updateTodo(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().UpdateTodo(rctx, fc.Args["id"].(int), fc.Args["input"].(ent.UpdateTodoInput)) }) @@ -6234,7 +5862,7 @@ func (ec *executionContext) _Mutation_clearTodos(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().ClearTodos(rctx) }) @@ -6278,7 +5906,7 @@ func (ec *executionContext) _Mutation_updateFriendship(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.Mutation().UpdateFriendship(rctx, fc.Args["id"].(int), fc.Args["input"].(ent.UpdateFriendshipInput)) }) @@ -6347,7 +5975,7 @@ func (ec *executionContext) _OneToMany_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 }) @@ -6391,7 +6019,7 @@ func (ec *executionContext) _OneToMany_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 }) @@ -6435,7 +6063,7 @@ func (ec *executionContext) _OneToMany_field2(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.Field2, nil }) @@ -6476,7 +6104,7 @@ func (ec *executionContext) _OneToMany_parent(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.Parent(ctx) }) @@ -6529,7 +6157,7 @@ func (ec *executionContext) _OneToMany_children(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.Children(ctx) }) @@ -6582,7 +6210,7 @@ func (ec *executionContext) _OneToManyConnection_edges(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.Edges, nil }) @@ -6629,7 +6257,7 @@ func (ec *executionContext) _OneToManyConnection_pageInfo(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.PageInfo, nil }) @@ -6683,7 +6311,7 @@ func (ec *executionContext) _OneToManyConnection_totalCount(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.TotalCount, nil }) @@ -6727,7 +6355,7 @@ func (ec *executionContext) _OneToManyEdge_node(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.Node, nil }) @@ -6780,7 +6408,7 @@ func (ec *executionContext) _OneToManyEdge_cursor(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.Cursor, nil }) @@ -6824,7 +6452,7 @@ func (ec *executionContext) _Organization_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 }) @@ -6868,7 +6496,7 @@ func (ec *executionContext) _Organization_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 }) @@ -6912,7 +6540,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 }) @@ -6956,7 +6584,7 @@ func (ec *executionContext) _PageInfo_hasPreviousPage(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.HasPreviousPage, nil }) @@ -7000,7 +6628,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 }) @@ -7041,7 +6669,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 }) @@ -7082,7 +6710,7 @@ func (ec *executionContext) _Project_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 }) @@ -7126,7 +6754,7 @@ func (ec *executionContext) _Project_todos(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.Todos(ctx, fc.Args["after"].(*entgql.Cursor[int]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[int]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.TodoOrder), fc.Args["where"].(*ent.TodoWhereInput)) }) @@ -7189,7 +6817,7 @@ func (ec *executionContext) _Query_node(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().Node(rctx, fc.Args["id"].(int)) }) @@ -7241,7 +6869,7 @@ func (ec *executionContext) _Query_nodes(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().Nodes(rctx, fc.Args["ids"].([]int)) }) @@ -7296,7 +6924,7 @@ func (ec *executionContext) _Query_billProducts(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().BillProducts(rctx) }) @@ -7350,7 +6978,7 @@ func (ec *executionContext) _Query_categories(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().Categories(rctx, fc.Args["after"].(*entgql.Cursor[int]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[int]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.CategoryOrder), fc.Args["where"].(*ent.CategoryWhereInput)) }) @@ -7413,7 +7041,7 @@ func (ec *executionContext) _Query_groups(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().Groups(rctx, fc.Args["after"].(*entgql.Cursor[int]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[int]), fc.Args["last"].(*int), fc.Args["where"].(*ent.GroupWhereInput)) }) @@ -7476,7 +7104,7 @@ func (ec *executionContext) _Query_oneToMany(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().OneToMany(rctx, fc.Args["after"].(*entgql.Cursor[int]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[int]), fc.Args["last"].(*int), fc.Args["orderBy"].(*ent.OneToManyOrder), fc.Args["where"].(*ent.OneToManyWhereInput)) }) @@ -7539,7 +7167,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, fc.Args["after"].(*entgql.Cursor[int]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[int]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.TodoOrder), fc.Args["where"].(*ent.TodoWhereInput)) }) @@ -7602,7 +7230,7 @@ func (ec *executionContext) _Query_users(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().Users(rctx, fc.Args["after"].(*entgql.Cursor[int]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[int]), fc.Args["last"].(*int), fc.Args["orderBy"].(*ent.UserOrder), fc.Args["where"].(*ent.UserWhereInput)) }) @@ -7665,7 +7293,7 @@ func (ec *executionContext) _Query_ping(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().Ping(rctx) }) @@ -7709,7 +7337,7 @@ func (ec *executionContext) _Query_todosWithJoins(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().TodosWithJoins(rctx, fc.Args["after"].(*entgql.Cursor[int]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[int]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.TodoOrder), fc.Args["where"].(*ent.TodoWhereInput)) }) @@ -7772,7 +7400,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)) }) @@ -7846,7 +7474,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() }) @@ -7901,7 +7529,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 }) @@ -7945,7 +7573,7 @@ func (ec *executionContext) _Todo_createdAt(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.CreatedAt, nil }) @@ -7989,7 +7617,7 @@ func (ec *executionContext) _Todo_status(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.Status, nil }) @@ -8033,7 +7661,7 @@ func (ec *executionContext) _Todo_priorityOrder(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.Priority, nil }) @@ -8077,7 +7705,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 }) @@ -8121,7 +7749,7 @@ func (ec *executionContext) _Todo_categoryID(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.CategoryID, nil }) @@ -8162,7 +7790,7 @@ func (ec *executionContext) _Todo_category_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.CategoryID, nil }) @@ -8203,7 +7831,7 @@ func (ec *executionContext) _Todo_categoryX(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.CategoryID, nil }) @@ -8244,7 +7872,7 @@ func (ec *executionContext) _Todo_init(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.Init, nil }) @@ -8285,7 +7913,7 @@ func (ec *executionContext) _Todo_custom(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.Custom, nil }) @@ -8330,7 +7958,7 @@ func (ec *executionContext) _Todo_customp(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.Customp, nil }) @@ -8375,7 +8003,7 @@ func (ec *executionContext) _Todo_value(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.Value, nil }) @@ -8419,7 +8047,7 @@ func (ec *executionContext) _Todo_parent(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.Parent(ctx) }) @@ -8494,7 +8122,7 @@ func (ec *executionContext) _Todo_children(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.Children(ctx, fc.Args["after"].(*entgql.Cursor[int]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[int]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.TodoOrder), fc.Args["where"].(*ent.TodoWhereInput)) }) @@ -8557,7 +8185,7 @@ func (ec *executionContext) _Todo_category(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.Category(ctx) }) @@ -8622,7 +8250,7 @@ func (ec *executionContext) _Todo_extendedField(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.Todo().ExtendedField(rctx, obj) }) @@ -8663,7 +8291,7 @@ func (ec *executionContext) _TodoConnection_edges(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.Edges, nil }) @@ -8710,7 +8338,7 @@ func (ec *executionContext) _TodoConnection_pageInfo(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.PageInfo, nil }) @@ -8764,7 +8392,7 @@ func (ec *executionContext) _TodoConnection_totalCount(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.TotalCount, nil }) @@ -8808,7 +8436,7 @@ func (ec *executionContext) _TodoEdge_node(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.Node, nil }) @@ -8883,7 +8511,7 @@ func (ec *executionContext) _TodoEdge_cursor(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.Cursor, nil }) @@ -8927,7 +8555,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 }) @@ -8971,7 +8599,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 }) @@ -9015,7 +8643,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 }) @@ -9059,7 +8687,7 @@ func (ec *executionContext) _User_requiredMetadata(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.RequiredMetadata, nil }) @@ -9103,7 +8731,7 @@ func (ec *executionContext) _User_metadata(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.Metadata, nil }) @@ -9144,7 +8772,7 @@ func (ec *executionContext) _User_groups(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.Groups(ctx, fc.Args["after"].(*entgql.Cursor[int]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[int]), fc.Args["last"].(*int), fc.Args["where"].(*ent.GroupWhereInput)) }) @@ -9207,7 +8835,7 @@ func (ec *executionContext) _User_friends(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.Friends(ctx, fc.Args["after"].(*entgql.Cursor[int]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[int]), fc.Args["last"].(*int), fc.Args["orderBy"].(*ent.UserOrder), fc.Args["where"].(*ent.UserWhereInput)) }) @@ -9270,7 +8898,7 @@ func (ec *executionContext) _User_friendships(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.Friendships(ctx, fc.Args["after"].(*entgql.Cursor[int]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[int]), fc.Args["last"].(*int), fc.Args["where"].(*ent.FriendshipWhereInput)) }) @@ -9333,7 +8961,7 @@ func (ec *executionContext) _UserConnection_edges(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.Edges, nil }) @@ -9380,7 +9008,7 @@ func (ec *executionContext) _UserConnection_pageInfo(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.PageInfo, nil }) @@ -9434,7 +9062,7 @@ func (ec *executionContext) _UserConnection_totalCount(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.TotalCount, nil }) @@ -9478,7 +9106,7 @@ func (ec *executionContext) _UserEdge_node(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.Node, nil }) @@ -9537,7 +9165,7 @@ func (ec *executionContext) _UserEdge_cursor(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.Cursor, nil }) @@ -9581,7 +9209,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 }) @@ -9625,7 +9253,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 }) @@ -9666,7 +9294,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 }) @@ -9710,7 +9338,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 }) @@ -9764,7 +9392,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 }) @@ -9808,7 +9436,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 }) @@ -9852,7 +9480,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 }) @@ -9893,7 +9521,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 }) @@ -9937,7 +9565,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 }) @@ -9978,7 +9606,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 }) @@ -10022,7 +9650,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 }) @@ -10063,7 +9691,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 }) @@ -10117,7 +9745,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 }) @@ -10183,7 +9811,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 }) @@ -10227,7 +9855,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 }) @@ -10268,7 +9896,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 }) @@ -10312,7 +9940,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 }) @@ -10353,7 +9981,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 }) @@ -10419,7 +10047,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 }) @@ -10460,7 +10088,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 }) @@ -10501,7 +10129,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 }) @@ -10567,7 +10195,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 }) @@ -10633,7 +10261,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 }) @@ -10696,7 +10324,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 }) @@ -10759,7 +10387,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 }) @@ -10815,7 +10443,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 }) @@ -10859,7 +10487,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 }) @@ -10900,7 +10528,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 }) @@ -10941,7 +10569,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 }) @@ -11007,7 +10635,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 }) @@ -11070,7 +10698,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 }) @@ -11133,7 +10761,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 }) @@ -11195,7 +10823,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 }) @@ -11246,7 +10874,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 }) @@ -11309,7 +10937,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 }) @@ -11342,10 +10970,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputBillProductWhereInput(ctx context.Context, obj interface{}) (ent.BillProductWhereInput, error) { +func (ec *executionContext) unmarshalInputBillProductWhereInput(ctx context.Context, obj any) (ent.BillProductWhereInput, error) { var it ent.BillProductWhereInput - 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 } @@ -11677,10 +11305,10 @@ func (ec *executionContext) unmarshalInputBillProductWhereInput(ctx context.Cont return it, nil } -func (ec *executionContext) unmarshalInputCategoryConfigInput(ctx context.Context, obj interface{}) (schematype.CategoryConfig, error) { +func (ec *executionContext) unmarshalInputCategoryConfigInput(ctx context.Context, obj any) (schematype.CategoryConfig, error) { var it schematype.CategoryConfig - 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 } @@ -11704,10 +11332,10 @@ func (ec *executionContext) unmarshalInputCategoryConfigInput(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputCategoryOrder(ctx context.Context, obj interface{}) (ent.CategoryOrder, error) { +func (ec *executionContext) unmarshalInputCategoryOrder(ctx context.Context, obj any) (ent.CategoryOrder, error) { var it ent.CategoryOrder - 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 } @@ -11742,10 +11370,10 @@ func (ec *executionContext) unmarshalInputCategoryOrder(ctx context.Context, obj return it, nil } -func (ec *executionContext) unmarshalInputCategoryTypesInput(ctx context.Context, obj interface{}) (schematype.CategoryTypes, error) { +func (ec *executionContext) unmarshalInputCategoryTypesInput(ctx context.Context, obj any) (schematype.CategoryTypes, error) { var it schematype.CategoryTypes - 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 } @@ -11769,10 +11397,10 @@ func (ec *executionContext) unmarshalInputCategoryTypesInput(ctx context.Context return it, nil } -func (ec *executionContext) unmarshalInputCategoryWhereInput(ctx context.Context, obj interface{}) (ent.CategoryWhereInput, error) { +func (ec *executionContext) unmarshalInputCategoryWhereInput(ctx context.Context, obj any) (ent.CategoryWhereInput, error) { var it ent.CategoryWhereInput - 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 } @@ -12223,10 +11851,10 @@ func (ec *executionContext) unmarshalInputCategoryWhereInput(ctx context.Context return it, nil } -func (ec *executionContext) unmarshalInputCreateCategoryInput(ctx context.Context, obj interface{}) (ent.CreateCategoryInput, error) { +func (ec *executionContext) unmarshalInputCreateCategoryInput(ctx context.Context, obj any) (ent.CreateCategoryInput, error) { var it ent.CreateCategoryInput - 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 } @@ -12315,10 +11943,10 @@ func (ec *executionContext) unmarshalInputCreateCategoryInput(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputCreateTodoInput(ctx context.Context, obj interface{}) (ent.CreateTodoInput, error) { +func (ec *executionContext) unmarshalInputCreateTodoInput(ctx context.Context, obj any) (ent.CreateTodoInput, error) { var it ent.CreateTodoInput - 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 } @@ -12398,10 +12026,10 @@ func (ec *executionContext) unmarshalInputCreateTodoInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, obj interface{}) (ent.CreateUserInput, error) { +func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, obj any) (ent.CreateUserInput, error) { var it ent.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 } @@ -12467,10 +12095,10 @@ func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputFriendshipWhereInput(ctx context.Context, obj interface{}) (ent.FriendshipWhereInput, error) { +func (ec *executionContext) unmarshalInputFriendshipWhereInput(ctx context.Context, obj any) (ent.FriendshipWhereInput, error) { var it ent.FriendshipWhereInput - 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 } @@ -12620,10 +12248,10 @@ func (ec *executionContext) unmarshalInputFriendshipWhereInput(ctx context.Conte return it, nil } -func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, obj interface{}) (ent.GroupWhereInput, error) { +func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, obj any) (ent.GroupWhereInput, error) { var it ent.GroupWhereInput - 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 } @@ -12822,10 +12450,10 @@ func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputOneToManyOrder(ctx context.Context, obj interface{}) (ent.OneToManyOrder, error) { +func (ec *executionContext) unmarshalInputOneToManyOrder(ctx context.Context, obj any) (ent.OneToManyOrder, error) { var it ent.OneToManyOrder - 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 } @@ -12860,10 +12488,10 @@ func (ec *executionContext) unmarshalInputOneToManyOrder(ctx context.Context, ob return it, nil } -func (ec *executionContext) unmarshalInputOneToManyWhereInput(ctx context.Context, obj interface{}) (ent.OneToManyWhereInput, error) { +func (ec *executionContext) unmarshalInputOneToManyWhereInput(ctx context.Context, obj any) (ent.OneToManyWhereInput, error) { var it ent.OneToManyWhereInput - 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 } @@ -13181,10 +12809,10 @@ func (ec *executionContext) unmarshalInputOneToManyWhereInput(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Context, obj interface{}) (ent.OrganizationWhereInput, error) { +func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Context, obj any) (ent.OrganizationWhereInput, error) { var it ent.OrganizationWhereInput - 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 } @@ -13369,10 +12997,10 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, nil } -func (ec *executionContext) unmarshalInputProjectWhereInput(ctx context.Context, obj interface{}) (ent.ProjectWhereInput, error) { +func (ec *executionContext) unmarshalInputProjectWhereInput(ctx context.Context, obj any) (ent.ProjectWhereInput, error) { var it ent.ProjectWhereInput - 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 } @@ -13480,10 +13108,10 @@ func (ec *executionContext) unmarshalInputProjectWhereInput(ctx context.Context, return it, nil } -func (ec *executionContext) unmarshalInputTodoOrder(ctx context.Context, obj interface{}) (ent.TodoOrder, error) { +func (ec *executionContext) unmarshalInputTodoOrder(ctx context.Context, obj any) (ent.TodoOrder, error) { var it ent.TodoOrder - 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 } @@ -13518,10 +13146,10 @@ func (ec *executionContext) unmarshalInputTodoOrder(ctx context.Context, obj int return it, nil } -func (ec *executionContext) unmarshalInputTodoWhereInput(ctx context.Context, obj interface{}) (ent.TodoWhereInput, error) { +func (ec *executionContext) unmarshalInputTodoWhereInput(ctx context.Context, obj any) (ent.TodoWhereInput, error) { var it ent.TodoWhereInput - 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 } @@ -13995,10 +13623,10 @@ func (ec *executionContext) unmarshalInputTodoWhereInput(ctx context.Context, ob return it, nil } -func (ec *executionContext) unmarshalInputUpdateCategoryInput(ctx context.Context, obj interface{}) (ent.UpdateCategoryInput, error) { +func (ec *executionContext) unmarshalInputUpdateCategoryInput(ctx context.Context, obj any) (ent.UpdateCategoryInput, error) { var it ent.UpdateCategoryInput - 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 } @@ -14148,10 +13776,10 @@ func (ec *executionContext) unmarshalInputUpdateCategoryInput(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputUpdateFriendshipInput(ctx context.Context, obj interface{}) (ent.UpdateFriendshipInput, error) { +func (ec *executionContext) unmarshalInputUpdateFriendshipInput(ctx context.Context, obj any) (ent.UpdateFriendshipInput, error) { var it ent.UpdateFriendshipInput - 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 } @@ -14189,10 +13817,10 @@ func (ec *executionContext) unmarshalInputUpdateFriendshipInput(ctx context.Cont return it, nil } -func (ec *executionContext) unmarshalInputUpdateTodoInput(ctx context.Context, obj interface{}) (ent.UpdateTodoInput, error) { +func (ec *executionContext) unmarshalInputUpdateTodoInput(ctx context.Context, obj any) (ent.UpdateTodoInput, error) { var it ent.UpdateTodoInput - 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 } @@ -14300,10 +13928,10 @@ func (ec *executionContext) unmarshalInputUpdateTodoInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, obj interface{}) (ent.UpdateUserInput, error) { +func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, obj any) (ent.UpdateUserInput, error) { var it ent.UpdateUserInput - 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 } @@ -14411,10 +14039,10 @@ func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputUserOrder(ctx context.Context, obj interface{}) (ent.UserOrder, error) { +func (ec *executionContext) unmarshalInputUserOrder(ctx context.Context, obj any) (ent.UserOrder, error) { var it ent.UserOrder - 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 } @@ -14449,10 +14077,10 @@ func (ec *executionContext) unmarshalInputUserOrder(ctx context.Context, obj int return it, nil } -func (ec *executionContext) unmarshalInputUserWhereInput(ctx context.Context, obj interface{}) (ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalInputUserWhereInput(ctx context.Context, obj any) (ent.UserWhereInput, error) { var it ent.UserWhereInput - 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 } @@ -14744,9 +14372,6 @@ func (ec *executionContext) _NamedNode(ctx context.Context, sel ast.SelectionSet case nil: return graphql.Null case *ent.Group: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"NamedNode", "Group"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } @@ -14761,73 +14386,46 @@ func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj case nil: return graphql.Null case *ent.Group: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Group"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Group(ctx, sel, obj) case *ent.BillProduct: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "BillProduct"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._BillProduct(ctx, sel, obj) case *ent.Category: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Category"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Category(ctx, sel, obj) case *ent.Friendship: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Friendship"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Friendship(ctx, sel, obj) case *ent.OneToMany: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "OneToMany"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._OneToMany(ctx, sel, obj) case *ent.Workspace: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Workspace"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Organization(ctx, sel, obj) case *ent.Project: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Project"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Project(ctx, sel, obj) case *ent.Todo: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Todo"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Todo(ctx, sel, obj) case *ent.User: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "User"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } @@ -14853,101 +14451,21 @@ func (ec *executionContext) _BillProduct(ctx context.Context, sel ast.SelectionS case "__typename": out.Values[i] = graphql.MarshalString("BillProduct") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._BillProduct_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._BillProduct_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._BillProduct_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._BillProduct_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "sku": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._BillProduct_sku(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._BillProduct_sku(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "quantity": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._BillProduct_quantity(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._BillProduct_quantity(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -14987,192 +14505,45 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("Category") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "text": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_text(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_text(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "status": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_status(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_status(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "config": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_config(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_config(ctx, field, obj) case "types": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_types(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_types(ctx, field, obj) case "duration": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_duration(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_duration(ctx, field, obj) case "count": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_count(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_count(ctx, field, obj) case "strings": + out.Values[i] = ec._Category_strings(ctx, field, obj) + case "todos": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Category_todos(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_strings(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + return res } - out.Values[i] = ec._Category_strings(ctx, field, obj) - case "todos": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -15185,20 +14556,31 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_todos(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Category_todos(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "subCategories": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Category_subCategories(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -15210,20 +14592,28 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_subCategories(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Category_subCategories(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "todosCount": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Category_todosCount(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -15235,14 +14625,15 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_todosCount(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Category_todosCount(ctx, field, obj) + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -15278,26 +14669,6 @@ func (ec *executionContext) _CategoryConfig(ctx context.Context, sel ast.Selecti case "__typename": out.Values[i] = graphql.MarshalString("CategoryConfig") case "maxMembers": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryConfig_maxMembers(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryConfig_maxMembers(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -15334,73 +14705,13 @@ func (ec *executionContext) _CategoryConnection(ctx context.Context, sel ast.Sel case "__typename": out.Values[i] = graphql.MarshalString("CategoryConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -15440,48 +14751,8 @@ func (ec *executionContext) _CategoryEdge(ctx context.Context, sel ast.Selection case "__typename": out.Values[i] = graphql.MarshalString("CategoryEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -15521,26 +14792,6 @@ func (ec *executionContext) _CategoryTypes(ctx context.Context, sel ast.Selectio case "__typename": out.Values[i] = graphql.MarshalString("CategoryTypes") case "public": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryTypes_public(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryTypes_public(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -15577,26 +14828,6 @@ func (ec *executionContext) _Custom(ctx context.Context, sel ast.SelectionSet, o case "__typename": out.Values[i] = graphql.MarshalString("Custom") case "info": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Custom_info(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Custom_info(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -15636,108 +14867,41 @@ func (ec *executionContext) _Friendship(ctx context.Context, sel ast.SelectionSe case "__typename": out.Values[i] = graphql.MarshalString("Friendship") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Friendship_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_createdAt(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Friendship_createdAt(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "userID": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_userID(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Friendship_userID(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "friendID": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_friendID(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Friendship_friendID(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "user": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Friendship_user(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -15749,20 +14913,31 @@ func (ec *executionContext) _Friendship(ctx context.Context, sel ast.SelectionSe deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_user(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Friendship_user(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "friend": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Friendship_friend(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -15774,17 +14949,15 @@ func (ec *executionContext) _Friendship(ctx context.Context, sel ast.SelectionSe deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_friend(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Friendship_friend(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -15820,73 +14993,13 @@ func (ec *executionContext) _FriendshipConnection(ctx context.Context, sel ast.S case "__typename": out.Values[i] = graphql.MarshalString("FriendshipConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -15926,48 +15039,8 @@ func (ec *executionContext) _FriendshipEdge(ctx context.Context, sel ast.Selecti case "__typename": out.Values[i] = graphql.MarshalString("FriendshipEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -16007,58 +15080,31 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob case "__typename": out.Values[i] = graphql.MarshalString("Group") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Group_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Group_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Group_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Group_name(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "users": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Group_users(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -16070,17 +15116,15 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Group_users(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Group_users(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -16116,73 +15160,13 @@ func (ec *executionContext) _GroupConnection(ctx context.Context, sel ast.Select case "__typename": out.Values[i] = graphql.MarshalString("GroupConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -16222,48 +15206,8 @@ func (ec *executionContext) _GroupEdge(ctx context.Context, sel ast.SelectionSet case "__typename": out.Values[i] = graphql.MarshalString("GroupEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -16311,8 +15255,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) case "__typename": out.Values[i] = graphql.MarshalString("Mutation") case "createCategory": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createCategory(ctx, field) }) @@ -16320,8 +15262,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "createTodo": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createTodo(ctx, field) }) @@ -16329,8 +15269,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateTodo": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateTodo(ctx, field) }) @@ -16338,8 +15276,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "clearTodos": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_clearTodos(ctx, field) }) @@ -16347,8 +15283,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateFriendship": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateFriendship(ctx, field) }) @@ -16390,8 +15324,30 @@ func (ec *executionContext) _OneToMany(ctx context.Context, sel ast.SelectionSet case "__typename": out.Values[i] = graphql.MarshalString("OneToMany") case "id": + out.Values[i] = ec._OneToMany_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "name": + out.Values[i] = ec._OneToMany_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "field2": + out.Values[i] = ec._OneToMany_field2(ctx, field, obj) + case "parent": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._OneToMany_parent(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -16403,66 +15359,27 @@ func (ec *executionContext) _OneToMany(ctx context.Context, sel ast.SelectionSet deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_id(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._OneToMany_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "name": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "children": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._OneToMany_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "field2": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_field2(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._OneToMany_children(ctx, field, obj) + return res } - out.Values[i] = ec._OneToMany_field2(ctx, field, obj) - case "parent": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -16475,36 +15392,15 @@ func (ec *executionContext) _OneToMany(ctx context.Context, sel ast.SelectionSet deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_parent(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._OneToMany_parent(ctx, field, obj) - case "children": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_children(ctx, field, obj) - }) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._OneToMany_children(ctx, field, obj) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -16540,73 +15436,13 @@ func (ec *executionContext) _OneToManyConnection(ctx context.Context, sel ast.Se case "__typename": out.Values[i] = graphql.MarshalString("OneToManyConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -16646,48 +15482,8 @@ func (ec *executionContext) _OneToManyEdge(ctx context.Context, sel ast.Selectio case "__typename": out.Values[i] = graphql.MarshalString("OneToManyEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -16727,51 +15523,11 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection case "__typename": out.Values[i] = graphql.MarshalString("Organization") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Organization_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Organization_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Organization_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Organization_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -16811,8 +15567,74 @@ func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("PageInfo") case "hasNextPage": + out.Values[i] = ec._PageInfo_hasNextPage(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "hasPreviousPage": + out.Values[i] = ec._PageInfo_hasPreviousPage(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "startCursor": + out.Values[i] = ec._PageInfo_startCursor(ctx, field, obj) + case "endCursor": + out.Values[i] = ec._PageInfo_endCursor(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var projectImplementors = []string{"Project", "Node"} + +func (ec *executionContext) _Project(ctx context.Context, sel ast.SelectionSet, obj *ent.Project) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, projectImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Project") + case "id": + out.Values[i] = ec._Project_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "todos": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Project_todos(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -16824,170 +15646,15 @@ func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_hasNextPage(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._PageInfo_hasNextPage(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "hasPreviousPage": - field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_hasPreviousPage(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._PageInfo_hasPreviousPage(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "startCursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_startCursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._PageInfo_startCursor(ctx, field, obj) - case "endCursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_endCursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._PageInfo_endCursor(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var projectImplementors = []string{"Project", "Node"} - -func (ec *executionContext) _Project(ctx context.Context, sel ast.SelectionSet, obj *ent.Project) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, projectImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Project") - case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Project_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Project_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "todos": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Project_todos(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Project_todos(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -17033,99 +15700,225 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr case "node": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_node(ctx, field) - }) + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_node(ctx, field) + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "nodes": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_nodes(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_nodes(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "billProducts": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_billProducts(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_billProducts(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "categories": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_categories(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_categories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "groups": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_groups(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_groups(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "oneToMany": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_oneToMany(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_oneToMany(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "todos": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_todos(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_todos(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "users": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_users(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_users(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "ping": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_ping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_ping(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "todosWithJoins": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_todosWithJoins(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_todosWithJoins(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "__type": - field := field + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "__type": out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Query___type(ctx, field) }) case "__schema": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Query___schema(ctx, field) }) @@ -17164,290 +15957,60 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj case "__typename": out.Values[i] = graphql.MarshalString("Todo") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_createdAt(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_createdAt(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "status": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_status(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_status(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "priorityOrder": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_priorityOrder(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_priorityOrder(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "text": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_text(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_text(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "categoryID": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_categoryID(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_categoryID(ctx, field, obj) case "category_id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_category_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_category_id(ctx, field, obj) case "categoryX": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_categoryX(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_categoryX(ctx, field, obj) case "init": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_init(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_init(ctx, field, obj) case "custom": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_custom(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_custom(ctx, field, obj) case "customp": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_customp(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_customp(ctx, field, obj) case "value": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_value(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_value(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "parent": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_parent(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -17459,17 +16022,31 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_parent(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_parent(ctx, field, obj) + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "children": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_children(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -17481,20 +16058,28 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_children(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_children(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "category": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_category(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -17506,17 +16091,28 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_category(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_category(ctx, field, obj) + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "extendedField": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_extendedField(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -17528,14 +16124,15 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_extendedField(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_extendedField(ctx, field, obj) + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -17571,73 +16168,13 @@ func (ec *executionContext) _TodoConnection(ctx context.Context, sel ast.Selecti case "__typename": out.Values[i] = graphql.MarshalString("TodoConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17677,48 +16214,8 @@ func (ec *executionContext) _TodoEdge(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("TodoEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17758,129 +16255,42 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj case "__typename": out.Values[i] = graphql.MarshalString("User") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._User_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._User_name(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "username": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_username(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._User_username(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "requiredMetadata": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_requiredMetadata(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._User_requiredMetadata(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "metadata": + out.Values[i] = ec._User_metadata(ctx, field, obj) + case "groups": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._User_groups(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_metadata(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + return res } - out.Values[i] = ec._User_metadata(ctx, field, obj) - case "groups": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -17893,20 +16303,31 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_groups(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._User_groups(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "friends": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._User_friends(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -17918,20 +16339,31 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_friends(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._User_friends(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "friendships": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._User_friendships(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -17943,17 +16375,15 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_friendships(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._User_friendships(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -17989,73 +16419,13 @@ func (ec *executionContext) _UserConnection(ctx context.Context, sel ast.Selecti case "__typename": out.Values[i] = graphql.MarshalString("UserConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._UserConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._UserConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._UserConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -18095,48 +16465,8 @@ func (ec *executionContext) _UserEdge(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("UserEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._UserEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._UserEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -18176,123 +16506,23 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS case "__typename": out.Values[i] = graphql.MarshalString("__Directive") case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_description(ctx, field, obj) case "locations": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_locations(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_locations(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "args": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_args(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_args(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "isRepeatable": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_isRepeatable(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -18332,98 +16562,18 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS case "__typename": out.Values[i] = graphql.MarshalString("__EnumValue") case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___EnumValue_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___EnumValue_description(ctx, field, obj) case "isDeprecated": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_isDeprecated(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "deprecationReason": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_deprecationReason(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -18460,148 +16610,28 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("__Field") case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_description(ctx, field, obj) case "args": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_args(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_args(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "type": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_type(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_type(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "isDeprecated": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_isDeprecated(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "deprecationReason": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_deprecationReason(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -18638,98 +16668,18 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection case "__typename": out.Values[i] = graphql.MarshalString("__InputValue") case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___InputValue_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___InputValue_description(ctx, field, obj) case "type": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_type(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___InputValue_type(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "defaultValue": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_defaultValue(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -18766,142 +16716,22 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("__Schema") case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_description(ctx, field, obj) case "types": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_types(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_types(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "queryType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_queryType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_queryType(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "mutationType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_mutationType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) case "subscriptionType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_subscriptionType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) case "directives": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_directives(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_directives(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -18941,227 +16771,27 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o case "__typename": out.Values[i] = graphql.MarshalString("__Type") case "kind": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_kind(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_kind(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_name(ctx, field, obj) case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_description(ctx, field, obj) case "fields": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_fields(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_fields(ctx, field, obj) case "interfaces": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_interfaces(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_interfaces(ctx, field, obj) case "possibleTypes": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_possibleTypes(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) case "enumValues": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_enumValues(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_enumValues(ctx, field, obj) case "inputFields": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_inputFields(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_inputFields(ctx, field, obj) case "ofType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_ofType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_ofType(ctx, field, obj) case "specifiedByURL": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_specifiedByURL(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -19193,7 +16823,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o func (ec *executionContext) marshalNBillProduct2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐBillProductᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.BillProduct) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -19244,12 +16874,12 @@ func (ec *executionContext) marshalNBillProduct2ᚖentgoᚗioᚋcontribᚋentgql return ec._BillProduct(ctx, sel, v) } -func (ec *executionContext) unmarshalNBillProductWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐBillProductWhereInput(ctx context.Context, v interface{}) (*ent.BillProductWhereInput, error) { +func (ec *executionContext) unmarshalNBillProductWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐBillProductWhereInput(ctx context.Context, v any) (*ent.BillProductWhereInput, error) { res, err := ec.unmarshalInputBillProductWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -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) } @@ -19278,7 +16908,7 @@ func (ec *executionContext) marshalNCategory2ᚖentgoᚗioᚋcontribᚋentgqlᚋ return ec._Category(ctx, sel, v) } -func (ec *executionContext) unmarshalNCategoryConfigInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfig(ctx context.Context, v interface{}) (*schematype.CategoryConfig, error) { +func (ec *executionContext) unmarshalNCategoryConfigInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfig(ctx context.Context, v any) (*schematype.CategoryConfig, error) { res, err := ec.unmarshalInputCategoryConfigInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -19297,12 +16927,12 @@ func (ec *executionContext) marshalNCategoryConnection2ᚖentgoᚗioᚋcontrib return ec._CategoryConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNCategoryOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCategoryOrder(ctx context.Context, v interface{}) (*ent.CategoryOrder, error) { +func (ec *executionContext) unmarshalNCategoryOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCategoryOrder(ctx context.Context, v any) (*ent.CategoryOrder, error) { res, err := ec.unmarshalInputCategoryOrder(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCategoryOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCategoryOrderField(ctx context.Context, v interface{}) (*ent.CategoryOrderField, error) { +func (ec *executionContext) unmarshalNCategoryOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCategoryOrderField(ctx context.Context, v any) (*ent.CategoryOrderField, error) { var res = new(ent.CategoryOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -19318,7 +16948,7 @@ func (ec *executionContext) marshalNCategoryOrderField2ᚖentgoᚗioᚋcontrib return v } -func (ec *executionContext) unmarshalNCategoryStatus2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋcategoryᚐStatus(ctx context.Context, v interface{}) (category.Status, error) { +func (ec *executionContext) unmarshalNCategoryStatus2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋcategoryᚐStatus(ctx context.Context, v any) (category.Status, error) { var res category.Status err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -19328,27 +16958,27 @@ func (ec *executionContext) marshalNCategoryStatus2entgoᚗioᚋcontribᚋentgql return v } -func (ec *executionContext) unmarshalNCategoryWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCategoryWhereInput(ctx context.Context, v interface{}) (*ent.CategoryWhereInput, error) { +func (ec *executionContext) unmarshalNCategoryWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCategoryWhereInput(ctx context.Context, v any) (*ent.CategoryWhereInput, error) { res, err := ec.unmarshalInputCategoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateCategoryInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCreateCategoryInput(ctx context.Context, v interface{}) (ent.CreateCategoryInput, error) { +func (ec *executionContext) unmarshalNCreateCategoryInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCreateCategoryInput(ctx context.Context, v any) (ent.CreateCategoryInput, error) { res, err := ec.unmarshalInputCreateCategoryInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateTodoInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCreateTodoInput(ctx context.Context, v interface{}) (ent.CreateTodoInput, error) { +func (ec *executionContext) unmarshalNCreateTodoInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCreateTodoInput(ctx context.Context, v any) (ent.CreateTodoInput, error) { res, err := ec.unmarshalInputCreateTodoInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateTodoInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCreateTodoInput(ctx context.Context, v interface{}) (*ent.CreateTodoInput, error) { +func (ec *executionContext) unmarshalNCreateTodoInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCreateTodoInput(ctx context.Context, v any) (*ent.CreateTodoInput, error) { res, err := ec.unmarshalInputCreateTodoInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v interface{}) (entgql.Cursor[int], error) { +func (ec *executionContext) unmarshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v any) (entgql.Cursor[int], error) { var res entgql.Cursor[int] err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -19362,7 +16992,7 @@ func (ec *executionContext) marshalNCustom2entgoᚗioᚋcontribᚋentgqlᚋinter return ec._Custom(ctx, sel, &v) } -func (ec *executionContext) unmarshalNDuration2timeᚐDuration(ctx context.Context, v interface{}) (time.Duration, error) { +func (ec *executionContext) unmarshalNDuration2timeᚐDuration(ctx context.Context, v any) (time.Duration, error) { res, err := durationgql.UnmarshalDuration(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -19401,7 +17031,7 @@ func (ec *executionContext) marshalNFriendshipConnection2ᚖentgoᚗioᚋcontrib return ec._FriendshipConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNFriendshipWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐFriendshipWhereInput(ctx context.Context, v interface{}) (*ent.FriendshipWhereInput, error) { +func (ec *executionContext) unmarshalNFriendshipWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐFriendshipWhereInput(ctx context.Context, v any) (*ent.FriendshipWhereInput, error) { res, err := ec.unmarshalInputFriendshipWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -19420,12 +17050,12 @@ func (ec *executionContext) marshalNGroupConnection2ᚖentgoᚗioᚋcontribᚋen return ec._GroupConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNGroupWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐGroupWhereInput(ctx context.Context, v interface{}) (*ent.GroupWhereInput, error) { +func (ec *executionContext) unmarshalNGroupWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐGroupWhereInput(ctx context.Context, v any) (*ent.GroupWhereInput, error) { res, err := ec.unmarshalInputGroupWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -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) } @@ -19440,8 +17070,8 @@ func (ec *executionContext) marshalNID2int(ctx context.Context, sel ast.Selectio return res } -func (ec *executionContext) unmarshalNID2ᚕintᚄ(ctx context.Context, v interface{}) ([]int, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNID2ᚕintᚄ(ctx context.Context, v any) ([]int, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -19472,7 +17102,7 @@ func (ec *executionContext) marshalNID2ᚕintᚄ(ctx context.Context, sel ast.Se return ret } -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) } @@ -19487,7 +17117,7 @@ func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.Selecti 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]interface{}, error) { res, err := graphql.UnmarshalMap(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -19511,7 +17141,7 @@ func (ec *executionContext) marshalNMap2map(ctx context.Context, sel ast.Selecti func (ec *executionContext) marshalNNode2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐNoder(ctx context.Context, sel ast.SelectionSet, v []ent.Noder) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -19570,7 +17200,7 @@ func (ec *executionContext) marshalNOneToManyConnection2ᚖentgoᚗioᚋcontrib return ec._OneToManyConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNOneToManyOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐOneToManyOrderField(ctx context.Context, v interface{}) (*ent.OneToManyOrderField, error) { +func (ec *executionContext) unmarshalNOneToManyOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐOneToManyOrderField(ctx context.Context, v any) (*ent.OneToManyOrderField, error) { var res = new(ent.OneToManyOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -19586,12 +17216,12 @@ func (ec *executionContext) marshalNOneToManyOrderField2ᚖentgoᚗioᚋcontrib return v } -func (ec *executionContext) unmarshalNOneToManyWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐOneToManyWhereInput(ctx context.Context, v interface{}) (*ent.OneToManyWhereInput, error) { +func (ec *executionContext) unmarshalNOneToManyWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐOneToManyWhereInput(ctx context.Context, v any) (*ent.OneToManyWhereInput, error) { res, err := ec.unmarshalInputOneToManyWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx context.Context, v interface{}) (entgql.OrderDirection, error) { +func (ec *executionContext) unmarshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx context.Context, v any) (entgql.OrderDirection, error) { var res entgql.OrderDirection err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -19601,7 +17231,7 @@ func (ec *executionContext) marshalNOrderDirection2entgoᚗioᚋcontribᚋentgql return v } -func (ec *executionContext) unmarshalNOrganizationWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐOrganizationWhereInput(ctx context.Context, v interface{}) (*ent.OrganizationWhereInput, error) { +func (ec *executionContext) unmarshalNOrganizationWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐOrganizationWhereInput(ctx context.Context, v any) (*ent.OrganizationWhereInput, error) { res, err := ec.unmarshalInputOrganizationWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -19610,12 +17240,12 @@ func (ec *executionContext) marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPag return ec._PageInfo(ctx, sel, &v) } -func (ec *executionContext) unmarshalNProjectWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐProjectWhereInput(ctx context.Context, v interface{}) (*ent.ProjectWhereInput, error) { +func (ec *executionContext) unmarshalNProjectWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐProjectWhereInput(ctx context.Context, v any) (*ent.ProjectWhereInput, error) { res, err := ec.unmarshalInputProjectWhereInput(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) } @@ -19630,8 +17260,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) } @@ -19662,7 +17292,7 @@ func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel return ret } -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) } @@ -19705,12 +17335,12 @@ func (ec *executionContext) marshalNTodoConnection2ᚖentgoᚗioᚋcontribᚋent return ec._TodoConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNTodoOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐTodoOrder(ctx context.Context, v interface{}) (*ent.TodoOrder, error) { +func (ec *executionContext) unmarshalNTodoOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐTodoOrder(ctx context.Context, v any) (*ent.TodoOrder, error) { res, err := ec.unmarshalInputTodoOrder(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNTodoOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐTodoOrderField(ctx context.Context, v interface{}) (*ent.TodoOrderField, error) { +func (ec *executionContext) unmarshalNTodoOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐTodoOrderField(ctx context.Context, v any) (*ent.TodoOrderField, error) { var res = new(ent.TodoOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -19726,7 +17356,7 @@ func (ec *executionContext) marshalNTodoOrderField2ᚖentgoᚗioᚋcontribᚋent return v } -func (ec *executionContext) unmarshalNTodoStatus2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatus(ctx context.Context, v interface{}) (todo.Status, error) { +func (ec *executionContext) unmarshalNTodoStatus2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatus(ctx context.Context, v any) (todo.Status, error) { var res todo.Status err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -19736,12 +17366,12 @@ func (ec *executionContext) marshalNTodoStatus2entgoᚗioᚋcontribᚋentgqlᚋi return v } -func (ec *executionContext) unmarshalNTodoWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐTodoWhereInput(ctx context.Context, v interface{}) (*ent.TodoWhereInput, error) { +func (ec *executionContext) unmarshalNTodoWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐTodoWhereInput(ctx context.Context, v any) (*ent.TodoWhereInput, error) { res, err := ec.unmarshalInputTodoWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -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 := uuidgql.UnmarshalUUID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -19756,7 +17386,7 @@ func (ec *executionContext) marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx return res } -func (ec *executionContext) unmarshalNUint642uint64(ctx context.Context, v interface{}) (uint64, error) { +func (ec *executionContext) unmarshalNUint642uint64(ctx context.Context, v any) (uint64, error) { res, err := graphql.UnmarshalUint64(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -19771,12 +17401,12 @@ func (ec *executionContext) marshalNUint642uint64(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalNUpdateFriendshipInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐUpdateFriendshipInput(ctx context.Context, v interface{}) (ent.UpdateFriendshipInput, error) { +func (ec *executionContext) unmarshalNUpdateFriendshipInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐUpdateFriendshipInput(ctx context.Context, v any) (ent.UpdateFriendshipInput, error) { res, err := ec.unmarshalInputUpdateFriendshipInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNUpdateTodoInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐUpdateTodoInput(ctx context.Context, v interface{}) (ent.UpdateTodoInput, error) { +func (ec *executionContext) unmarshalNUpdateTodoInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐUpdateTodoInput(ctx context.Context, v any) (ent.UpdateTodoInput, error) { res, err := ec.unmarshalInputUpdateTodoInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -19805,7 +17435,7 @@ func (ec *executionContext) marshalNUserConnection2ᚖentgoᚗioᚋcontribᚋent return ec._UserConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNUserOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐUserOrderField(ctx context.Context, v interface{}) (*ent.UserOrderField, error) { +func (ec *executionContext) unmarshalNUserOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐUserOrderField(ctx context.Context, v any) (*ent.UserOrderField, error) { var res = new(ent.UserOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -19821,7 +17451,7 @@ func (ec *executionContext) marshalNUserOrderField2ᚖentgoᚗioᚋcontribᚋent return v } -func (ec *executionContext) unmarshalNUserWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐUserWhereInput(ctx context.Context, v interface{}) (*ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalNUserWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐUserWhereInput(ctx context.Context, v any) (*ent.UserWhereInput, error) { res, err := ec.unmarshalInputUserWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -19833,7 +17463,7 @@ func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlge func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -19874,7 +17504,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) } @@ -19889,8 +17519,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) } @@ -19909,7 +17539,7 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -19965,7 +17595,7 @@ func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlg func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -20013,7 +17643,7 @@ func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋg func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -20064,7 +17694,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) } @@ -20079,11 +17709,11 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBillProductWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐBillProductWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.BillProductWhereInput, error) { +func (ec *executionContext) unmarshalOBillProductWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐBillProductWhereInputᚄ(ctx context.Context, v any) ([]*ent.BillProductWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -20099,7 +17729,7 @@ func (ec *executionContext) unmarshalOBillProductWhereInput2ᚕᚖentgoᚗioᚋc return res, nil } -func (ec *executionContext) unmarshalOBillProductWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐBillProductWhereInput(ctx context.Context, v interface{}) (*ent.BillProductWhereInput, error) { +func (ec *executionContext) unmarshalOBillProductWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐBillProductWhereInput(ctx context.Context, v any) (*ent.BillProductWhereInput, error) { if v == nil { return nil, nil } @@ -20107,7 +17737,7 @@ func (ec *executionContext) unmarshalOBillProductWhereInput2ᚖentgoᚗioᚋcont return &res, graphql.ErrorOnPath(ctx, err) } -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) } @@ -20117,7 +17747,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 } @@ -20147,11 +17777,11 @@ func (ec *executionContext) marshalOCategoryConfig2ᚖentgoᚗioᚋcontribᚋent return ec._CategoryConfig(ctx, sel, v) } -func (ec *executionContext) unmarshalOCategoryConfigInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfigᚄ(ctx context.Context, v interface{}) ([]*schematype.CategoryConfig, error) { +func (ec *executionContext) unmarshalOCategoryConfigInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfigᚄ(ctx context.Context, v any) ([]*schematype.CategoryConfig, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -20167,7 +17797,7 @@ func (ec *executionContext) unmarshalOCategoryConfigInput2ᚕᚖentgoᚗioᚋcon return res, nil } -func (ec *executionContext) unmarshalOCategoryConfigInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfig(ctx context.Context, v interface{}) (*schematype.CategoryConfig, error) { +func (ec *executionContext) unmarshalOCategoryConfigInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfig(ctx context.Context, v any) (*schematype.CategoryConfig, error) { if v == nil { return nil, nil } @@ -20181,7 +17811,7 @@ func (ec *executionContext) marshalOCategoryEdge2ᚕᚖentgoᚗioᚋcontribᚋen } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -20223,11 +17853,11 @@ func (ec *executionContext) marshalOCategoryEdge2ᚖentgoᚗioᚋcontribᚋentgq return ec._CategoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOCategoryOrder2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCategoryOrderᚄ(ctx context.Context, v interface{}) ([]*ent.CategoryOrder, error) { +func (ec *executionContext) unmarshalOCategoryOrder2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCategoryOrderᚄ(ctx context.Context, v any) ([]*ent.CategoryOrder, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -20243,11 +17873,11 @@ func (ec *executionContext) unmarshalOCategoryOrder2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOCategoryStatus2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋcategoryᚐStatusᚄ(ctx context.Context, v interface{}) ([]category.Status, error) { +func (ec *executionContext) unmarshalOCategoryStatus2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋcategoryᚐStatusᚄ(ctx context.Context, v any) ([]category.Status, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -20269,7 +17899,7 @@ func (ec *executionContext) marshalOCategoryStatus2ᚕentgoᚗioᚋcontribᚋent } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -20310,7 +17940,7 @@ func (ec *executionContext) marshalOCategoryStatus2ᚕentgoᚗioᚋcontribᚋent return ret } -func (ec *executionContext) unmarshalOCategoryStatus2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋcategoryᚐStatus(ctx context.Context, v interface{}) (*category.Status, error) { +func (ec *executionContext) unmarshalOCategoryStatus2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋcategoryᚐStatus(ctx context.Context, v any) (*category.Status, error) { if v == nil { return nil, nil } @@ -20333,7 +17963,7 @@ func (ec *executionContext) marshalOCategoryTypes2ᚖentgoᚗioᚋcontribᚋentg return ec._CategoryTypes(ctx, sel, v) } -func (ec *executionContext) unmarshalOCategoryTypesInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryTypes(ctx context.Context, v interface{}) (*schematype.CategoryTypes, error) { +func (ec *executionContext) unmarshalOCategoryTypesInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryTypes(ctx context.Context, v any) (*schematype.CategoryTypes, error) { if v == nil { return nil, nil } @@ -20341,11 +17971,11 @@ func (ec *executionContext) unmarshalOCategoryTypesInput2ᚖentgoᚗioᚋcontrib return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOCategoryWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCategoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.CategoryWhereInput, error) { +func (ec *executionContext) unmarshalOCategoryWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCategoryWhereInputᚄ(ctx context.Context, v any) ([]*ent.CategoryWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -20361,7 +17991,7 @@ func (ec *executionContext) unmarshalOCategoryWhereInput2ᚕᚖentgoᚗioᚋcont return res, nil } -func (ec *executionContext) unmarshalOCategoryWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCategoryWhereInput(ctx context.Context, v interface{}) (*ent.CategoryWhereInput, error) { +func (ec *executionContext) unmarshalOCategoryWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCategoryWhereInput(ctx context.Context, v any) (*ent.CategoryWhereInput, error) { if v == nil { return nil, nil } @@ -20369,11 +17999,11 @@ func (ec *executionContext) unmarshalOCategoryWhereInput2ᚖentgoᚗioᚋcontrib return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOCreateTodoInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCreateTodoInputᚄ(ctx context.Context, v interface{}) ([]*ent.CreateTodoInput, error) { +func (ec *executionContext) unmarshalOCreateTodoInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐCreateTodoInputᚄ(ctx context.Context, v any) ([]*ent.CreateTodoInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -20389,7 +18019,7 @@ func (ec *executionContext) unmarshalOCreateTodoInput2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v interface{}) (*entgql.Cursor[int], error) { +func (ec *executionContext) unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v any) (*entgql.Cursor[int], error) { if v == nil { return nil, nil } @@ -20411,7 +18041,7 @@ func (ec *executionContext) marshalOCustom2ᚕentgoᚗioᚋcontribᚋentgqlᚋin } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -20458,7 +18088,7 @@ func (ec *executionContext) marshalOCustom2ᚕᚖentgoᚗioᚋcontribᚋentgql } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -20500,7 +18130,7 @@ func (ec *executionContext) marshalOCustom2ᚖentgoᚗioᚋcontribᚋentgqlᚋin return ec._Custom(ctx, sel, v) } -func (ec *executionContext) unmarshalODuration2timeᚐDuration(ctx context.Context, v interface{}) (time.Duration, error) { +func (ec *executionContext) unmarshalODuration2timeᚐDuration(ctx context.Context, v any) (time.Duration, error) { res, err := durationgql.UnmarshalDuration(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -20510,11 +18140,11 @@ func (ec *executionContext) marshalODuration2timeᚐDuration(ctx context.Context return res } -func (ec *executionContext) unmarshalODuration2ᚕtimeᚐDurationᚄ(ctx context.Context, v interface{}) ([]time.Duration, error) { +func (ec *executionContext) unmarshalODuration2ᚕtimeᚐDurationᚄ(ctx context.Context, v any) ([]time.Duration, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -20548,7 +18178,7 @@ func (ec *executionContext) marshalODuration2ᚕtimeᚐDurationᚄ(ctx context.C return ret } -func (ec *executionContext) unmarshalODuration2ᚖtimeᚐDuration(ctx context.Context, v interface{}) (*time.Duration, error) { +func (ec *executionContext) unmarshalODuration2ᚖtimeᚐDuration(ctx context.Context, v any) (*time.Duration, error) { if v == nil { return nil, nil } @@ -20577,7 +18207,7 @@ func (ec *executionContext) marshalOFriendshipEdge2ᚕᚖentgoᚗioᚋcontribᚋ } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -20619,11 +18249,11 @@ func (ec *executionContext) marshalOFriendshipEdge2ᚖentgoᚗioᚋcontribᚋent return ec._FriendshipEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐFriendshipWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.FriendshipWhereInput, error) { +func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐFriendshipWhereInputᚄ(ctx context.Context, v any) ([]*ent.FriendshipWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -20639,7 +18269,7 @@ func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚕᚖentgoᚗioᚋco return res, nil } -func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐFriendshipWhereInput(ctx context.Context, v interface{}) (*ent.FriendshipWhereInput, error) { +func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐFriendshipWhereInput(ctx context.Context, v any) (*ent.FriendshipWhereInput, error) { if v == nil { return nil, nil } @@ -20660,7 +18290,7 @@ func (ec *executionContext) marshalOGroupEdge2ᚕᚖentgoᚗioᚋcontribᚋentgq } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -20702,11 +18332,11 @@ func (ec *executionContext) marshalOGroupEdge2ᚖentgoᚗioᚋcontribᚋentgql return ec._GroupEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOGroupWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐGroupWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.GroupWhereInput, error) { +func (ec *executionContext) unmarshalOGroupWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐGroupWhereInputᚄ(ctx context.Context, v any) ([]*ent.GroupWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -20722,7 +18352,7 @@ func (ec *executionContext) unmarshalOGroupWhereInput2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOGroupWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐGroupWhereInput(ctx context.Context, v interface{}) (*ent.GroupWhereInput, error) { +func (ec *executionContext) unmarshalOGroupWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐGroupWhereInput(ctx context.Context, v any) (*ent.GroupWhereInput, error) { if v == nil { return nil, nil } @@ -20730,7 +18360,7 @@ func (ec *executionContext) unmarshalOGroupWhereInput2ᚖentgoᚗioᚋcontribᚋ return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOID2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalOID2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalIntID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -20740,11 +18370,11 @@ func (ec *executionContext) marshalOID2int(ctx context.Context, sel ast.Selectio return res } -func (ec *executionContext) unmarshalOID2ᚕintᚄ(ctx context.Context, v interface{}) ([]int, error) { +func (ec *executionContext) unmarshalOID2ᚕ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) } @@ -20778,7 +18408,7 @@ func (ec *executionContext) marshalOID2ᚕintᚄ(ctx context.Context, sel ast.Se return ret } -func (ec *executionContext) unmarshalOID2ᚖint(ctx context.Context, v interface{}) (*int, error) { +func (ec *executionContext) unmarshalOID2ᚖint(ctx context.Context, v any) (*int, error) { if v == nil { return nil, nil } @@ -20794,7 +18424,7 @@ func (ec *executionContext) marshalOID2ᚖint(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -20804,11 +18434,11 @@ func (ec *executionContext) marshalOInt2int(ctx context.Context, sel ast.Selecti 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 } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -20842,7 +18472,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 } @@ -20858,7 +18488,7 @@ func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.Sele return res } -func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v any) (map[string]interface{}, error) { if v == nil { return nil, nil } @@ -20887,7 +18517,7 @@ func (ec *executionContext) marshalOOneToMany2ᚕᚖentgoᚗioᚋcontribᚋentgq } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -20941,7 +18571,7 @@ func (ec *executionContext) marshalOOneToManyEdge2ᚕᚖentgoᚗioᚋcontribᚋe } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -20983,7 +18613,7 @@ func (ec *executionContext) marshalOOneToManyEdge2ᚖentgoᚗioᚋcontribᚋentg return ec._OneToManyEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOOneToManyOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐOneToManyOrder(ctx context.Context, v interface{}) (*ent.OneToManyOrder, error) { +func (ec *executionContext) unmarshalOOneToManyOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐOneToManyOrder(ctx context.Context, v any) (*ent.OneToManyOrder, error) { if v == nil { return nil, nil } @@ -20991,11 +18621,11 @@ func (ec *executionContext) unmarshalOOneToManyOrder2ᚖentgoᚗioᚋcontribᚋe return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐOneToManyWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.OneToManyWhereInput, error) { +func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐOneToManyWhereInputᚄ(ctx context.Context, v any) ([]*ent.OneToManyWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21011,7 +18641,7 @@ func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚕᚖentgoᚗioᚋcon return res, nil } -func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐOneToManyWhereInput(ctx context.Context, v interface{}) (*ent.OneToManyWhereInput, error) { +func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐOneToManyWhereInput(ctx context.Context, v any) (*ent.OneToManyWhereInput, error) { if v == nil { return nil, nil } @@ -21019,11 +18649,11 @@ func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚖentgoᚗioᚋcontri return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐOrganizationWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.OrganizationWhereInput, error) { +func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐOrganizationWhereInputᚄ(ctx context.Context, v any) ([]*ent.OrganizationWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21039,7 +18669,7 @@ func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚕᚖentgoᚗioᚋ return res, nil } -func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐOrganizationWhereInput(ctx context.Context, v interface{}) (*ent.OrganizationWhereInput, error) { +func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐOrganizationWhereInput(ctx context.Context, v any) (*ent.OrganizationWhereInput, error) { if v == nil { return nil, nil } @@ -21047,11 +18677,11 @@ func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚖentgoᚗioᚋcon return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOProjectWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐProjectWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.ProjectWhereInput, error) { +func (ec *executionContext) unmarshalOProjectWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐProjectWhereInputᚄ(ctx context.Context, v any) ([]*ent.ProjectWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21067,7 +18697,7 @@ func (ec *executionContext) unmarshalOProjectWhereInput2ᚕᚖentgoᚗioᚋcontr return res, nil } -func (ec *executionContext) unmarshalOProjectWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐProjectWhereInput(ctx context.Context, v interface{}) (*ent.ProjectWhereInput, error) { +func (ec *executionContext) unmarshalOProjectWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐProjectWhereInput(ctx context.Context, v any) (*ent.ProjectWhereInput, error) { if v == nil { return nil, nil } @@ -21075,7 +18705,7 @@ func (ec *executionContext) unmarshalOProjectWhereInput2ᚖentgoᚗioᚋcontrib 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) } @@ -21085,11 +18715,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) } @@ -21123,7 +18753,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 } @@ -21139,11 +18769,11 @@ func (ec *executionContext) marshalOString2ᚖstring(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 } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21177,7 +18807,7 @@ func (ec *executionContext) marshalOTime2ᚕtimeᚐTimeᚄ(ctx context.Context, return ret } -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 } @@ -21206,7 +18836,7 @@ func (ec *executionContext) marshalOTodoEdge2ᚕᚖentgoᚗioᚋcontribᚋentgql } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21248,11 +18878,11 @@ func (ec *executionContext) marshalOTodoEdge2ᚖentgoᚗioᚋcontribᚋentgqlᚋ return ec._TodoEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOTodoOrder2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐTodoOrderᚄ(ctx context.Context, v interface{}) ([]*ent.TodoOrder, error) { +func (ec *executionContext) unmarshalOTodoOrder2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐTodoOrderᚄ(ctx context.Context, v any) ([]*ent.TodoOrder, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21268,11 +18898,11 @@ func (ec *executionContext) unmarshalOTodoOrder2ᚕᚖentgoᚗioᚋcontribᚋent return res, nil } -func (ec *executionContext) unmarshalOTodoStatus2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatusᚄ(ctx context.Context, v interface{}) ([]todo.Status, error) { +func (ec *executionContext) unmarshalOTodoStatus2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatusᚄ(ctx context.Context, v any) ([]todo.Status, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21294,7 +18924,7 @@ func (ec *executionContext) marshalOTodoStatus2ᚕentgoᚗioᚋcontribᚋentgql } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21335,7 +18965,7 @@ func (ec *executionContext) marshalOTodoStatus2ᚕentgoᚗioᚋcontribᚋentgql return ret } -func (ec *executionContext) unmarshalOTodoStatus2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatus(ctx context.Context, v interface{}) (*todo.Status, error) { +func (ec *executionContext) unmarshalOTodoStatus2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatus(ctx context.Context, v any) (*todo.Status, error) { if v == nil { return nil, nil } @@ -21351,11 +18981,11 @@ func (ec *executionContext) marshalOTodoStatus2ᚖentgoᚗioᚋcontribᚋentgql return v } -func (ec *executionContext) unmarshalOTodoWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐTodoWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.TodoWhereInput, error) { +func (ec *executionContext) unmarshalOTodoWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐTodoWhereInputᚄ(ctx context.Context, v any) ([]*ent.TodoWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21371,7 +19001,7 @@ func (ec *executionContext) unmarshalOTodoWhereInput2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOTodoWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐTodoWhereInput(ctx context.Context, v interface{}) (*ent.TodoWhereInput, error) { +func (ec *executionContext) unmarshalOTodoWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐTodoWhereInput(ctx context.Context, v any) (*ent.TodoWhereInput, error) { if v == nil { return nil, nil } @@ -21379,11 +19009,11 @@ func (ec *executionContext) unmarshalOTodoWhereInput2ᚖentgoᚗioᚋcontribᚋe return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx context.Context, v interface{}) ([]uuid.UUID, error) { +func (ec *executionContext) unmarshalOUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx context.Context, v any) ([]uuid.UUID, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21417,7 +19047,7 @@ func (ec *executionContext) marshalOUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUID return ret } -func (ec *executionContext) unmarshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, v interface{}) (*uuid.UUID, error) { +func (ec *executionContext) unmarshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, v any) (*uuid.UUID, error) { if v == nil { return nil, nil } @@ -21433,7 +19063,7 @@ func (ec *executionContext) marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID( return res } -func (ec *executionContext) unmarshalOUint642uint64(ctx context.Context, v interface{}) (uint64, error) { +func (ec *executionContext) unmarshalOUint642uint64(ctx context.Context, v any) (uint64, error) { res, err := graphql.UnmarshalUint64(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -21443,11 +19073,11 @@ func (ec *executionContext) marshalOUint642uint64(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOUint642ᚕuint64ᚄ(ctx context.Context, v interface{}) ([]uint64, error) { +func (ec *executionContext) unmarshalOUint642ᚕuint64ᚄ(ctx context.Context, v any) ([]uint64, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21481,7 +19111,7 @@ func (ec *executionContext) marshalOUint642ᚕuint64ᚄ(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalOUint642ᚖuint64(ctx context.Context, v interface{}) (*uint64, error) { +func (ec *executionContext) unmarshalOUint642ᚖuint64(ctx context.Context, v any) (*uint64, error) { if v == nil { return nil, nil } @@ -21510,7 +19140,7 @@ func (ec *executionContext) marshalOUserEdge2ᚕᚖentgoᚗioᚋcontribᚋentgql } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21552,7 +19182,7 @@ func (ec *executionContext) marshalOUserEdge2ᚖentgoᚗioᚋcontribᚋentgqlᚋ return ec._UserEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOUserOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐUserOrder(ctx context.Context, v interface{}) (*ent.UserOrder, error) { +func (ec *executionContext) unmarshalOUserOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐUserOrder(ctx context.Context, v any) (*ent.UserOrder, error) { if v == nil { return nil, nil } @@ -21560,11 +19190,11 @@ func (ec *executionContext) unmarshalOUserOrder2ᚖentgoᚗioᚋcontribᚋentgql return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOUserWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐUserWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalOUserWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐUserWhereInputᚄ(ctx context.Context, v any) ([]*ent.UserWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21580,7 +19210,7 @@ func (ec *executionContext) unmarshalOUserWhereInput2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOUserWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐUserWhereInput(ctx context.Context, v interface{}) (*ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalOUserWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚐUserWhereInput(ctx context.Context, v any) (*ent.UserWhereInput, error) { if v == nil { return nil, nil } @@ -21594,7 +19224,7 @@ func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgq } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21641,7 +19271,7 @@ func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgen } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21688,7 +19318,7 @@ func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋg } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21742,7 +19372,7 @@ func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgen } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } diff --git a/entgql/internal/todo/gqlgen.yml b/entgql/internal/todo/gqlgen.yml index 293898ae5..144c3c453 100644 --- a/entgql/internal/todo/gqlgen.yml +++ b/entgql/internal/todo/gqlgen.yml @@ -9,6 +9,7 @@ schema: resolver: layout: follow-schema + preserve_resolver: true dir: . autobind: diff --git a/entgql/internal/todofed/federation.go b/entgql/internal/todofed/federation.go index a25e45e75..875d504d5 100644 --- a/entgql/internal/todofed/federation.go +++ b/entgql/internal/todofed/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) @@ -199,10 +199,13 @@ func (ec *executionContext) resolveManyEntities( } func entityResolverNameForTodo(ctx context.Context, rep EntityRepresentation) (string, error) { + // we collect errors because a later entity resolver may work fine + // when an entity has multiple keys + entityResolverErrs := []error{} for { var ( m EntityRepresentation - val interface{} + val any ok bool ) _ = val @@ -212,15 +215,20 @@ func entityResolverNameForTodo(ctx context.Context, rep EntityRepresentation) (s m = rep val, ok = m["id"] if !ok { + entityResolverErrs = append(entityResolverErrs, + fmt.Errorf("%w due to missing Key Field \"id\" for Todo", ErrTypeNotFound)) break } if allNull { allNull = val == nil } if allNull { + entityResolverErrs = append(entityResolverErrs, + fmt.Errorf("%w due to all null value KeyFields for Todo", ErrTypeNotFound)) break } return "findTodoByID", nil } - return "", fmt.Errorf("%w for Todo", ErrTypeNotFound) + return "", fmt.Errorf("%w for Todo due to %v", ErrTypeNotFound, + errors.Join(entityResolverErrs...).Error()) } diff --git a/entgql/internal/todofed/generated.go b/entgql/internal/todofed/generated.go index ffd57d175..ef8579864 100644 --- a/entgql/internal/todofed/generated.go +++ b/entgql/internal/todofed/generated.go @@ -84,7 +84,7 @@ type ComplexityRoot struct { Nodes func(childComplexity int, ids []int) int Todos func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.TodoOrder) 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 } Todo struct { @@ -141,7 +141,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 { @@ -286,7 +286,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 "Todo.category": if e.complexity.Todo.Category == nil { @@ -391,8 +391,8 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in } func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { - rc := graphql.GetOperationContext(ctx) - ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)} + opCtx := graphql.GetOperationContext(ctx) + ec := executionContext{opCtx, e, 0, 0, make(chan graphql.DeferredResult)} inputUnmarshalMap := graphql.BuildUnmarshalerMap( ec.unmarshalInputCategoryConfigInput, ec.unmarshalInputTodoInput, @@ -400,7 +400,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ) first := true - switch rc.Operation.Operation { + switch opCtx.Operation.Operation { case ast.Query: return func(ctx context.Context) *graphql.Response { var response graphql.Response @@ -408,7 +408,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { if first { first = false ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data = ec._Query(ctx, rc.Operation.SelectionSet) + data = ec._Query(ctx, opCtx.Operation.SelectionSet) } else { if atomic.LoadInt32(&ec.pendingDeferred) > 0 { result := <-ec.deferredResults @@ -438,7 +438,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { } first = false ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data := ec._Mutation(ctx, rc.Operation.SelectionSet) + data := ec._Mutation(ctx, opCtx.Operation.SelectionSet) var buf bytes.Buffer data.MarshalGQL(&buf) @@ -540,9 +540,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Entity_findTodoByID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Entity_findTodoByID_args(ctx context.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_findTodoByID_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -552,13 +552,9 @@ func (ec *executionContext) field_Entity_findTodoByID_args(ctx context.Context, } func (ec *executionContext) field_Entity_findTodoByID_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 - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { + if _, ok := rawArgs["id"]; !ok { var zeroVal int return zeroVal, nil } @@ -572,9 +568,9 @@ func (ec *executionContext) field_Entity_findTodoByID_argsID( return zeroVal, nil } -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 @@ -584,13 +580,9 @@ 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, ) (TodoInput, 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 { + if _, ok := rawArgs["input"]; !ok { var zeroVal TodoInput return zeroVal, nil } @@ -604,9 +596,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 @@ -616,13 +608,9 @@ 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 - // even if the argument is null. - _, ok := rawArgs["name"] - if !ok { + if _, ok := rawArgs["name"]; !ok { var zeroVal string return zeroVal, nil } @@ -636,9 +624,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 @@ -648,14 +636,10 @@ 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) { - // 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{} + rawArgs map[string]any, +) ([]map[string]any, error) { + if _, ok := rawArgs["representations"]; !ok { + var zeroVal []map[string]any return zeroVal, nil } @@ -664,13 +648,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_node_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_node_args(ctx context.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_node_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -680,13 +664,9 @@ func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs m } func (ec *executionContext) field_Query_node_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 - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { + if _, ok := rawArgs["id"]; !ok { var zeroVal int return zeroVal, nil } @@ -700,9 +680,9 @@ func (ec *executionContext) field_Query_node_argsID( return zeroVal, nil } -func (ec *executionContext) field_Query_nodes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_nodes_args(ctx context.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_nodes_argsIds(ctx, rawArgs) if err != nil { return nil, err @@ -712,13 +692,9 @@ func (ec *executionContext) field_Query_nodes_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_nodes_argsIds( 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 - // even if the argument is null. - _, ok := rawArgs["ids"] - if !ok { + if _, ok := rawArgs["ids"]; !ok { var zeroVal []int return zeroVal, nil } @@ -732,9 +708,9 @@ func (ec *executionContext) field_Query_nodes_argsIds( return zeroVal, nil } -func (ec *executionContext) field_Query_todos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_todos_args(ctx context.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_todos_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -764,13 +740,9 @@ func (ec *executionContext) field_Query_todos_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_todos_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -786,13 +758,9 @@ func (ec *executionContext) field_Query_todos_argsAfter( func (ec *executionContext) field_Query_todos_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -808,13 +776,9 @@ func (ec *executionContext) field_Query_todos_argsFirst( func (ec *executionContext) field_Query_todos_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[int], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[int] return zeroVal, nil } @@ -830,13 +794,9 @@ func (ec *executionContext) field_Query_todos_argsBefore( func (ec *executionContext) field_Query_todos_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -852,13 +812,9 @@ func (ec *executionContext) field_Query_todos_argsLast( func (ec *executionContext) field_Query_todos_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal *ent.TodoOrder return zeroVal, nil } @@ -872,9 +828,9 @@ func (ec *executionContext) field_Query_todos_argsOrderBy( 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 @@ -884,13 +840,9 @@ 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 - // even if the argument is null. - _, ok := rawArgs["includeDeprecated"] - if !ok { + if _, ok := rawArgs["includeDeprecated"]; !ok { var zeroVal bool return zeroVal, nil } @@ -904,9 +856,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 @@ -916,13 +868,9 @@ 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 - // even if the argument is null. - _, ok := rawArgs["includeDeprecated"] - if !ok { + if _, ok := rawArgs["includeDeprecated"]; !ok { var zeroVal bool return zeroVal, nil } @@ -956,7 +904,7 @@ func (ec *executionContext) _Category_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 }) @@ -1000,7 +948,7 @@ func (ec *executionContext) _Category_text(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.Text, nil }) @@ -1044,7 +992,7 @@ func (ec *executionContext) _Category_strings(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.Strings, nil }) @@ -1085,7 +1033,7 @@ func (ec *executionContext) _CategoryConfig_maxMembers(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.MaxMembers, nil }) @@ -1126,7 +1074,7 @@ func (ec *executionContext) _Entity_findTodoByID(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().FindTodoByID(rctx, fc.Args["id"].(int)) }) @@ -1199,7 +1147,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"].(TodoInput)) }) @@ -1272,7 +1220,7 @@ func (ec *executionContext) _Mutation_clearTodos(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().ClearTodos(rctx) }) @@ -1316,7 +1264,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 }) @@ -1360,7 +1308,7 @@ func (ec *executionContext) _PageInfo_hasPreviousPage(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.HasPreviousPage, nil }) @@ -1404,7 +1352,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 }) @@ -1445,7 +1393,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 }) @@ -1486,7 +1434,7 @@ func (ec *executionContext) _Query_node(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().Node(rctx, fc.Args["id"].(int)) }) @@ -1538,7 +1486,7 @@ func (ec *executionContext) _Query_nodes(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().Nodes(rctx, fc.Args["ids"].([]int)) }) @@ -1593,7 +1541,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, fc.Args["after"].(*entgql.Cursor[int]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[int]), fc.Args["last"].(*int), fc.Args["orderBy"].(*ent.TodoOrder)) }) @@ -1653,9 +1601,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) @@ -1708,7 +1656,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) }) @@ -1756,7 +1704,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)) }) @@ -1830,7 +1778,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() }) @@ -1885,7 +1833,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 }) @@ -1929,7 +1877,7 @@ func (ec *executionContext) _Todo_createdAt(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.CreatedAt, nil }) @@ -1970,7 +1918,7 @@ func (ec *executionContext) _Todo_status(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.Status, nil }) @@ -2014,7 +1962,7 @@ func (ec *executionContext) _Todo_priority(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.Priority, nil }) @@ -2058,7 +2006,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 }) @@ -2102,7 +2050,7 @@ func (ec *executionContext) _Todo_parent(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.Parent(ctx) }) @@ -2161,7 +2109,7 @@ func (ec *executionContext) _Todo_children(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.Children(ctx) }) @@ -2220,7 +2168,7 @@ func (ec *executionContext) _Todo_category(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.Category(ctx) }) @@ -2269,7 +2217,7 @@ func (ec *executionContext) _TodoConnection_totalCount(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.TotalCount, nil }) @@ -2313,7 +2261,7 @@ func (ec *executionContext) _TodoConnection_pageInfo(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.PageInfo, nil }) @@ -2367,7 +2315,7 @@ func (ec *executionContext) _TodoConnection_edges(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.Edges, nil }) @@ -2414,7 +2362,7 @@ func (ec *executionContext) _TodoEdge_node(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.Node, nil }) @@ -2473,7 +2421,7 @@ func (ec *executionContext) _TodoEdge_cursor(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.Cursor, nil }) @@ -2517,7 +2465,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 }) @@ -2558,7 +2506,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 }) @@ -2602,7 +2550,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 }) @@ -2643,7 +2591,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 }) @@ -2687,7 +2635,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 }) @@ -2741,7 +2689,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 }) @@ -2785,7 +2733,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 }) @@ -2829,7 +2777,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 }) @@ -2870,7 +2818,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 }) @@ -2914,7 +2862,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 }) @@ -2955,7 +2903,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 }) @@ -2999,7 +2947,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 }) @@ -3040,7 +2988,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 }) @@ -3094,7 +3042,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 }) @@ -3160,7 +3108,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 }) @@ -3204,7 +3152,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 }) @@ -3245,7 +3193,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 }) @@ -3289,7 +3237,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 }) @@ -3330,7 +3278,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 }) @@ -3396,7 +3344,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 }) @@ -3437,7 +3385,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 }) @@ -3478,7 +3426,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 }) @@ -3544,7 +3492,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 }) @@ -3610,7 +3558,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 }) @@ -3673,7 +3621,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 }) @@ -3736,7 +3684,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 }) @@ -3792,7 +3740,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 }) @@ -3836,7 +3784,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 }) @@ -3877,7 +3825,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 }) @@ -3918,7 +3866,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 }) @@ -3984,7 +3932,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 }) @@ -4047,7 +3995,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 }) @@ -4110,7 +4058,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 }) @@ -4172,7 +4120,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 }) @@ -4223,7 +4171,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 }) @@ -4286,7 +4234,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 }) @@ -4319,10 +4267,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputCategoryConfigInput(ctx context.Context, obj interface{}) (schematype.CategoryConfig, error) { +func (ec *executionContext) unmarshalInputCategoryConfigInput(ctx context.Context, obj any) (schematype.CategoryConfig, error) { var it schematype.CategoryConfig - 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 } @@ -4346,10 +4294,10 @@ func (ec *executionContext) unmarshalInputCategoryConfigInput(ctx context.Contex return it, nil } -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 } @@ -4405,10 +4353,10 @@ func (ec *executionContext) unmarshalInputTodoInput(ctx context.Context, obj int return it, nil } -func (ec *executionContext) unmarshalInputTodoOrder(ctx context.Context, obj interface{}) (ent.TodoOrder, error) { +func (ec *executionContext) unmarshalInputTodoOrder(ctx context.Context, obj any) (ent.TodoOrder, error) { var it ent.TodoOrder - 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 } @@ -4448,17 +4396,11 @@ func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj case nil: return graphql.Null case *ent.Todo: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Todo"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Todo(ctx, sel, obj) case *ent.Category: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Category"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } @@ -4473,14 +4415,8 @@ func (ec *executionContext) __Entity(ctx context.Context, sel ast.SelectionSet, case nil: return graphql.Null case ent.Todo: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Entity", "Todo"})) == 0 { - return graphql.Empty{} - } return ec._Todo(ctx, sel, &obj) case *ent.Todo: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Entity", "Todo"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } @@ -4506,76 +4442,16 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("Category") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "text": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_text(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_text(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "strings": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_strings(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_strings(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -4612,26 +4488,6 @@ func (ec *executionContext) _CategoryConfig(ctx context.Context, sel ast.Selecti case "__typename": out.Values[i] = graphql.MarshalString("CategoryConfig") case "maxMembers": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryConfig_maxMembers(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryConfig_maxMembers(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -4678,12 +4534,25 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet) g case "findTodoByID": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Entity_findTodoByID(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Entity_findTodoByID(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -4727,8 +4596,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) case "__typename": out.Values[i] = graphql.MarshalString("Mutation") case "createTodo": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createTodo(ctx, field) }) @@ -4736,8 +4603,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "clearTodos": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_clearTodos(ctx, field) }) @@ -4779,98 +4644,18 @@ func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("PageInfo") case "hasNextPage": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_hasNextPage(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._PageInfo_hasNextPage(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "hasPreviousPage": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_hasPreviousPage(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._PageInfo_hasPreviousPage(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "startCursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_startCursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._PageInfo_startCursor(ctx, field, obj) case "endCursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_endCursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._PageInfo_endCursor(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -4917,51 +4702,112 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr case "node": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_node(ctx, field) - }) + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_node(ctx, field) + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "nodes": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_nodes(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_nodes(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "todos": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_todos(ctx, field) - }) + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_todos(ctx, field) + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "_entities": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query__entities(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query__entities(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "_service": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query__service(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query__service(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "__type": - field := field + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "__type": out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Query___type(ctx, field) }) case "__schema": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Query___schema(ctx, field) }) @@ -5000,8 +4846,40 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj case "__typename": out.Values[i] = graphql.MarshalString("Todo") case "id": + out.Values[i] = ec._Todo_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._Todo_createdAt(ctx, field, obj) + case "status": + out.Values[i] = ec._Todo_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "priority": + out.Values[i] = ec._Todo_priority(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "text": + out.Values[i] = ec._Todo_text(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "parent": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_parent(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -5013,20 +4891,28 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_id(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "children": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_children(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -5038,17 +4924,28 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_createdAt(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_createdAt(ctx, field, obj) - case "status": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "category": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_category(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -5060,133 +4957,15 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_status(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "priority": - field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_priority(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_priority(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "text": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_text(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_text(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "parent": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_parent(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_parent(ctx, field, obj) - case "children": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_children(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_children(ctx, field, obj) - case "category": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_category(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_category(ctx, field, obj) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -5222,76 +5001,16 @@ func (ec *executionContext) _TodoConnection(ctx context.Context, sel ast.Selecti case "__typename": out.Values[i] = graphql.MarshalString("TodoConnection") case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoConnection_edges(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -5328,48 +5047,8 @@ func (ec *executionContext) _TodoEdge(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("TodoEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -5409,26 +5088,6 @@ func (ec *executionContext) __Service(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("_Service") case "sdl": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.__Service_sdl(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.__Service_sdl(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -5465,123 +5124,23 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS case "__typename": out.Values[i] = graphql.MarshalString("__Directive") case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_description(ctx, field, obj) case "locations": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_locations(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_locations(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "args": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_args(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_args(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "isRepeatable": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_isRepeatable(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -5621,98 +5180,18 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS case "__typename": out.Values[i] = graphql.MarshalString("__EnumValue") case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___EnumValue_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___EnumValue_description(ctx, field, obj) case "isDeprecated": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_isDeprecated(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "deprecationReason": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_deprecationReason(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -5749,148 +5228,28 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("__Field") case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_description(ctx, field, obj) case "args": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_args(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_args(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "type": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_type(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_type(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "isDeprecated": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_isDeprecated(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "deprecationReason": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_deprecationReason(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -5927,98 +5286,18 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection case "__typename": out.Values[i] = graphql.MarshalString("__InputValue") case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___InputValue_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___InputValue_description(ctx, field, obj) case "type": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_type(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___InputValue_type(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "defaultValue": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_defaultValue(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -6055,142 +5334,22 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("__Schema") case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_description(ctx, field, obj) case "types": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_types(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_types(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "queryType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_queryType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_queryType(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "mutationType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_mutationType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) case "subscriptionType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_subscriptionType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) case "directives": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_directives(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_directives(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -6230,227 +5389,27 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o case "__typename": out.Values[i] = graphql.MarshalString("__Type") case "kind": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_kind(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_kind(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_name(ctx, field, obj) case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_description(ctx, field, obj) case "fields": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_fields(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_fields(ctx, field, obj) case "interfaces": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_interfaces(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_interfaces(ctx, field, obj) case "possibleTypes": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_possibleTypes(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) case "enumValues": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_enumValues(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_enumValues(ctx, field, obj) case "inputFields": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_inputFields(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_inputFields(ctx, field, obj) case "ofType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_ofType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_ofType(ctx, field, obj) case "specifiedByURL": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_specifiedByURL(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -6479,7 +5438,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) } @@ -6494,7 +5453,7 @@ func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v interface{}) (entgql.Cursor[int], error) { +func (ec *executionContext) unmarshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v any) (entgql.Cursor[int], error) { var res entgql.Cursor[int] err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -6504,7 +5463,7 @@ func (ec *executionContext) marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCurso return v } -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) } @@ -6519,8 +5478,8 @@ func (ec *executionContext) marshalNID2int(ctx context.Context, sel ast.Selectio return res } -func (ec *executionContext) unmarshalNID2ᚕintᚄ(ctx context.Context, v interface{}) ([]int, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNID2ᚕintᚄ(ctx context.Context, v any) ([]int, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -6551,7 +5510,7 @@ func (ec *executionContext) marshalNID2ᚕintᚄ(ctx context.Context, sel ast.Se return ret } -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) } @@ -6569,7 +5528,7 @@ func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.Selecti func (ec *executionContext) marshalNNode2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodofedᚋentᚐNoder(ctx context.Context, sel ast.SelectionSet, v []ent.Noder) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -6604,7 +5563,7 @@ func (ec *executionContext) marshalNNode2ᚕentgoᚗioᚋcontribᚋentgqlᚋinte return ret } -func (ec *executionContext) unmarshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx context.Context, v interface{}) (entgql.OrderDirection, error) { +func (ec *executionContext) unmarshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx context.Context, v any) (entgql.OrderDirection, error) { var res entgql.OrderDirection err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -6618,7 +5577,7 @@ func (ec *executionContext) marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPag return ec._PageInfo(ctx, sel, &v) } -func (ec *executionContext) unmarshalNStatus2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodofedᚋentᚋtodoᚐStatus(ctx context.Context, v interface{}) (todo.Status, error) { +func (ec *executionContext) unmarshalNStatus2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodofedᚋentᚋtodoᚐStatus(ctx context.Context, v any) (todo.Status, error) { var res todo.Status err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -6628,7 +5587,7 @@ func (ec *executionContext) marshalNStatus2entgoᚗioᚋcontribᚋentgqlᚋinter 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) } @@ -6657,17 +5616,17 @@ func (ec *executionContext) marshalNTodo2ᚖentgoᚗioᚋcontribᚋentgqlᚋinte return ec._Todo(ctx, sel, v) } -func (ec *executionContext) unmarshalNTodoInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodofedᚐTodoInput(ctx context.Context, v interface{}) (TodoInput, error) { +func (ec *executionContext) unmarshalNTodoInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodofedᚐTodoInput(ctx context.Context, v any) (TodoInput, error) { res, err := ec.unmarshalInputTodoInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -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") @@ -6683,13 +5642,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]) @@ -6700,7 +5659,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]) @@ -6718,7 +5677,7 @@ func (ec *executionContext) marshalN_Any2ᚕmapᚄ(ctx context.Context, sel ast. func (ec *executionContext) marshalN_Entity2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋpluginᚋfederationᚋfedruntimeᚐEntity(ctx context.Context, sel ast.SelectionSet, v []fedruntime.Entity) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -6753,7 +5712,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) } @@ -6779,7 +5738,7 @@ func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlge func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -6820,7 +5779,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) } @@ -6835,8 +5794,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) } @@ -6855,7 +5814,7 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -6911,7 +5870,7 @@ func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlg func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -6959,7 +5918,7 @@ func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋg func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -7010,7 +5969,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) } @@ -7025,7 +5984,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) } @@ -7035,7 +5994,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 } @@ -7058,7 +6017,7 @@ func (ec *executionContext) marshalOCategory2ᚖentgoᚗioᚋcontribᚋentgqlᚋ return ec._Category(ctx, sel, v) } -func (ec *executionContext) unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v interface{}) (*entgql.Cursor[int], error) { +func (ec *executionContext) unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v any) (*entgql.Cursor[int], error) { if v == nil { return nil, nil } @@ -7074,7 +6033,7 @@ func (ec *executionContext) marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCu return v } -func (ec *executionContext) unmarshalOID2ᚖint(ctx context.Context, v interface{}) (*int, error) { +func (ec *executionContext) unmarshalOID2ᚖint(ctx context.Context, v any) (*int, error) { if v == nil { return nil, nil } @@ -7090,7 +6049,7 @@ func (ec *executionContext) marshalOID2ᚖint(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -7100,7 +6059,7 @@ func (ec *executionContext) marshalOInt2int(ctx context.Context, sel ast.Selecti 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 } @@ -7123,7 +6082,7 @@ func (ec *executionContext) marshalONode2entgoᚗioᚋcontribᚋentgqlᚋinterna return ec._Node(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) } @@ -7133,11 +6092,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) } @@ -7165,7 +6124,7 @@ func (ec *executionContext) marshalOString2ᚕstring(ctx context.Context, sel as 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 } @@ -7181,7 +6140,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) } @@ -7197,7 +6156,7 @@ func (ec *executionContext) marshalOTodo2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋi } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -7258,7 +6217,7 @@ func (ec *executionContext) marshalOTodoEdge2ᚕᚖentgoᚗioᚋcontribᚋentgql } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -7300,7 +6259,7 @@ func (ec *executionContext) marshalOTodoEdge2ᚖentgoᚗioᚋcontribᚋentgqlᚋ return ec._TodoEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOTodoOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodofedᚋentᚐTodoOrder(ctx context.Context, v interface{}) (*ent.TodoOrder, error) { +func (ec *executionContext) unmarshalOTodoOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodofedᚋentᚐTodoOrder(ctx context.Context, v any) (*ent.TodoOrder, error) { if v == nil { return nil, nil } @@ -7308,7 +6267,7 @@ func (ec *executionContext) unmarshalOTodoOrder2ᚖentgoᚗioᚋcontribᚋentgql return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOTodoOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodofedᚋentᚐTodoOrderField(ctx context.Context, v interface{}) (*ent.TodoOrderField, error) { +func (ec *executionContext) unmarshalOTodoOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodofedᚋentᚐTodoOrderField(ctx context.Context, v any) (*ent.TodoOrderField, error) { if v == nil { return nil, nil } @@ -7337,7 +6296,7 @@ func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgq } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -7384,7 +6343,7 @@ func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgen } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -7431,7 +6390,7 @@ func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋg } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -7485,7 +6444,7 @@ func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgen } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } diff --git a/entgql/internal/todofed/gqlgen.yml b/entgql/internal/todofed/gqlgen.yml index 7338807dc..fc847a1d3 100644 --- a/entgql/internal/todofed/gqlgen.yml +++ b/entgql/internal/todofed/gqlgen.yml @@ -9,6 +9,7 @@ schema: resolver: layout: follow-schema + preserve_resolver: true dir: . federation: diff --git a/entgql/internal/todogotype/generated.go b/entgql/internal/todogotype/generated.go index 5a0b9d91e..0e24fdf15 100644 --- a/entgql/internal/todogotype/generated.go +++ b/entgql/internal/todogotype/generated.go @@ -62,7 +62,7 @@ type ResolverRoot interface { } type DirectiveRoot struct { - HasPermissions func(ctx context.Context, obj interface{}, next graphql.Resolver, permissions []string) (res interface{}, err error) + HasPermissions func(ctx context.Context, obj any, next graphql.Resolver, permissions []string) (res any, err error) } type ComplexityRoot struct { @@ -289,8 +289,8 @@ type TodoResolver interface { } type UserResolver interface { Username(ctx context.Context, obj *ent.User) (string, error) - RequiredMetadata(ctx context.Context, obj *ent.User) (map[string]interface{}, error) - Metadata(ctx context.Context, obj *ent.User) (map[string]interface{}, error) + RequiredMetadata(ctx context.Context, obj *ent.User) (map[string]any, error) + Metadata(ctx context.Context, obj *ent.User) (map[string]any, error) Friends(ctx context.Context, obj *ent.User, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *ent.UserOrder, where *ent.UserWhereInput) (*ent.UserConnection, error) Friendships(ctx context.Context, obj *ent.User, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *ent.FriendshipWhereInput) (*ent.FriendshipConnection, error) @@ -343,7 +343,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 { @@ -1202,8 +1202,8 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in } func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { - rc := graphql.GetOperationContext(ctx) - ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)} + opCtx := graphql.GetOperationContext(ctx) + ec := executionContext{opCtx, e, 0, 0, make(chan graphql.DeferredResult)} inputUnmarshalMap := graphql.BuildUnmarshalerMap( ec.unmarshalInputBillProductWhereInput, ec.unmarshalInputCategoryConfigInput, @@ -1230,7 +1230,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ) first := true - switch rc.Operation.Operation { + switch opCtx.Operation.Operation { case ast.Query: return func(ctx context.Context) *graphql.Response { var response graphql.Response @@ -1238,7 +1238,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { if first { first = false ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data = ec._Query(ctx, rc.Operation.SelectionSet) + data = ec._Query(ctx, opCtx.Operation.SelectionSet) } else { if atomic.LoadInt32(&ec.pendingDeferred) > 0 { result := <-ec.deferredResults @@ -1268,7 +1268,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { } first = false ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data := ec._Mutation(ctx, rc.Operation.SelectionSet) + data := ec._Mutation(ctx, opCtx.Operation.SelectionSet) var buf bytes.Buffer data.MarshalGQL(&buf) @@ -2867,9 +2867,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) dir_hasPermissions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_hasPermissions_args(ctx 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_hasPermissions_argsPermissions(ctx, rawArgs) if err != nil { return nil, err @@ -2879,13 +2879,9 @@ func (ec *executionContext) dir_hasPermissions_args(ctx context.Context, rawArgs } func (ec *executionContext) dir_hasPermissions_argsPermissions( 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 - // even if the argument is null. - _, ok := rawArgs["permissions"] - if !ok { + if _, ok := rawArgs["permissions"]; !ok { var zeroVal []string return zeroVal, nil } @@ -2899,9 +2895,9 @@ func (ec *executionContext) dir_hasPermissions_argsPermissions( return zeroVal, nil } -func (ec *executionContext) field_Category_subCategories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Category_subCategories_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Category_subCategories_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -2936,13 +2932,9 @@ func (ec *executionContext) field_Category_subCategories_args(ctx context.Contex } func (ec *executionContext) field_Category_subCategories_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -2958,13 +2950,9 @@ func (ec *executionContext) field_Category_subCategories_argsAfter( func (ec *executionContext) field_Category_subCategories_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -2980,13 +2968,9 @@ func (ec *executionContext) field_Category_subCategories_argsFirst( func (ec *executionContext) field_Category_subCategories_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -3002,13 +2986,9 @@ func (ec *executionContext) field_Category_subCategories_argsBefore( func (ec *executionContext) field_Category_subCategories_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3024,13 +3004,9 @@ func (ec *executionContext) field_Category_subCategories_argsLast( func (ec *executionContext) field_Category_subCategories_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.CategoryOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.CategoryOrder return zeroVal, nil } @@ -3046,13 +3022,9 @@ func (ec *executionContext) field_Category_subCategories_argsOrderBy( func (ec *executionContext) field_Category_subCategories_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.CategoryWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.CategoryWhereInput return zeroVal, nil } @@ -3066,9 +3038,9 @@ func (ec *executionContext) field_Category_subCategories_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Category_todos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Category_todos_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Category_todos_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3103,13 +3075,9 @@ func (ec *executionContext) field_Category_todos_args(ctx context.Context, rawAr } func (ec *executionContext) field_Category_todos_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -3125,13 +3093,9 @@ func (ec *executionContext) field_Category_todos_argsAfter( func (ec *executionContext) field_Category_todos_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3147,13 +3111,9 @@ func (ec *executionContext) field_Category_todos_argsFirst( func (ec *executionContext) field_Category_todos_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -3169,13 +3129,9 @@ func (ec *executionContext) field_Category_todos_argsBefore( func (ec *executionContext) field_Category_todos_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3191,13 +3147,9 @@ func (ec *executionContext) field_Category_todos_argsLast( func (ec *executionContext) field_Category_todos_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -3213,13 +3165,9 @@ func (ec *executionContext) field_Category_todos_argsOrderBy( func (ec *executionContext) field_Category_todos_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -3233,9 +3181,9 @@ func (ec *executionContext) field_Category_todos_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Group_users_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Group_users_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Group_users_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3270,13 +3218,9 @@ func (ec *executionContext) field_Group_users_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Group_users_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -3292,13 +3236,9 @@ func (ec *executionContext) field_Group_users_argsAfter( func (ec *executionContext) field_Group_users_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3314,13 +3254,9 @@ func (ec *executionContext) field_Group_users_argsFirst( func (ec *executionContext) field_Group_users_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -3336,13 +3272,9 @@ func (ec *executionContext) field_Group_users_argsBefore( func (ec *executionContext) field_Group_users_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3358,13 +3290,9 @@ func (ec *executionContext) field_Group_users_argsLast( func (ec *executionContext) field_Group_users_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal *ent.UserOrder return zeroVal, nil } @@ -3380,13 +3308,9 @@ func (ec *executionContext) field_Group_users_argsOrderBy( func (ec *executionContext) field_Group_users_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.UserWhereInput return zeroVal, nil } @@ -3400,9 +3324,9 @@ func (ec *executionContext) field_Group_users_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Mutation_createCategory_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_createCategory_args(ctx context.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_createCategory_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -3412,13 +3336,9 @@ func (ec *executionContext) field_Mutation_createCategory_args(ctx context.Conte } func (ec *executionContext) field_Mutation_createCategory_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (ent.CreateCategoryInput, 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 { + if _, ok := rawArgs["input"]; !ok { var zeroVal ent.CreateCategoryInput return zeroVal, nil } @@ -3432,9 +3352,9 @@ func (ec *executionContext) field_Mutation_createCategory_argsInput( return zeroVal, nil } -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 @@ -3444,13 +3364,9 @@ 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, ) (ent.CreateTodoInput, 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 { + if _, ok := rawArgs["input"]; !ok { var zeroVal ent.CreateTodoInput return zeroVal, nil } @@ -3464,9 +3380,9 @@ func (ec *executionContext) field_Mutation_createTodo_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Mutation_updateFriendship_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_updateFriendship_args(ctx context.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_updateFriendship_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -3481,13 +3397,9 @@ func (ec *executionContext) field_Mutation_updateFriendship_args(ctx context.Con } func (ec *executionContext) field_Mutation_updateFriendship_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 - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { + if _, ok := rawArgs["id"]; !ok { var zeroVal string return zeroVal, nil } @@ -3503,13 +3415,9 @@ func (ec *executionContext) field_Mutation_updateFriendship_argsID( func (ec *executionContext) field_Mutation_updateFriendship_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (UpdateFriendshipInput, 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 { + if _, ok := rawArgs["input"]; !ok { var zeroVal UpdateFriendshipInput return zeroVal, nil } @@ -3523,9 +3431,9 @@ func (ec *executionContext) field_Mutation_updateFriendship_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Mutation_updateTodo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_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_Mutation_updateTodo_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -3540,13 +3448,9 @@ func (ec *executionContext) field_Mutation_updateTodo_args(ctx context.Context, } func (ec *executionContext) field_Mutation_updateTodo_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 - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { + if _, ok := rawArgs["id"]; !ok { var zeroVal string return zeroVal, nil } @@ -3562,13 +3466,9 @@ func (ec *executionContext) field_Mutation_updateTodo_argsID( func (ec *executionContext) field_Mutation_updateTodo_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (ent.UpdateTodoInput, 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 { + if _, ok := rawArgs["input"]; !ok { var zeroVal ent.UpdateTodoInput return zeroVal, nil } @@ -3582,9 +3482,9 @@ func (ec *executionContext) field_Mutation_updateTodo_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Project_todos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Project_todos_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Project_todos_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3619,13 +3519,9 @@ func (ec *executionContext) field_Project_todos_args(ctx context.Context, rawArg } func (ec *executionContext) field_Project_todos_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -3641,13 +3537,9 @@ func (ec *executionContext) field_Project_todos_argsAfter( func (ec *executionContext) field_Project_todos_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3663,13 +3555,9 @@ func (ec *executionContext) field_Project_todos_argsFirst( func (ec *executionContext) field_Project_todos_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -3685,13 +3573,9 @@ func (ec *executionContext) field_Project_todos_argsBefore( func (ec *executionContext) field_Project_todos_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3707,13 +3591,9 @@ func (ec *executionContext) field_Project_todos_argsLast( func (ec *executionContext) field_Project_todos_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -3729,13 +3609,9 @@ func (ec *executionContext) field_Project_todos_argsOrderBy( func (ec *executionContext) field_Project_todos_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -3749,9 +3625,9 @@ func (ec *executionContext) field_Project_todos_argsWhere( 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 @@ -3761,13 +3637,9 @@ 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 - // even if the argument is null. - _, ok := rawArgs["name"] - if !ok { + if _, ok := rawArgs["name"]; !ok { var zeroVal string return zeroVal, nil } @@ -3781,9 +3653,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query_categories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_categories_args(ctx context.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_categories_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3818,13 +3690,9 @@ func (ec *executionContext) field_Query_categories_args(ctx context.Context, raw } func (ec *executionContext) field_Query_categories_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -3840,13 +3708,9 @@ func (ec *executionContext) field_Query_categories_argsAfter( func (ec *executionContext) field_Query_categories_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3862,13 +3726,9 @@ func (ec *executionContext) field_Query_categories_argsFirst( func (ec *executionContext) field_Query_categories_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -3884,13 +3744,9 @@ func (ec *executionContext) field_Query_categories_argsBefore( func (ec *executionContext) field_Query_categories_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3906,13 +3762,9 @@ func (ec *executionContext) field_Query_categories_argsLast( func (ec *executionContext) field_Query_categories_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.CategoryOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.CategoryOrder return zeroVal, nil } @@ -3928,13 +3780,9 @@ func (ec *executionContext) field_Query_categories_argsOrderBy( func (ec *executionContext) field_Query_categories_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.CategoryWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.CategoryWhereInput return zeroVal, nil } @@ -3948,9 +3796,9 @@ func (ec *executionContext) field_Query_categories_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_groups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_groups_args(ctx context.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_groups_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3980,13 +3828,9 @@ func (ec *executionContext) field_Query_groups_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_groups_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -4002,13 +3846,9 @@ func (ec *executionContext) field_Query_groups_argsAfter( func (ec *executionContext) field_Query_groups_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4024,13 +3864,9 @@ func (ec *executionContext) field_Query_groups_argsFirst( func (ec *executionContext) field_Query_groups_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -4046,13 +3882,9 @@ func (ec *executionContext) field_Query_groups_argsBefore( func (ec *executionContext) field_Query_groups_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4068,13 +3900,9 @@ func (ec *executionContext) field_Query_groups_argsLast( func (ec *executionContext) field_Query_groups_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.GroupWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.GroupWhereInput return zeroVal, nil } @@ -4088,9 +3916,9 @@ func (ec *executionContext) field_Query_groups_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_node_args(ctx context.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_node_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -4100,13 +3928,9 @@ func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs m } func (ec *executionContext) field_Query_node_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 - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { + if _, ok := rawArgs["id"]; !ok { var zeroVal string return zeroVal, nil } @@ -4120,9 +3944,9 @@ func (ec *executionContext) field_Query_node_argsID( return zeroVal, nil } -func (ec *executionContext) field_Query_nodes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_nodes_args(ctx context.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_nodes_argsIds(ctx, rawArgs) if err != nil { return nil, err @@ -4132,13 +3956,9 @@ func (ec *executionContext) field_Query_nodes_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_nodes_argsIds( 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 - // even if the argument is null. - _, ok := rawArgs["ids"] - if !ok { + if _, ok := rawArgs["ids"]; !ok { var zeroVal []string return zeroVal, nil } @@ -4152,9 +3972,9 @@ func (ec *executionContext) field_Query_nodes_argsIds( return zeroVal, nil } -func (ec *executionContext) field_Query_oneToMany_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_oneToMany_args(ctx context.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_oneToMany_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -4189,13 +4009,9 @@ func (ec *executionContext) field_Query_oneToMany_args(ctx context.Context, rawA } func (ec *executionContext) field_Query_oneToMany_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -4211,13 +4027,9 @@ func (ec *executionContext) field_Query_oneToMany_argsAfter( func (ec *executionContext) field_Query_oneToMany_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4233,13 +4045,9 @@ func (ec *executionContext) field_Query_oneToMany_argsFirst( func (ec *executionContext) field_Query_oneToMany_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -4255,13 +4063,9 @@ func (ec *executionContext) field_Query_oneToMany_argsBefore( func (ec *executionContext) field_Query_oneToMany_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4277,13 +4081,9 @@ func (ec *executionContext) field_Query_oneToMany_argsLast( func (ec *executionContext) field_Query_oneToMany_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*OneToManyOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal *OneToManyOrder return zeroVal, nil } @@ -4299,13 +4099,9 @@ func (ec *executionContext) field_Query_oneToMany_argsOrderBy( func (ec *executionContext) field_Query_oneToMany_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*OneToManyWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *OneToManyWhereInput return zeroVal, nil } @@ -4319,9 +4115,9 @@ func (ec *executionContext) field_Query_oneToMany_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_todosWithJoins_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_todosWithJoins_args(ctx context.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_todosWithJoins_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -4356,13 +4152,9 @@ func (ec *executionContext) field_Query_todosWithJoins_args(ctx context.Context, } func (ec *executionContext) field_Query_todosWithJoins_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -4378,13 +4170,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsAfter( func (ec *executionContext) field_Query_todosWithJoins_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4400,13 +4188,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsFirst( func (ec *executionContext) field_Query_todosWithJoins_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -4422,13 +4206,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsBefore( func (ec *executionContext) field_Query_todosWithJoins_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4444,13 +4224,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsLast( func (ec *executionContext) field_Query_todosWithJoins_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -4466,13 +4242,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsOrderBy( func (ec *executionContext) field_Query_todosWithJoins_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -4486,9 +4258,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_todos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_todos_args(ctx context.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_todos_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -4523,13 +4295,9 @@ func (ec *executionContext) field_Query_todos_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_todos_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -4545,13 +4313,9 @@ func (ec *executionContext) field_Query_todos_argsAfter( func (ec *executionContext) field_Query_todos_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4567,13 +4331,9 @@ func (ec *executionContext) field_Query_todos_argsFirst( func (ec *executionContext) field_Query_todos_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -4589,13 +4349,9 @@ func (ec *executionContext) field_Query_todos_argsBefore( func (ec *executionContext) field_Query_todos_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4611,13 +4367,9 @@ func (ec *executionContext) field_Query_todos_argsLast( func (ec *executionContext) field_Query_todos_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -4633,13 +4385,9 @@ func (ec *executionContext) field_Query_todos_argsOrderBy( func (ec *executionContext) field_Query_todos_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -4653,9 +4401,9 @@ func (ec *executionContext) field_Query_todos_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_users_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_users_args(ctx context.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_users_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -4690,13 +4438,9 @@ func (ec *executionContext) field_Query_users_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_users_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -4712,13 +4456,9 @@ func (ec *executionContext) field_Query_users_argsAfter( func (ec *executionContext) field_Query_users_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4734,13 +4474,9 @@ func (ec *executionContext) field_Query_users_argsFirst( func (ec *executionContext) field_Query_users_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -4756,13 +4492,9 @@ func (ec *executionContext) field_Query_users_argsBefore( func (ec *executionContext) field_Query_users_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4778,13 +4510,9 @@ func (ec *executionContext) field_Query_users_argsLast( func (ec *executionContext) field_Query_users_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal *ent.UserOrder return zeroVal, nil } @@ -4800,13 +4528,9 @@ func (ec *executionContext) field_Query_users_argsOrderBy( func (ec *executionContext) field_Query_users_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.UserWhereInput return zeroVal, nil } @@ -4820,9 +4544,9 @@ func (ec *executionContext) field_Query_users_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Todo_children_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Todo_children_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Todo_children_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -4857,13 +4581,9 @@ func (ec *executionContext) field_Todo_children_args(ctx context.Context, rawArg } func (ec *executionContext) field_Todo_children_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -4879,13 +4599,9 @@ func (ec *executionContext) field_Todo_children_argsAfter( func (ec *executionContext) field_Todo_children_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4901,13 +4617,9 @@ func (ec *executionContext) field_Todo_children_argsFirst( func (ec *executionContext) field_Todo_children_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -4923,13 +4635,9 @@ func (ec *executionContext) field_Todo_children_argsBefore( func (ec *executionContext) field_Todo_children_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4945,13 +4653,9 @@ func (ec *executionContext) field_Todo_children_argsLast( func (ec *executionContext) field_Todo_children_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -4967,13 +4671,9 @@ func (ec *executionContext) field_Todo_children_argsOrderBy( func (ec *executionContext) field_Todo_children_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -4987,9 +4687,9 @@ func (ec *executionContext) field_Todo_children_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_User_friends_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_User_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_User_friends_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -5024,13 +4724,9 @@ func (ec *executionContext) field_User_friends_args(ctx context.Context, rawArgs } func (ec *executionContext) field_User_friends_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -5046,13 +4742,9 @@ func (ec *executionContext) field_User_friends_argsAfter( func (ec *executionContext) field_User_friends_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -5068,13 +4760,9 @@ func (ec *executionContext) field_User_friends_argsFirst( func (ec *executionContext) field_User_friends_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -5090,13 +4778,9 @@ func (ec *executionContext) field_User_friends_argsBefore( func (ec *executionContext) field_User_friends_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -5112,13 +4796,9 @@ func (ec *executionContext) field_User_friends_argsLast( func (ec *executionContext) field_User_friends_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal *ent.UserOrder return zeroVal, nil } @@ -5134,13 +4814,9 @@ func (ec *executionContext) field_User_friends_argsOrderBy( func (ec *executionContext) field_User_friends_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.UserWhereInput return zeroVal, nil } @@ -5154,9 +4830,9 @@ func (ec *executionContext) field_User_friends_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_User_friendships_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_User_friendships_args(ctx context.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_friendships_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -5186,13 +4862,9 @@ func (ec *executionContext) field_User_friendships_args(ctx context.Context, raw } func (ec *executionContext) field_User_friendships_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -5208,13 +4880,9 @@ func (ec *executionContext) field_User_friendships_argsAfter( func (ec *executionContext) field_User_friendships_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -5230,13 +4898,9 @@ func (ec *executionContext) field_User_friendships_argsFirst( func (ec *executionContext) field_User_friendships_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -5252,13 +4916,9 @@ func (ec *executionContext) field_User_friendships_argsBefore( func (ec *executionContext) field_User_friendships_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -5274,13 +4934,9 @@ func (ec *executionContext) field_User_friendships_argsLast( func (ec *executionContext) field_User_friendships_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.FriendshipWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.FriendshipWhereInput return zeroVal, nil } @@ -5294,9 +4950,9 @@ func (ec *executionContext) field_User_friendships_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_User_groups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_User_groups_args(ctx context.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_groups_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -5326,13 +4982,9 @@ func (ec *executionContext) field_User_groups_args(ctx context.Context, rawArgs } func (ec *executionContext) field_User_groups_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -5348,13 +5000,9 @@ func (ec *executionContext) field_User_groups_argsAfter( func (ec *executionContext) field_User_groups_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -5370,13 +5018,9 @@ func (ec *executionContext) field_User_groups_argsFirst( func (ec *executionContext) field_User_groups_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[string], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[string] return zeroVal, nil } @@ -5392,13 +5036,9 @@ func (ec *executionContext) field_User_groups_argsBefore( func (ec *executionContext) field_User_groups_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -5414,13 +5054,9 @@ func (ec *executionContext) field_User_groups_argsLast( func (ec *executionContext) field_User_groups_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.GroupWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.GroupWhereInput return zeroVal, nil } @@ -5434,9 +5070,9 @@ func (ec *executionContext) field_User_groups_argsWhere( 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 @@ -5446,13 +5082,9 @@ 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 - // even if the argument is null. - _, ok := rawArgs["includeDeprecated"] - if !ok { + if _, ok := rawArgs["includeDeprecated"]; !ok { var zeroVal bool return zeroVal, nil } @@ -5466,9 +5098,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 @@ -5478,13 +5110,9 @@ 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 - // even if the argument is null. - _, ok := rawArgs["includeDeprecated"] - if !ok { + if _, ok := rawArgs["includeDeprecated"]; !ok { var zeroVal bool return zeroVal, nil } @@ -5518,7 +5146,7 @@ func (ec *executionContext) _BillProduct_id(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.ID, nil }) @@ -5562,7 +5190,7 @@ func (ec *executionContext) _BillProduct_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 }) @@ -5606,7 +5234,7 @@ func (ec *executionContext) _BillProduct_sku(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.Sku, nil }) @@ -5650,7 +5278,7 @@ func (ec *executionContext) _BillProduct_quantity(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.Quantity, nil }) @@ -5694,7 +5322,7 @@ func (ec *executionContext) _Category_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 }) @@ -5738,7 +5366,7 @@ func (ec *executionContext) _Category_text(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.Text, nil }) @@ -5782,7 +5410,7 @@ func (ec *executionContext) _Category_status(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.Status, nil }) @@ -5826,7 +5454,7 @@ func (ec *executionContext) _Category_config(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.Config, nil }) @@ -5871,7 +5499,7 @@ func (ec *executionContext) _Category_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 ec.resolvers.Category().Types(rctx, obj) }) @@ -5916,7 +5544,7 @@ func (ec *executionContext) _Category_duration(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.Duration, nil }) @@ -5957,7 +5585,7 @@ func (ec *executionContext) _Category_count(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.Count, nil }) @@ -5998,7 +5626,7 @@ func (ec *executionContext) _Category_strings(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.Strings, nil }) @@ -6039,7 +5667,7 @@ func (ec *executionContext) _Category_todos(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.Todos(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.TodoOrder), fc.Args["where"].(*ent.TodoWhereInput)) }) @@ -6102,7 +5730,7 @@ func (ec *executionContext) _Category_subCategories(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 obj.SubCategories(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.CategoryOrder), fc.Args["where"].(*ent.CategoryWhereInput)) }) @@ -6165,7 +5793,7 @@ func (ec *executionContext) _Category_todosCount(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.Category().TodosCount(rctx, obj) }) @@ -6206,7 +5834,7 @@ func (ec *executionContext) _CategoryConfig_maxMembers(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.MaxMembers, nil }) @@ -6247,7 +5875,7 @@ func (ec *executionContext) _CategoryConnection_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 obj.Edges, nil }) @@ -6294,7 +5922,7 @@ func (ec *executionContext) _CategoryConnection_pageInfo(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.PageInfo, nil }) @@ -6348,7 +5976,7 @@ func (ec *executionContext) _CategoryConnection_totalCount(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.TotalCount, nil }) @@ -6392,7 +6020,7 @@ func (ec *executionContext) _CategoryEdge_node(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.Node, nil }) @@ -6457,7 +6085,7 @@ func (ec *executionContext) _CategoryEdge_cursor(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.Cursor, nil }) @@ -6501,7 +6129,7 @@ func (ec *executionContext) _CategoryTypes_public(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.Public, nil }) @@ -6542,7 +6170,7 @@ func (ec *executionContext) _Custom_info(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.Info, nil }) @@ -6586,7 +6214,7 @@ func (ec *executionContext) _Friendship_id(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.ID, nil }) @@ -6630,7 +6258,7 @@ func (ec *executionContext) _Friendship_createdAt(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.CreatedAt, nil }) @@ -6674,7 +6302,7 @@ func (ec *executionContext) _Friendship_userID(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.UserID, nil }) @@ -6718,7 +6346,7 @@ func (ec *executionContext) _Friendship_friendID(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.FriendID, nil }) @@ -6762,7 +6390,7 @@ func (ec *executionContext) _Friendship_user(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.User(ctx) }) @@ -6824,7 +6452,7 @@ func (ec *executionContext) _Friendship_friend(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.Friend(ctx) }) @@ -6886,7 +6514,7 @@ func (ec *executionContext) _FriendshipConnection_edges(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.Edges, nil }) @@ -6933,7 +6561,7 @@ func (ec *executionContext) _FriendshipConnection_pageInfo(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.PageInfo, nil }) @@ -6987,7 +6615,7 @@ func (ec *executionContext) _FriendshipConnection_totalCount(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.TotalCount, nil }) @@ -7031,7 +6659,7 @@ func (ec *executionContext) _FriendshipEdge_node(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.Node, nil }) @@ -7086,7 +6714,7 @@ func (ec *executionContext) _FriendshipEdge_cursor(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.Cursor, nil }) @@ -7130,7 +6758,7 @@ func (ec *executionContext) _Group_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 }) @@ -7174,7 +6802,7 @@ func (ec *executionContext) _Group_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 }) @@ -7218,7 +6846,7 @@ func (ec *executionContext) _Group_users(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.Users(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*ent.UserOrder), fc.Args["where"].(*ent.UserWhereInput)) }) @@ -7281,7 +6909,7 @@ func (ec *executionContext) _GroupConnection_edges(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.Edges, nil }) @@ -7328,7 +6956,7 @@ func (ec *executionContext) _GroupConnection_pageInfo(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.PageInfo, nil }) @@ -7382,7 +7010,7 @@ func (ec *executionContext) _GroupConnection_totalCount(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.TotalCount, nil }) @@ -7426,14 +7054,14 @@ func (ec *executionContext) _GroupEdge_node(ctx context.Context, 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 obj.Node, nil } - directive1 := func(ctx context.Context) (interface{}, error) { - permissions, err := ec.unmarshalNString2ᚕstringᚄ(ctx, []interface{}{"ADMIN", "MODERATOR"}) + directive1 := func(ctx context.Context) (any, error) { + permissions, err := ec.unmarshalNString2ᚕstringᚄ(ctx, []any{"ADMIN", "MODERATOR"}) if err != nil { var zeroVal *ent.Group return zeroVal, err @@ -7502,7 +7130,7 @@ func (ec *executionContext) _GroupEdge_cursor(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.Cursor, nil }) @@ -7546,7 +7174,7 @@ func (ec *executionContext) _Mutation_createCategory(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().CreateCategory(rctx, fc.Args["input"].(ent.CreateCategoryInput)) }) @@ -7625,7 +7253,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"].(ent.CreateTodoInput)) }) @@ -7714,7 +7342,7 @@ func (ec *executionContext) _Mutation_updateTodo(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().UpdateTodo(rctx, fc.Args["id"].(string), fc.Args["input"].(ent.UpdateTodoInput)) }) @@ -7803,7 +7431,7 @@ func (ec *executionContext) _Mutation_clearTodos(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().ClearTodos(rctx) }) @@ -7847,7 +7475,7 @@ func (ec *executionContext) _Mutation_updateFriendship(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.Mutation().UpdateFriendship(rctx, fc.Args["id"].(string), fc.Args["input"].(UpdateFriendshipInput)) }) @@ -7916,7 +7544,7 @@ func (ec *executionContext) _OneToMany_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 }) @@ -7960,7 +7588,7 @@ func (ec *executionContext) _OneToMany_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 }) @@ -8004,7 +7632,7 @@ func (ec *executionContext) _OneToMany_field2(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.Field2, nil }) @@ -8045,7 +7673,7 @@ func (ec *executionContext) _OneToMany_parent(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.Parent, nil }) @@ -8098,7 +7726,7 @@ func (ec *executionContext) _OneToMany_children(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.Children, nil }) @@ -8151,7 +7779,7 @@ func (ec *executionContext) _OneToManyConnection_edges(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.Edges, nil }) @@ -8198,7 +7826,7 @@ func (ec *executionContext) _OneToManyConnection_pageInfo(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.PageInfo, nil }) @@ -8252,7 +7880,7 @@ func (ec *executionContext) _OneToManyConnection_totalCount(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.TotalCount, nil }) @@ -8296,7 +7924,7 @@ func (ec *executionContext) _OneToManyEdge_node(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.Node, nil }) @@ -8349,7 +7977,7 @@ func (ec *executionContext) _OneToManyEdge_cursor(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.Cursor, nil }) @@ -8393,7 +8021,7 @@ func (ec *executionContext) _Organization_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 ec.resolvers.Organization().ID(rctx, obj) }) @@ -8437,7 +8065,7 @@ func (ec *executionContext) _Organization_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 }) @@ -8481,7 +8109,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 }) @@ -8525,7 +8153,7 @@ func (ec *executionContext) _PageInfo_hasPreviousPage(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.HasPreviousPage, nil }) @@ -8569,7 +8197,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 }) @@ -8610,7 +8238,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 }) @@ -8651,7 +8279,7 @@ func (ec *executionContext) _Project_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 }) @@ -8695,7 +8323,7 @@ func (ec *executionContext) _Project_todos(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.Todos, nil }) @@ -8758,7 +8386,7 @@ func (ec *executionContext) _Query_node(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().Node(rctx, fc.Args["id"].(string)) }) @@ -8810,7 +8438,7 @@ func (ec *executionContext) _Query_nodes(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().Nodes(rctx, fc.Args["ids"].([]string)) }) @@ -8865,7 +8493,7 @@ func (ec *executionContext) _Query_billProducts(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().BillProducts(rctx) }) @@ -8919,7 +8547,7 @@ func (ec *executionContext) _Query_categories(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().Categories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.CategoryOrder), fc.Args["where"].(*ent.CategoryWhereInput)) }) @@ -8982,7 +8610,7 @@ func (ec *executionContext) _Query_groups(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().Groups(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*ent.GroupWhereInput)) }) @@ -9045,7 +8673,7 @@ func (ec *executionContext) _Query_oneToMany(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().OneToMany(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*OneToManyOrder), fc.Args["where"].(*OneToManyWhereInput)) }) @@ -9108,7 +8736,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, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.TodoOrder), fc.Args["where"].(*ent.TodoWhereInput)) }) @@ -9171,7 +8799,7 @@ func (ec *executionContext) _Query_users(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().Users(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*ent.UserOrder), fc.Args["where"].(*ent.UserWhereInput)) }) @@ -9234,7 +8862,7 @@ func (ec *executionContext) _Query_ping(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().Ping(rctx) }) @@ -9278,7 +8906,7 @@ func (ec *executionContext) _Query_todosWithJoins(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().TodosWithJoins(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.TodoOrder), fc.Args["where"].(*ent.TodoWhereInput)) }) @@ -9341,7 +8969,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)) }) @@ -9415,7 +9043,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() }) @@ -9470,7 +9098,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 }) @@ -9514,7 +9142,7 @@ func (ec *executionContext) _Todo_createdAt(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.CreatedAt, nil }) @@ -9558,7 +9186,7 @@ func (ec *executionContext) _Todo_status(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.Todo().Status(rctx, obj) }) @@ -9602,7 +9230,7 @@ func (ec *executionContext) _Todo_priorityOrder(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.Priority, nil }) @@ -9646,7 +9274,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 }) @@ -9690,7 +9318,7 @@ func (ec *executionContext) _Todo_categoryID(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.CategoryID, nil }) @@ -9731,7 +9359,7 @@ func (ec *executionContext) _Todo_category_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.CategoryID, nil }) @@ -9772,7 +9400,7 @@ func (ec *executionContext) _Todo_categoryX(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.CategoryID, nil }) @@ -9813,7 +9441,7 @@ func (ec *executionContext) _Todo_init(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.Init, nil }) @@ -9854,7 +9482,7 @@ func (ec *executionContext) _Todo_custom(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.Custom, nil }) @@ -9899,7 +9527,7 @@ func (ec *executionContext) _Todo_customp(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.Customp, nil }) @@ -9944,7 +9572,7 @@ func (ec *executionContext) _Todo_value(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.Value, nil }) @@ -9988,7 +9616,7 @@ func (ec *executionContext) _Todo_parent(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.Parent(ctx) }) @@ -10063,7 +9691,7 @@ func (ec *executionContext) _Todo_children(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.Children(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.TodoOrder), fc.Args["where"].(*ent.TodoWhereInput)) }) @@ -10126,7 +9754,7 @@ func (ec *executionContext) _Todo_category(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.Category(ctx) }) @@ -10191,7 +9819,7 @@ func (ec *executionContext) _Todo_extendedField(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.Todo().ExtendedField(rctx, obj) }) @@ -10232,7 +9860,7 @@ func (ec *executionContext) _TodoConnection_edges(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.Edges, nil }) @@ -10279,7 +9907,7 @@ func (ec *executionContext) _TodoConnection_pageInfo(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.PageInfo, nil }) @@ -10333,7 +9961,7 @@ func (ec *executionContext) _TodoConnection_totalCount(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.TotalCount, nil }) @@ -10377,7 +10005,7 @@ func (ec *executionContext) _TodoEdge_node(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.Node, nil }) @@ -10452,7 +10080,7 @@ func (ec *executionContext) _TodoEdge_cursor(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.Cursor, nil }) @@ -10496,7 +10124,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 }) @@ -10540,7 +10168,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 }) @@ -10584,7 +10212,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) }) @@ -10628,7 +10256,7 @@ func (ec *executionContext) _User_requiredMetadata(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.User().RequiredMetadata(rctx, obj) }) @@ -10642,7 +10270,7 @@ func (ec *executionContext) _User_requiredMetadata(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(map[string]any) fc.Result = res return ec.marshalNMap2map(ctx, field.Selections, res) } @@ -10672,7 +10300,7 @@ func (ec *executionContext) _User_metadata(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().Metadata(rctx, obj) }) @@ -10683,7 +10311,7 @@ func (ec *executionContext) _User_metadata(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(map[string]any) fc.Result = res return ec.marshalOMap2map(ctx, field.Selections, res) } @@ -10713,7 +10341,7 @@ func (ec *executionContext) _User_groups(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.Groups(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*ent.GroupWhereInput)) }) @@ -10776,7 +10404,7 @@ func (ec *executionContext) _User_friends(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().Friends(rctx, obj, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*ent.UserOrder), fc.Args["where"].(*ent.UserWhereInput)) }) @@ -10839,7 +10467,7 @@ func (ec *executionContext) _User_friendships(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.User().Friendships(rctx, obj, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*ent.FriendshipWhereInput)) }) @@ -10902,7 +10530,7 @@ func (ec *executionContext) _UserConnection_edges(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.Edges, nil }) @@ -10949,7 +10577,7 @@ func (ec *executionContext) _UserConnection_pageInfo(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.PageInfo, nil }) @@ -11003,7 +10631,7 @@ func (ec *executionContext) _UserConnection_totalCount(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.TotalCount, nil }) @@ -11047,7 +10675,7 @@ func (ec *executionContext) _UserEdge_node(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.Node, nil }) @@ -11106,7 +10734,7 @@ func (ec *executionContext) _UserEdge_cursor(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.Cursor, nil }) @@ -11150,7 +10778,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 }) @@ -11194,7 +10822,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 }) @@ -11235,7 +10863,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 }) @@ -11279,7 +10907,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 }) @@ -11333,7 +10961,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 }) @@ -11377,7 +11005,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 }) @@ -11421,7 +11049,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 }) @@ -11462,7 +11090,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 }) @@ -11506,7 +11134,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 }) @@ -11547,7 +11175,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 }) @@ -11591,7 +11219,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 }) @@ -11632,7 +11260,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 }) @@ -11686,7 +11314,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 }) @@ -11752,7 +11380,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 }) @@ -11796,7 +11424,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 }) @@ -11837,7 +11465,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 }) @@ -11881,7 +11509,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 }) @@ -11922,7 +11550,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 }) @@ -11988,7 +11616,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 }) @@ -12029,7 +11657,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 }) @@ -12070,7 +11698,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 }) @@ -12136,7 +11764,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 }) @@ -12202,7 +11830,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 }) @@ -12265,7 +11893,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 }) @@ -12328,7 +11956,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 }) @@ -12384,7 +12012,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 }) @@ -12428,7 +12056,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 }) @@ -12469,7 +12097,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 }) @@ -12510,7 +12138,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 }) @@ -12576,7 +12204,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 }) @@ -12639,7 +12267,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 }) @@ -12702,7 +12330,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 }) @@ -12764,7 +12392,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 }) @@ -12815,7 +12443,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 }) @@ -12878,7 +12506,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 }) @@ -12911,10 +12539,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputBillProductWhereInput(ctx context.Context, obj interface{}) (ent.BillProductWhereInput, error) { +func (ec *executionContext) unmarshalInputBillProductWhereInput(ctx context.Context, obj any) (ent.BillProductWhereInput, error) { var it ent.BillProductWhereInput - 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 } @@ -13246,10 +12874,10 @@ func (ec *executionContext) unmarshalInputBillProductWhereInput(ctx context.Cont return it, nil } -func (ec *executionContext) unmarshalInputCategoryConfigInput(ctx context.Context, obj interface{}) (schematype.CategoryConfig, error) { +func (ec *executionContext) unmarshalInputCategoryConfigInput(ctx context.Context, obj any) (schematype.CategoryConfig, error) { var it schematype.CategoryConfig - 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 } @@ -13273,10 +12901,10 @@ func (ec *executionContext) unmarshalInputCategoryConfigInput(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputCategoryOrder(ctx context.Context, obj interface{}) (ent.CategoryOrder, error) { +func (ec *executionContext) unmarshalInputCategoryOrder(ctx context.Context, obj any) (ent.CategoryOrder, error) { var it ent.CategoryOrder - 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 } @@ -13311,10 +12939,10 @@ func (ec *executionContext) unmarshalInputCategoryOrder(ctx context.Context, obj return it, nil } -func (ec *executionContext) unmarshalInputCategoryTypesInput(ctx context.Context, obj interface{}) (CategoryTypesInput, error) { +func (ec *executionContext) unmarshalInputCategoryTypesInput(ctx context.Context, obj any) (CategoryTypesInput, error) { var it CategoryTypesInput - 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 } @@ -13338,10 +12966,10 @@ func (ec *executionContext) unmarshalInputCategoryTypesInput(ctx context.Context return it, nil } -func (ec *executionContext) unmarshalInputCategoryWhereInput(ctx context.Context, obj interface{}) (ent.CategoryWhereInput, error) { +func (ec *executionContext) unmarshalInputCategoryWhereInput(ctx context.Context, obj any) (ent.CategoryWhereInput, error) { var it ent.CategoryWhereInput - 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 } @@ -13792,10 +13420,10 @@ func (ec *executionContext) unmarshalInputCategoryWhereInput(ctx context.Context return it, nil } -func (ec *executionContext) unmarshalInputCreateCategoryInput(ctx context.Context, obj interface{}) (ent.CreateCategoryInput, error) { +func (ec *executionContext) unmarshalInputCreateCategoryInput(ctx context.Context, obj any) (ent.CreateCategoryInput, error) { var it ent.CreateCategoryInput - 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 } @@ -13886,10 +13514,10 @@ func (ec *executionContext) unmarshalInputCreateCategoryInput(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputCreateTodoInput(ctx context.Context, obj interface{}) (ent.CreateTodoInput, error) { +func (ec *executionContext) unmarshalInputCreateTodoInput(ctx context.Context, obj any) (ent.CreateTodoInput, error) { var it ent.CreateTodoInput - 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 } @@ -13971,10 +13599,10 @@ func (ec *executionContext) unmarshalInputCreateTodoInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, obj interface{}) (CreateUserInput, error) { +func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, 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 } @@ -14040,10 +13668,10 @@ func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputFriendshipWhereInput(ctx context.Context, obj interface{}) (ent.FriendshipWhereInput, error) { +func (ec *executionContext) unmarshalInputFriendshipWhereInput(ctx context.Context, obj any) (ent.FriendshipWhereInput, error) { var it ent.FriendshipWhereInput - 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 } @@ -14193,10 +13821,10 @@ func (ec *executionContext) unmarshalInputFriendshipWhereInput(ctx context.Conte return it, nil } -func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, obj interface{}) (ent.GroupWhereInput, error) { +func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, obj any) (ent.GroupWhereInput, error) { var it ent.GroupWhereInput - 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 } @@ -14395,10 +14023,10 @@ func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputOneToManyOrder(ctx context.Context, obj interface{}) (OneToManyOrder, error) { +func (ec *executionContext) unmarshalInputOneToManyOrder(ctx context.Context, obj any) (OneToManyOrder, error) { var it OneToManyOrder - 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 } @@ -14433,10 +14061,10 @@ func (ec *executionContext) unmarshalInputOneToManyOrder(ctx context.Context, ob return it, nil } -func (ec *executionContext) unmarshalInputOneToManyWhereInput(ctx context.Context, obj interface{}) (OneToManyWhereInput, error) { +func (ec *executionContext) unmarshalInputOneToManyWhereInput(ctx context.Context, obj any) (OneToManyWhereInput, error) { var it OneToManyWhereInput - 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 } @@ -14754,10 +14382,10 @@ func (ec *executionContext) unmarshalInputOneToManyWhereInput(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Context, obj interface{}) (OrganizationWhereInput, error) { +func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Context, obj any) (OrganizationWhereInput, error) { var it OrganizationWhereInput - 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 } @@ -14942,10 +14570,10 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, nil } -func (ec *executionContext) unmarshalInputProjectWhereInput(ctx context.Context, obj interface{}) (ProjectWhereInput, error) { +func (ec *executionContext) unmarshalInputProjectWhereInput(ctx context.Context, obj any) (ProjectWhereInput, error) { var it ProjectWhereInput - 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 } @@ -15053,10 +14681,10 @@ func (ec *executionContext) unmarshalInputProjectWhereInput(ctx context.Context, return it, nil } -func (ec *executionContext) unmarshalInputTodoOrder(ctx context.Context, obj interface{}) (ent.TodoOrder, error) { +func (ec *executionContext) unmarshalInputTodoOrder(ctx context.Context, obj any) (ent.TodoOrder, error) { var it ent.TodoOrder - 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 } @@ -15091,10 +14719,10 @@ func (ec *executionContext) unmarshalInputTodoOrder(ctx context.Context, obj int return it, nil } -func (ec *executionContext) unmarshalInputTodoWhereInput(ctx context.Context, obj interface{}) (ent.TodoWhereInput, error) { +func (ec *executionContext) unmarshalInputTodoWhereInput(ctx context.Context, obj any) (ent.TodoWhereInput, error) { var it ent.TodoWhereInput - 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 } @@ -15576,10 +15204,10 @@ func (ec *executionContext) unmarshalInputTodoWhereInput(ctx context.Context, ob return it, nil } -func (ec *executionContext) unmarshalInputUpdateCategoryInput(ctx context.Context, obj interface{}) (ent.UpdateCategoryInput, error) { +func (ec *executionContext) unmarshalInputUpdateCategoryInput(ctx context.Context, obj any) (ent.UpdateCategoryInput, error) { var it ent.UpdateCategoryInput - 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 } @@ -15731,10 +15359,10 @@ func (ec *executionContext) unmarshalInputUpdateCategoryInput(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputUpdateFriendshipInput(ctx context.Context, obj interface{}) (UpdateFriendshipInput, error) { +func (ec *executionContext) unmarshalInputUpdateFriendshipInput(ctx context.Context, obj any) (UpdateFriendshipInput, error) { var it UpdateFriendshipInput - 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 } @@ -15772,10 +15400,10 @@ func (ec *executionContext) unmarshalInputUpdateFriendshipInput(ctx context.Cont return it, nil } -func (ec *executionContext) unmarshalInputUpdateTodoInput(ctx context.Context, obj interface{}) (ent.UpdateTodoInput, error) { +func (ec *executionContext) unmarshalInputUpdateTodoInput(ctx context.Context, obj any) (ent.UpdateTodoInput, error) { var it ent.UpdateTodoInput - 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 } @@ -15885,10 +15513,10 @@ func (ec *executionContext) unmarshalInputUpdateTodoInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, obj interface{}) (UpdateUserInput, error) { +func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, obj any) (UpdateUserInput, error) { var it UpdateUserInput - 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 } @@ -15996,10 +15624,10 @@ func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputUserOrder(ctx context.Context, obj interface{}) (ent.UserOrder, error) { +func (ec *executionContext) unmarshalInputUserOrder(ctx context.Context, obj any) (ent.UserOrder, error) { var it ent.UserOrder - 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 } @@ -16034,10 +15662,10 @@ func (ec *executionContext) unmarshalInputUserOrder(ctx context.Context, obj int return it, nil } -func (ec *executionContext) unmarshalInputUserWhereInput(ctx context.Context, obj interface{}) (ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalInputUserWhereInput(ctx context.Context, obj any) (ent.UserWhereInput, error) { var it ent.UserWhereInput - 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 } @@ -16345,9 +15973,6 @@ func (ec *executionContext) _NamedNode(ctx context.Context, sel ast.SelectionSet case nil: return graphql.Null case *ent.Group: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"NamedNode", "Group"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } @@ -16362,83 +15987,50 @@ func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj case nil: return graphql.Null case *ent.Group: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Group"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Group(ctx, sel, obj) case *ent.BillProduct: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "BillProduct"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._BillProduct(ctx, sel, obj) case *ent.Category: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Category"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Category(ctx, sel, obj) case *ent.Friendship: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Friendship"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Friendship(ctx, sel, obj) case OneToMany: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "OneToMany"})) == 0 { - return graphql.Empty{} - } return ec._OneToMany(ctx, sel, &obj) case *OneToMany: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "OneToMany"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._OneToMany(ctx, sel, obj) case *ent1.Workspace: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Workspace"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Organization(ctx, sel, obj) case Project: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Project"})) == 0 { - return graphql.Empty{} - } return ec._Project(ctx, sel, &obj) case *Project: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Project"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Project(ctx, sel, obj) case *ent.Todo: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Todo"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Todo(ctx, sel, obj) case *ent.User: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "User"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } @@ -16464,101 +16056,21 @@ func (ec *executionContext) _BillProduct(ctx context.Context, sel ast.SelectionS case "__typename": out.Values[i] = graphql.MarshalString("BillProduct") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._BillProduct_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._BillProduct_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._BillProduct_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._BillProduct_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "sku": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._BillProduct_sku(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._BillProduct_sku(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "quantity": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._BillProduct_quantity(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._BillProduct_quantity(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -16598,126 +16110,34 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("Category") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "text": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_text(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_text(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "status": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_status(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_status(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "config": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_config(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_config(ctx, field, obj) case "types": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_types(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Category_types(ctx, field, obj) + return res } - out.Values[i] = ec._Category_types(ctx, field, obj) - case "duration": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -16730,60 +16150,36 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_duration(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "duration": out.Values[i] = ec._Category_duration(ctx, field, obj) case "count": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_count(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_count(ctx, field, obj) case "strings": + out.Values[i] = ec._Category_strings(ctx, field, obj) + case "todos": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Category_todos(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_strings(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + return res } - out.Values[i] = ec._Category_strings(ctx, field, obj) - case "todos": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -16796,20 +16192,31 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_todos(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Category_todos(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "subCategories": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Category_subCategories(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -16821,20 +16228,28 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_subCategories(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Category_subCategories(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "todosCount": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Category_todosCount(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -16846,14 +16261,15 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_todosCount(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Category_todosCount(ctx, field, obj) + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -16889,35 +16305,15 @@ func (ec *executionContext) _CategoryConfig(ctx context.Context, sel ast.Selecti case "__typename": out.Values[i] = graphql.MarshalString("CategoryConfig") case "maxMembers": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryConfig_maxMembers(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._CategoryConfig_maxMembers(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + out.Values[i] = ec._CategoryConfig_maxMembers(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } atomic.AddInt32(&ec.deferred, int32(len(deferred))) @@ -16945,73 +16341,13 @@ func (ec *executionContext) _CategoryConnection(ctx context.Context, sel ast.Sel case "__typename": out.Values[i] = graphql.MarshalString("CategoryConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17051,48 +16387,8 @@ func (ec *executionContext) _CategoryEdge(ctx context.Context, sel ast.Selection case "__typename": out.Values[i] = graphql.MarshalString("CategoryEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17132,26 +16428,6 @@ func (ec *executionContext) _CategoryTypes(ctx context.Context, sel ast.Selectio case "__typename": out.Values[i] = graphql.MarshalString("CategoryTypes") case "public": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryTypes_public(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryTypes_public(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -17188,26 +16464,6 @@ func (ec *executionContext) _Custom(ctx context.Context, sel ast.SelectionSet, o case "__typename": out.Values[i] = graphql.MarshalString("Custom") case "info": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Custom_info(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Custom_info(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17247,108 +16503,41 @@ func (ec *executionContext) _Friendship(ctx context.Context, sel ast.SelectionSe case "__typename": out.Values[i] = graphql.MarshalString("Friendship") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Friendship_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_createdAt(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Friendship_createdAt(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "userID": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_userID(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Friendship_userID(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "friendID": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_friendID(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Friendship_friendID(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "user": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Friendship_user(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -17360,20 +16549,31 @@ func (ec *executionContext) _Friendship(ctx context.Context, sel ast.SelectionSe deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_user(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Friendship_user(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "friend": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Friendship_friend(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -17385,17 +16585,15 @@ func (ec *executionContext) _Friendship(ctx context.Context, sel ast.SelectionSe deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_friend(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Friendship_friend(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -17431,73 +16629,13 @@ func (ec *executionContext) _FriendshipConnection(ctx context.Context, sel ast.S case "__typename": out.Values[i] = graphql.MarshalString("FriendshipConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17537,48 +16675,8 @@ func (ec *executionContext) _FriendshipEdge(ctx context.Context, sel ast.Selecti case "__typename": out.Values[i] = graphql.MarshalString("FriendshipEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17618,58 +16716,31 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob case "__typename": out.Values[i] = graphql.MarshalString("Group") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Group_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Group_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Group_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Group_name(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "users": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Group_users(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -17681,17 +16752,15 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Group_users(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Group_users(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -17727,73 +16796,13 @@ func (ec *executionContext) _GroupConnection(ctx context.Context, sel ast.Select case "__typename": out.Values[i] = graphql.MarshalString("GroupConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17833,48 +16842,8 @@ func (ec *executionContext) _GroupEdge(ctx context.Context, sel ast.SelectionSet case "__typename": out.Values[i] = graphql.MarshalString("GroupEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17922,8 +16891,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) case "__typename": out.Values[i] = graphql.MarshalString("Mutation") case "createCategory": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createCategory(ctx, field) }) @@ -17931,8 +16898,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "createTodo": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createTodo(ctx, field) }) @@ -17940,8 +16905,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateTodo": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateTodo(ctx, field) }) @@ -17949,8 +16912,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "clearTodos": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_clearTodos(ctx, field) }) @@ -17958,8 +16919,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateFriendship": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateFriendship(ctx, field) }) @@ -18001,120 +16960,20 @@ func (ec *executionContext) _OneToMany(ctx context.Context, sel ast.SelectionSet case "__typename": out.Values[i] = graphql.MarshalString("OneToMany") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToMany_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToMany_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "field2": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_field2(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToMany_field2(ctx, field, obj) case "parent": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_parent(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToMany_parent(ctx, field, obj) case "children": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_children(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToMany_children(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -18151,73 +17010,13 @@ func (ec *executionContext) _OneToManyConnection(ctx context.Context, sel ast.Se case "__typename": out.Values[i] = graphql.MarshalString("OneToManyConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -18257,48 +17056,8 @@ func (ec *executionContext) _OneToManyEdge(ctx context.Context, sel ast.Selectio case "__typename": out.Values[i] = graphql.MarshalString("OneToManyEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -18340,30 +17099,18 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection case "id": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_id(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Organization_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Organization_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + return res } - case "name": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -18376,16 +17123,19 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Organization_name(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "name": out.Values[i] = ec._Organization_name(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } default: panic("unknown field " + strconv.Quote(field.Name)) @@ -18422,98 +17172,18 @@ func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("PageInfo") case "hasNextPage": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_hasNextPage(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._PageInfo_hasNextPage(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "hasPreviousPage": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_hasPreviousPage(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._PageInfo_hasPreviousPage(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "startCursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_startCursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._PageInfo_startCursor(ctx, field, obj) case "endCursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_endCursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._PageInfo_endCursor(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -18550,51 +17220,11 @@ func (ec *executionContext) _Project(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("Project") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Project_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Project_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "todos": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Project_todos(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Project_todos(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -18644,99 +17274,225 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr case "node": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_node(ctx, field) - }) + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_node(ctx, field) + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "nodes": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_nodes(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_nodes(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "billProducts": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_billProducts(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_billProducts(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "categories": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_categories(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_categories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "groups": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_groups(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_groups(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "oneToMany": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_oneToMany(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_oneToMany(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "todos": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_todos(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_todos(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "users": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_users(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_users(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "ping": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_ping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_ping(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "todosWithJoins": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_todosWithJoins(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_todosWithJoins(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "__type": - field := field + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "__type": out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Query___type(ctx, field) }) case "__schema": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Query___schema(ctx, field) }) @@ -18775,82 +17531,30 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj case "__typename": out.Values[i] = graphql.MarshalString("Todo") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_createdAt(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_createdAt(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "status": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_status(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_status(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + return res } - case "priorityOrder": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -18863,20 +17567,55 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_priorityOrder(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "priorityOrder": out.Values[i] = ec._Todo_priorityOrder(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "text": + out.Values[i] = ec._Todo_text(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "categoryID": + out.Values[i] = ec._Todo_categoryID(ctx, field, obj) + case "category_id": + out.Values[i] = ec._Todo_category_id(ctx, field, obj) + case "categoryX": + out.Values[i] = ec._Todo_categoryX(ctx, field, obj) + case "init": + out.Values[i] = ec._Todo_init(ctx, field, obj) + case "custom": + out.Values[i] = ec._Todo_custom(ctx, field, obj) + case "customp": + out.Values[i] = ec._Todo_customp(ctx, field, obj) + case "value": + out.Values[i] = ec._Todo_value(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "parent": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_parent(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -18888,20 +17627,31 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_text(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_text(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "categoryID": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "children": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_children(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -18913,17 +17663,28 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_categoryID(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_categoryID(ctx, field, obj) - case "category_id": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "category": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_category(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -18935,17 +17696,28 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_category_id(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_category_id(ctx, field, obj) - case "categoryX": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "extendedField": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_extendedField(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -18957,61 +17729,162 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_categoryX(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_categoryX(ctx, field, obj) - case "init": - field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_init(ctx, field, obj) - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var todoConnectionImplementors = []string{"TodoConnection"} + +func (ec *executionContext) _TodoConnection(ctx context.Context, sel ast.SelectionSet, obj *ent.TodoConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, todoConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TodoConnection") + case "edges": + out.Values[i] = ec._TodoConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._TodoConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - out.Values[i] = ec._Todo_init(ctx, field, obj) - case "custom": - field := field + case "totalCount": + out.Values[i] = ec._TodoConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_custom(ctx, field, obj) - }) + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var todoEdgeImplementors = []string{"TodoEdge"} + +func (ec *executionContext) _TodoEdge(ctx context.Context, sel ast.SelectionSet, obj *ent.TodoEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, todoEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TodoEdge") + case "node": + out.Values[i] = ec._TodoEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._TodoEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - out.Values[i] = ec._Todo_custom(ctx, field, obj) - case "customp": + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var userImplementors = []string{"User", "Node"} + +func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj *ent.User) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("User") + case "id": + out.Values[i] = ec._User_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "name": + out.Values[i] = ec._User_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "username": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._User_username(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -19023,17 +17896,31 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_customp(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_customp(ctx, field, obj) - case "value": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "requiredMetadata": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._User_requiredMetadata(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -19045,20 +17932,28 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_value(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_value(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "parent": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "metadata": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._User_metadata(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -19070,17 +17965,31 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_parent(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_parent(ctx, field, obj) - case "children": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "groups": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._User_groups(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -19092,20 +18001,31 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_children(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_children(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "category": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "friends": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._User_friends(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -19117,17 +18037,31 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_category(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_category(ctx, field, obj) - case "extendedField": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "friendships": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._User_friendships(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -19139,14 +18073,15 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_extendedField(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_extendedField(ctx, field, obj) + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -19170,86 +18105,67 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj return out } -var todoConnectionImplementors = []string{"TodoConnection"} +var userConnectionImplementors = []string{"UserConnection"} -func (ec *executionContext) _TodoConnection(ctx context.Context, sel ast.SelectionSet, obj *ent.TodoConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, todoConnectionImplementors) +func (ec *executionContext) _UserConnection(ctx context.Context, sel ast.SelectionSet, obj *ent.UserConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("TodoConnection") + out.Values[i] = graphql.MarshalString("UserConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._TodoConnection_edges(ctx, field, obj) + out.Values[i] = ec._UserConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._TodoConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._UserConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field + out.Values[i] = ec._UserConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoConnection_totalCount(ctx, field, obj) - }) + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._TodoConnection_totalCount(ctx, field, obj) + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var userEdgeImplementors = []string{"UserEdge"} + +func (ec *executionContext) _UserEdge(ctx context.Context, sel ast.SelectionSet, obj *ent.UserEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserEdge") + case "node": + out.Values[i] = ec._UserEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._UserEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -19276,61 +18192,36 @@ func (ec *executionContext) _TodoConnection(ctx context.Context, sel ast.Selecti return out } -var todoEdgeImplementors = []string{"TodoEdge"} +var __DirectiveImplementors = []string{"__Directive"} -func (ec *executionContext) _TodoEdge(ctx context.Context, sel ast.SelectionSet, obj *ent.TodoEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, todoEdgeImplementors) +func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("TodoEdge") - case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + out.Values[i] = graphql.MarshalString("__Directive") + case "name": + out.Values[i] = ec.___Directive_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - out.Values[i] = ec._TodoEdge_node(ctx, field, obj) - case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "description": + out.Values[i] = ec.___Directive_description(ctx, field, obj) + case "locations": + out.Values[i] = ec.___Directive_locations(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - out.Values[i] = ec._TodoEdge_cursor(ctx, field, obj) + case "args": + out.Values[i] = ec.___Directive_args(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -19357,214 +18248,89 @@ func (ec *executionContext) _TodoEdge(ctx context.Context, sel ast.SelectionSet, return out } -var userImplementors = []string{"User", "Node"} +var __EnumValueImplementors = []string{"__EnumValue"} -func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj *ent.User) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userImplementors) +func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("User") - case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._User_id(ctx, field, obj) + out.Values[i] = graphql.MarshalString("__EnumValue") + case "name": + out.Values[i] = ec.___EnumValue_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._User_name(ctx, field, obj) + case "description": + out.Values[i] = ec.___EnumValue_description(ctx, field, obj) + case "isDeprecated": + out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "username": - field := field + case "deprecationReason": + out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_username(ctx, field, obj) - }) + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var __FieldImplementors = []string{"__Field"} + +func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("__Field") + case "name": + out.Values[i] = ec.___Field_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - out.Values[i] = ec._User_username(ctx, field, obj) + case "description": + out.Values[i] = ec.___Field_description(ctx, field, obj) + case "args": + out.Values[i] = ec.___Field_args(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "requiredMetadata": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_requiredMetadata(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "type": + out.Values[i] = ec.___Field_type(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - out.Values[i] = ec._User_requiredMetadata(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "metadata": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_metadata(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._User_metadata(ctx, field, obj) - case "groups": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_groups(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._User_groups(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "friends": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_friends(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._User_friends(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "friendships": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_friendships(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._User_friendships(ctx, field, obj) + case "isDeprecated": + out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } + case "deprecationReason": + out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -19588,89 +18354,31 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj return out } -var userConnectionImplementors = []string{"UserConnection"} +var __InputValueImplementors = []string{"__InputValue"} -func (ec *executionContext) _UserConnection(ctx context.Context, sel ast.SelectionSet, obj *ent.UserConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userConnectionImplementors) +func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("UserConnection") - case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._UserConnection_edges(ctx, field, obj) - case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._UserConnection_pageInfo(ctx, field, obj) + out.Values[i] = graphql.MarshalString("__InputValue") + case "name": + out.Values[i] = ec.___InputValue_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._UserConnection_totalCount(ctx, field, obj) + case "description": + out.Values[i] = ec.___InputValue_description(ctx, field, obj) + case "type": + out.Values[i] = ec.___InputValue_type(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } + case "defaultValue": + out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -19694,61 +18402,35 @@ func (ec *executionContext) _UserConnection(ctx context.Context, sel ast.Selecti return out } -var userEdgeImplementors = []string{"UserEdge"} +var __SchemaImplementors = []string{"__Schema"} -func (ec *executionContext) _UserEdge(ctx context.Context, sel ast.SelectionSet, obj *ent.UserEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userEdgeImplementors) +func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("UserEdge") - case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + out.Values[i] = graphql.MarshalString("__Schema") + case "description": + out.Values[i] = ec.___Schema_description(ctx, field, obj) + case "types": + out.Values[i] = ec.___Schema_types(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - out.Values[i] = ec._UserEdge_node(ctx, field, obj) - case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "queryType": + out.Values[i] = ec.___Schema_queryType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - out.Values[i] = ec._UserEdge_cursor(ctx, field, obj) + case "mutationType": + out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) + case "subscriptionType": + out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) + case "directives": + out.Values[i] = ec.___Schema_directives(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -19775,1004 +18457,39 @@ func (ec *executionContext) _UserEdge(ctx context.Context, sel ast.SelectionSet, return out } -var __DirectiveImplementors = []string{"__Directive"} +var __TypeImplementors = []string{"__Type"} -func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) +func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("__Directive") + out.Values[i] = graphql.MarshalString("__Type") + case "kind": + out.Values[i] = ec.___Type_kind(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___Directive_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___Directive_description(ctx, field, obj) - case "locations": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_locations(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___Directive_locations(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "args": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_args(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___Directive_args(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isRepeatable": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_isRepeatable(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __EnumValueImplementors = []string{"__EnumValue"} - -func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__EnumValue") - case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___EnumValue_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___EnumValue_description(ctx, field, obj) - case "isDeprecated": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_isDeprecated(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deprecationReason": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_deprecationReason(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __FieldImplementors = []string{"__Field"} - -func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Field") - case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___Field_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___Field_description(ctx, field, obj) - case "args": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_args(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___Field_args(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "type": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_type(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___Field_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isDeprecated": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_isDeprecated(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deprecationReason": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_deprecationReason(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __InputValueImplementors = []string{"__InputValue"} - -func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__InputValue") - case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___InputValue_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___InputValue_description(ctx, field, obj) - case "type": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_type(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___InputValue_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "defaultValue": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_defaultValue(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __SchemaImplementors = []string{"__Schema"} - -func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Schema") - case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___Schema_description(ctx, field, obj) - case "types": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_types(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___Schema_types(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "queryType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_queryType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___Schema_queryType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "mutationType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_mutationType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) - case "subscriptionType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_subscriptionType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) - case "directives": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_directives(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___Schema_directives(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __TypeImplementors = []string{"__Type"} - -func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Type") - case "kind": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_kind(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec.___Type_kind(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_name(ctx, field, obj) case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_description(ctx, field, obj) case "fields": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_fields(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_fields(ctx, field, obj) case "interfaces": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_interfaces(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_interfaces(ctx, field, obj) case "possibleTypes": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_possibleTypes(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) case "enumValues": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_enumValues(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_enumValues(ctx, field, obj) case "inputFields": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_inputFields(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_inputFields(ctx, field, obj) case "ofType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_ofType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_ofType(ctx, field, obj) case "specifiedByURL": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_specifiedByURL(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -20804,7 +18521,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o func (ec *executionContext) marshalNBillProduct2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐBillProductᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.BillProduct) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -20855,12 +18572,12 @@ func (ec *executionContext) marshalNBillProduct2ᚖentgoᚗioᚋcontribᚋentgql return ec._BillProduct(ctx, sel, v) } -func (ec *executionContext) unmarshalNBillProductWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐBillProductWhereInput(ctx context.Context, v interface{}) (*ent.BillProductWhereInput, error) { +func (ec *executionContext) unmarshalNBillProductWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐBillProductWhereInput(ctx context.Context, v any) (*ent.BillProductWhereInput, error) { res, err := ec.unmarshalInputBillProductWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -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) } @@ -20889,7 +18606,7 @@ func (ec *executionContext) marshalNCategory2ᚖentgoᚗioᚋcontribᚋentgqlᚋ return ec._Category(ctx, sel, v) } -func (ec *executionContext) unmarshalNCategoryConfigInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfig(ctx context.Context, v interface{}) (*schematype.CategoryConfig, error) { +func (ec *executionContext) unmarshalNCategoryConfigInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfig(ctx context.Context, v any) (*schematype.CategoryConfig, error) { res, err := ec.unmarshalInputCategoryConfigInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -20908,12 +18625,12 @@ func (ec *executionContext) marshalNCategoryConnection2ᚖentgoᚗioᚋcontrib return ec._CategoryConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNCategoryOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCategoryOrder(ctx context.Context, v interface{}) (*ent.CategoryOrder, error) { +func (ec *executionContext) unmarshalNCategoryOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCategoryOrder(ctx context.Context, v any) (*ent.CategoryOrder, error) { res, err := ec.unmarshalInputCategoryOrder(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCategoryOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCategoryOrderField(ctx context.Context, v interface{}) (*ent.CategoryOrderField, error) { +func (ec *executionContext) unmarshalNCategoryOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCategoryOrderField(ctx context.Context, v any) (*ent.CategoryOrderField, error) { var res = new(ent.CategoryOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -20929,7 +18646,7 @@ func (ec *executionContext) marshalNCategoryOrderField2ᚖentgoᚗioᚋcontrib return v } -func (ec *executionContext) unmarshalNCategoryStatus2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚋcategoryᚐStatus(ctx context.Context, v interface{}) (category.Status, error) { +func (ec *executionContext) unmarshalNCategoryStatus2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚋcategoryᚐStatus(ctx context.Context, v any) (category.Status, error) { var res category.Status err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -20939,27 +18656,27 @@ func (ec *executionContext) marshalNCategoryStatus2entgoᚗioᚋcontribᚋentgql return v } -func (ec *executionContext) unmarshalNCategoryWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCategoryWhereInput(ctx context.Context, v interface{}) (*ent.CategoryWhereInput, error) { +func (ec *executionContext) unmarshalNCategoryWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCategoryWhereInput(ctx context.Context, v any) (*ent.CategoryWhereInput, error) { res, err := ec.unmarshalInputCategoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateCategoryInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCreateCategoryInput(ctx context.Context, v interface{}) (ent.CreateCategoryInput, error) { +func (ec *executionContext) unmarshalNCreateCategoryInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCreateCategoryInput(ctx context.Context, v any) (ent.CreateCategoryInput, error) { res, err := ec.unmarshalInputCreateCategoryInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateTodoInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCreateTodoInput(ctx context.Context, v interface{}) (ent.CreateTodoInput, error) { +func (ec *executionContext) unmarshalNCreateTodoInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCreateTodoInput(ctx context.Context, v any) (ent.CreateTodoInput, error) { res, err := ec.unmarshalInputCreateTodoInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateTodoInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCreateTodoInput(ctx context.Context, v interface{}) (*ent.CreateTodoInput, error) { +func (ec *executionContext) unmarshalNCreateTodoInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCreateTodoInput(ctx context.Context, v any) (*ent.CreateTodoInput, error) { res, err := ec.unmarshalInputCreateTodoInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v interface{}) (entgql.Cursor[string], error) { +func (ec *executionContext) unmarshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v any) (entgql.Cursor[string], error) { var res entgql.Cursor[string] err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -20973,7 +18690,7 @@ func (ec *executionContext) marshalNCustom2entgoᚗioᚋcontribᚋentgqlᚋinter return ec._Custom(ctx, sel, &v) } -func (ec *executionContext) unmarshalNDuration2timeᚐDuration(ctx context.Context, v interface{}) (time.Duration, error) { +func (ec *executionContext) unmarshalNDuration2timeᚐDuration(ctx context.Context, v any) (time.Duration, error) { res, err := durationgql.UnmarshalDuration(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -21016,7 +18733,7 @@ func (ec *executionContext) marshalNFriendshipConnection2ᚖentgoᚗioᚋcontrib return ec._FriendshipConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNFriendshipWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐFriendshipWhereInput(ctx context.Context, v interface{}) (*ent.FriendshipWhereInput, error) { +func (ec *executionContext) unmarshalNFriendshipWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐFriendshipWhereInput(ctx context.Context, v any) (*ent.FriendshipWhereInput, error) { res, err := ec.unmarshalInputFriendshipWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -21035,12 +18752,12 @@ func (ec *executionContext) marshalNGroupConnection2ᚖentgoᚗioᚋcontribᚋen return ec._GroupConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNGroupWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐGroupWhereInput(ctx context.Context, v interface{}) (*ent.GroupWhereInput, error) { +func (ec *executionContext) unmarshalNGroupWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐGroupWhereInput(ctx context.Context, v any) (*ent.GroupWhereInput, error) { res, err := ec.unmarshalInputGroupWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNID2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚋschemaᚋbigintgqlᚐBigInt(ctx context.Context, v interface{}) (bigintgql.BigInt, error) { +func (ec *executionContext) unmarshalNID2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚋschemaᚋbigintgqlᚐBigInt(ctx context.Context, v any) (bigintgql.BigInt, error) { var res bigintgql.BigInt err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -21050,7 +18767,7 @@ func (ec *executionContext) marshalNID2entgoᚗioᚋcontribᚋentgqlᚋinternal return 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) } @@ -21065,8 +18782,8 @@ func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.Selec return res } -func (ec *executionContext) unmarshalNID2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNID2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21097,7 +18814,7 @@ func (ec *executionContext) marshalNID2ᚕstringᚄ(ctx context.Context, sel ast return ret } -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) } @@ -21112,12 +18829,12 @@ func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.Selecti 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") @@ -21136,7 +18853,7 @@ func (ec *executionContext) marshalNMap2map(ctx context.Context, sel ast.Selecti func (ec *executionContext) marshalNNode2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐNoder(ctx context.Context, sel ast.SelectionSet, v []ent.Noder) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21195,7 +18912,7 @@ func (ec *executionContext) marshalNOneToManyConnection2ᚖentgoᚗioᚋcontrib return ec._OneToManyConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNOneToManyOrderField2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐOneToManyOrderField(ctx context.Context, v interface{}) (OneToManyOrderField, error) { +func (ec *executionContext) unmarshalNOneToManyOrderField2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐOneToManyOrderField(ctx context.Context, v any) (OneToManyOrderField, error) { var res OneToManyOrderField err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -21205,12 +18922,12 @@ func (ec *executionContext) marshalNOneToManyOrderField2entgoᚗioᚋcontribᚋe return v } -func (ec *executionContext) unmarshalNOneToManyWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐOneToManyWhereInput(ctx context.Context, v interface{}) (*OneToManyWhereInput, error) { +func (ec *executionContext) unmarshalNOneToManyWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐOneToManyWhereInput(ctx context.Context, v any) (*OneToManyWhereInput, error) { res, err := ec.unmarshalInputOneToManyWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx context.Context, v interface{}) (entgql.OrderDirection, error) { +func (ec *executionContext) unmarshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx context.Context, v any) (entgql.OrderDirection, error) { var res entgql.OrderDirection err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -21220,7 +18937,7 @@ func (ec *executionContext) marshalNOrderDirection2entgoᚗioᚋcontribᚋentgql return v } -func (ec *executionContext) unmarshalNOrganizationWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐOrganizationWhereInput(ctx context.Context, v interface{}) (*OrganizationWhereInput, error) { +func (ec *executionContext) unmarshalNOrganizationWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐOrganizationWhereInput(ctx context.Context, v any) (*OrganizationWhereInput, error) { res, err := ec.unmarshalInputOrganizationWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -21239,12 +18956,12 @@ func (ec *executionContext) marshalNPageInfo2ᚖentgoᚗioᚋcontribᚋentgqlᚐ return ec._PageInfo(ctx, sel, v) } -func (ec *executionContext) unmarshalNProjectWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐProjectWhereInput(ctx context.Context, v interface{}) (*ProjectWhereInput, error) { +func (ec *executionContext) unmarshalNProjectWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐProjectWhereInput(ctx context.Context, v any) (*ProjectWhereInput, error) { res, err := ec.unmarshalInputProjectWhereInput(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) } @@ -21259,8 +18976,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) } @@ -21291,7 +19008,7 @@ func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel return ret } -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) } @@ -21334,12 +19051,12 @@ func (ec *executionContext) marshalNTodoConnection2ᚖentgoᚗioᚋcontribᚋent return ec._TodoConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNTodoOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐTodoOrder(ctx context.Context, v interface{}) (*ent.TodoOrder, error) { +func (ec *executionContext) unmarshalNTodoOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐTodoOrder(ctx context.Context, v any) (*ent.TodoOrder, error) { res, err := ec.unmarshalInputTodoOrder(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNTodoOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐTodoOrderField(ctx context.Context, v interface{}) (*ent.TodoOrderField, error) { +func (ec *executionContext) unmarshalNTodoOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐTodoOrderField(ctx context.Context, v any) (*ent.TodoOrderField, error) { var res = new(ent.TodoOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -21355,7 +19072,7 @@ func (ec *executionContext) marshalNTodoOrderField2ᚖentgoᚗioᚋcontribᚋent return v } -func (ec *executionContext) unmarshalNTodoStatus2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatus(ctx context.Context, v interface{}) (todo.Status, error) { +func (ec *executionContext) unmarshalNTodoStatus2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatus(ctx context.Context, v any) (todo.Status, error) { var res todo.Status err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -21365,12 +19082,12 @@ func (ec *executionContext) marshalNTodoStatus2entgoᚗioᚋcontribᚋentgqlᚋi return v } -func (ec *executionContext) unmarshalNTodoWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐTodoWhereInput(ctx context.Context, v interface{}) (*ent.TodoWhereInput, error) { +func (ec *executionContext) unmarshalNTodoWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐTodoWhereInput(ctx context.Context, v any) (*ent.TodoWhereInput, error) { res, err := ec.unmarshalInputTodoWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -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) } @@ -21385,7 +19102,7 @@ func (ec *executionContext) marshalNUUID2string(ctx context.Context, sel ast.Sel return res } -func (ec *executionContext) unmarshalNUint642uint64(ctx context.Context, v interface{}) (uint64, error) { +func (ec *executionContext) unmarshalNUint642uint64(ctx context.Context, v any) (uint64, error) { res, err := graphql.UnmarshalUint64(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -21400,12 +19117,12 @@ func (ec *executionContext) marshalNUint642uint64(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalNUpdateFriendshipInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐUpdateFriendshipInput(ctx context.Context, v interface{}) (UpdateFriendshipInput, error) { +func (ec *executionContext) unmarshalNUpdateFriendshipInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐUpdateFriendshipInput(ctx context.Context, v any) (UpdateFriendshipInput, error) { res, err := ec.unmarshalInputUpdateFriendshipInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNUpdateTodoInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐUpdateTodoInput(ctx context.Context, v interface{}) (ent.UpdateTodoInput, error) { +func (ec *executionContext) unmarshalNUpdateTodoInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐUpdateTodoInput(ctx context.Context, v any) (ent.UpdateTodoInput, error) { res, err := ec.unmarshalInputUpdateTodoInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -21434,7 +19151,7 @@ func (ec *executionContext) marshalNUserConnection2ᚖentgoᚗioᚋcontribᚋent return ec._UserConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNUserOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐUserOrderField(ctx context.Context, v interface{}) (*ent.UserOrderField, error) { +func (ec *executionContext) unmarshalNUserOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐUserOrderField(ctx context.Context, v any) (*ent.UserOrderField, error) { var res = new(ent.UserOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -21450,7 +19167,7 @@ func (ec *executionContext) marshalNUserOrderField2ᚖentgoᚗioᚋcontribᚋent return v } -func (ec *executionContext) unmarshalNUserWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐUserWhereInput(ctx context.Context, v interface{}) (*ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalNUserWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐUserWhereInput(ctx context.Context, v any) (*ent.UserWhereInput, error) { res, err := ec.unmarshalInputUserWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -21462,7 +19179,7 @@ func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlge func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21503,7 +19220,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) } @@ -21518,8 +19235,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) } @@ -21538,7 +19255,7 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21594,7 +19311,7 @@ func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlg func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21642,7 +19359,7 @@ func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋg func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21693,7 +19410,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) } @@ -21708,11 +19425,11 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBillProductWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐBillProductWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.BillProductWhereInput, error) { +func (ec *executionContext) unmarshalOBillProductWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐBillProductWhereInputᚄ(ctx context.Context, v any) ([]*ent.BillProductWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21728,7 +19445,7 @@ func (ec *executionContext) unmarshalOBillProductWhereInput2ᚕᚖentgoᚗioᚋc return res, nil } -func (ec *executionContext) unmarshalOBillProductWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐBillProductWhereInput(ctx context.Context, v interface{}) (*ent.BillProductWhereInput, error) { +func (ec *executionContext) unmarshalOBillProductWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐBillProductWhereInput(ctx context.Context, v any) (*ent.BillProductWhereInput, error) { if v == nil { return nil, nil } @@ -21736,7 +19453,7 @@ func (ec *executionContext) unmarshalOBillProductWhereInput2ᚖentgoᚗioᚋcont return &res, graphql.ErrorOnPath(ctx, err) } -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) } @@ -21746,7 +19463,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 } @@ -21776,11 +19493,11 @@ func (ec *executionContext) marshalOCategoryConfig2ᚖentgoᚗioᚋcontribᚋent return ec._CategoryConfig(ctx, sel, v) } -func (ec *executionContext) unmarshalOCategoryConfigInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfigᚄ(ctx context.Context, v interface{}) ([]*schematype.CategoryConfig, error) { +func (ec *executionContext) unmarshalOCategoryConfigInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfigᚄ(ctx context.Context, v any) ([]*schematype.CategoryConfig, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21796,7 +19513,7 @@ func (ec *executionContext) unmarshalOCategoryConfigInput2ᚕᚖentgoᚗioᚋcon return res, nil } -func (ec *executionContext) unmarshalOCategoryConfigInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfig(ctx context.Context, v interface{}) (*schematype.CategoryConfig, error) { +func (ec *executionContext) unmarshalOCategoryConfigInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfig(ctx context.Context, v any) (*schematype.CategoryConfig, error) { if v == nil { return nil, nil } @@ -21810,7 +19527,7 @@ func (ec *executionContext) marshalOCategoryEdge2ᚕᚖentgoᚗioᚋcontribᚋen } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21852,11 +19569,11 @@ func (ec *executionContext) marshalOCategoryEdge2ᚖentgoᚗioᚋcontribᚋentgq return ec._CategoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOCategoryOrder2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCategoryOrderᚄ(ctx context.Context, v interface{}) ([]*ent.CategoryOrder, error) { +func (ec *executionContext) unmarshalOCategoryOrder2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCategoryOrderᚄ(ctx context.Context, v any) ([]*ent.CategoryOrder, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21872,11 +19589,11 @@ func (ec *executionContext) unmarshalOCategoryOrder2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOCategoryStatus2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚋcategoryᚐStatusᚄ(ctx context.Context, v interface{}) ([]category.Status, error) { +func (ec *executionContext) unmarshalOCategoryStatus2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚋcategoryᚐStatusᚄ(ctx context.Context, v any) ([]category.Status, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21898,7 +19615,7 @@ func (ec *executionContext) marshalOCategoryStatus2ᚕentgoᚗioᚋcontribᚋent } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21939,7 +19656,7 @@ func (ec *executionContext) marshalOCategoryStatus2ᚕentgoᚗioᚋcontribᚋent return ret } -func (ec *executionContext) unmarshalOCategoryStatus2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚋcategoryᚐStatus(ctx context.Context, v interface{}) (*category.Status, error) { +func (ec *executionContext) unmarshalOCategoryStatus2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚋcategoryᚐStatus(ctx context.Context, v any) (*category.Status, error) { if v == nil { return nil, nil } @@ -21962,7 +19679,7 @@ func (ec *executionContext) marshalOCategoryTypes2ᚖentgoᚗioᚋcontribᚋentg return ec._CategoryTypes(ctx, sel, v) } -func (ec *executionContext) unmarshalOCategoryTypesInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐCategoryTypesInput(ctx context.Context, v interface{}) (*CategoryTypesInput, error) { +func (ec *executionContext) unmarshalOCategoryTypesInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐCategoryTypesInput(ctx context.Context, v any) (*CategoryTypesInput, error) { if v == nil { return nil, nil } @@ -21970,11 +19687,11 @@ func (ec *executionContext) unmarshalOCategoryTypesInput2ᚖentgoᚗioᚋcontrib return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOCategoryWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCategoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.CategoryWhereInput, error) { +func (ec *executionContext) unmarshalOCategoryWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCategoryWhereInputᚄ(ctx context.Context, v any) ([]*ent.CategoryWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21990,7 +19707,7 @@ func (ec *executionContext) unmarshalOCategoryWhereInput2ᚕᚖentgoᚗioᚋcont return res, nil } -func (ec *executionContext) unmarshalOCategoryWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCategoryWhereInput(ctx context.Context, v interface{}) (*ent.CategoryWhereInput, error) { +func (ec *executionContext) unmarshalOCategoryWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCategoryWhereInput(ctx context.Context, v any) (*ent.CategoryWhereInput, error) { if v == nil { return nil, nil } @@ -21998,11 +19715,11 @@ func (ec *executionContext) unmarshalOCategoryWhereInput2ᚖentgoᚗioᚋcontrib return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOCreateTodoInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCreateTodoInputᚄ(ctx context.Context, v interface{}) ([]*ent.CreateTodoInput, error) { +func (ec *executionContext) unmarshalOCreateTodoInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐCreateTodoInputᚄ(ctx context.Context, v any) ([]*ent.CreateTodoInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22018,7 +19735,7 @@ func (ec *executionContext) unmarshalOCreateTodoInput2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v interface{}) (*entgql.Cursor[string], error) { +func (ec *executionContext) unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v any) (*entgql.Cursor[string], error) { if v == nil { return nil, nil } @@ -22040,7 +19757,7 @@ func (ec *executionContext) marshalOCustom2ᚕentgoᚗioᚋcontribᚋentgqlᚋin } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22087,7 +19804,7 @@ func (ec *executionContext) marshalOCustom2ᚕᚖentgoᚗioᚋcontribᚋentgql } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22129,7 +19846,7 @@ func (ec *executionContext) marshalOCustom2ᚖentgoᚗioᚋcontribᚋentgqlᚋin return ec._Custom(ctx, sel, v) } -func (ec *executionContext) unmarshalODuration2timeᚐDuration(ctx context.Context, v interface{}) (time.Duration, error) { +func (ec *executionContext) unmarshalODuration2timeᚐDuration(ctx context.Context, v any) (time.Duration, error) { res, err := durationgql.UnmarshalDuration(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -22139,11 +19856,11 @@ func (ec *executionContext) marshalODuration2timeᚐDuration(ctx context.Context return res } -func (ec *executionContext) unmarshalODuration2ᚕtimeᚐDurationᚄ(ctx context.Context, v interface{}) ([]time.Duration, error) { +func (ec *executionContext) unmarshalODuration2ᚕtimeᚐDurationᚄ(ctx context.Context, v any) ([]time.Duration, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22177,7 +19894,7 @@ func (ec *executionContext) marshalODuration2ᚕtimeᚐDurationᚄ(ctx context.C return ret } -func (ec *executionContext) unmarshalODuration2ᚖtimeᚐDuration(ctx context.Context, v interface{}) (*time.Duration, error) { +func (ec *executionContext) unmarshalODuration2ᚖtimeᚐDuration(ctx context.Context, v any) (*time.Duration, error) { if v == nil { return nil, nil } @@ -22206,7 +19923,7 @@ func (ec *executionContext) marshalOFriendshipEdge2ᚕᚖentgoᚗioᚋcontribᚋ } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22248,11 +19965,11 @@ func (ec *executionContext) marshalOFriendshipEdge2ᚖentgoᚗioᚋcontribᚋent return ec._FriendshipEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐFriendshipWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.FriendshipWhereInput, error) { +func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐFriendshipWhereInputᚄ(ctx context.Context, v any) ([]*ent.FriendshipWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22268,7 +19985,7 @@ func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚕᚖentgoᚗioᚋco return res, nil } -func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐFriendshipWhereInput(ctx context.Context, v interface{}) (*ent.FriendshipWhereInput, error) { +func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐFriendshipWhereInput(ctx context.Context, v any) (*ent.FriendshipWhereInput, error) { if v == nil { return nil, nil } @@ -22289,7 +20006,7 @@ func (ec *executionContext) marshalOGroupEdge2ᚕᚖentgoᚗioᚋcontribᚋentgq } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22331,11 +20048,11 @@ func (ec *executionContext) marshalOGroupEdge2ᚖentgoᚗioᚋcontribᚋentgql return ec._GroupEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOGroupWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐGroupWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.GroupWhereInput, error) { +func (ec *executionContext) unmarshalOGroupWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐGroupWhereInputᚄ(ctx context.Context, v any) ([]*ent.GroupWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22351,7 +20068,7 @@ func (ec *executionContext) unmarshalOGroupWhereInput2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOGroupWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐGroupWhereInput(ctx context.Context, v interface{}) (*ent.GroupWhereInput, error) { +func (ec *executionContext) unmarshalOGroupWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐGroupWhereInput(ctx context.Context, v any) (*ent.GroupWhereInput, error) { if v == nil { return nil, nil } @@ -22359,7 +20076,7 @@ func (ec *executionContext) unmarshalOGroupWhereInput2ᚖentgoᚗioᚋcontribᚋ return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOID2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚋschemaᚋbigintgqlᚐBigInt(ctx context.Context, v interface{}) (bigintgql.BigInt, error) { +func (ec *executionContext) unmarshalOID2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚋschemaᚋbigintgqlᚐBigInt(ctx context.Context, v any) (bigintgql.BigInt, error) { var res bigintgql.BigInt err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -22369,11 +20086,11 @@ func (ec *executionContext) marshalOID2entgoᚗioᚋcontribᚋentgqlᚋinternal return v } -func (ec *executionContext) unmarshalOID2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚋschemaᚋbigintgqlᚐBigIntᚄ(ctx context.Context, v interface{}) ([]bigintgql.BigInt, error) { +func (ec *executionContext) unmarshalOID2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚋschemaᚋbigintgqlᚐBigIntᚄ(ctx context.Context, v any) ([]bigintgql.BigInt, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22407,11 +20124,11 @@ func (ec *executionContext) marshalOID2ᚕentgoᚗioᚋcontribᚋentgqlᚋintern return ret } -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 } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22445,7 +20162,7 @@ func (ec *executionContext) marshalOID2ᚕstringᚄ(ctx context.Context, sel ast return ret } -func (ec *executionContext) unmarshalOID2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚋschemaᚋbigintgqlᚐBigInt(ctx context.Context, v interface{}) (*bigintgql.BigInt, error) { +func (ec *executionContext) unmarshalOID2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚋschemaᚋbigintgqlᚐBigInt(ctx context.Context, v any) (*bigintgql.BigInt, error) { if v == nil { return nil, nil } @@ -22461,7 +20178,7 @@ func (ec *executionContext) marshalOID2ᚖentgoᚗioᚋcontribᚋentgqlᚋintern return 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 } @@ -22477,7 +20194,7 @@ func (ec *executionContext) marshalOID2ᚖstring(ctx context.Context, sel ast.Se return res } -func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -22487,11 +20204,11 @@ func (ec *executionContext) marshalOInt2int(ctx context.Context, sel ast.Selecti 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 } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22525,7 +20242,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 } @@ -22541,7 +20258,7 @@ func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.Sele return res } -func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v any) (map[string]interface{}, error) { if v == nil { return nil, nil } @@ -22570,7 +20287,7 @@ func (ec *executionContext) marshalOOneToMany2ᚕᚖentgoᚗioᚋcontribᚋentgq } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22624,7 +20341,7 @@ func (ec *executionContext) marshalOOneToManyEdge2ᚕᚖentgoᚗioᚋcontribᚋe } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22666,7 +20383,7 @@ func (ec *executionContext) marshalOOneToManyEdge2ᚖentgoᚗioᚋcontribᚋentg return ec._OneToManyEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOOneToManyOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐOneToManyOrder(ctx context.Context, v interface{}) (*OneToManyOrder, error) { +func (ec *executionContext) unmarshalOOneToManyOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐOneToManyOrder(ctx context.Context, v any) (*OneToManyOrder, error) { if v == nil { return nil, nil } @@ -22674,11 +20391,11 @@ func (ec *executionContext) unmarshalOOneToManyOrder2ᚖentgoᚗioᚋcontribᚋe return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐOneToManyWhereInputᚄ(ctx context.Context, v interface{}) ([]*OneToManyWhereInput, error) { +func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐOneToManyWhereInputᚄ(ctx context.Context, v any) ([]*OneToManyWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22694,7 +20411,7 @@ func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚕᚖentgoᚗioᚋcon return res, nil } -func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐOneToManyWhereInput(ctx context.Context, v interface{}) (*OneToManyWhereInput, error) { +func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐOneToManyWhereInput(ctx context.Context, v any) (*OneToManyWhereInput, error) { if v == nil { return nil, nil } @@ -22702,11 +20419,11 @@ func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚖentgoᚗioᚋcontri return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐOrganizationWhereInputᚄ(ctx context.Context, v interface{}) ([]*OrganizationWhereInput, error) { +func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐOrganizationWhereInputᚄ(ctx context.Context, v any) ([]*OrganizationWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22722,7 +20439,7 @@ func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚕᚖentgoᚗioᚋ return res, nil } -func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐOrganizationWhereInput(ctx context.Context, v interface{}) (*OrganizationWhereInput, error) { +func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐOrganizationWhereInput(ctx context.Context, v any) (*OrganizationWhereInput, error) { if v == nil { return nil, nil } @@ -22730,11 +20447,11 @@ func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚖentgoᚗioᚋcon return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOProjectWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐProjectWhereInputᚄ(ctx context.Context, v interface{}) ([]*ProjectWhereInput, error) { +func (ec *executionContext) unmarshalOProjectWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐProjectWhereInputᚄ(ctx context.Context, v any) ([]*ProjectWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22750,7 +20467,7 @@ func (ec *executionContext) unmarshalOProjectWhereInput2ᚕᚖentgoᚗioᚋcontr return res, nil } -func (ec *executionContext) unmarshalOProjectWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐProjectWhereInput(ctx context.Context, v interface{}) (*ProjectWhereInput, error) { +func (ec *executionContext) unmarshalOProjectWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚐProjectWhereInput(ctx context.Context, v any) (*ProjectWhereInput, error) { if v == nil { return nil, nil } @@ -22758,11 +20475,11 @@ func (ec *executionContext) unmarshalOProjectWhereInput2ᚖentgoᚗioᚋcontrib 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 } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22796,7 +20513,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 } @@ -22812,11 +20529,11 @@ func (ec *executionContext) marshalOString2ᚖstring(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 } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22850,7 +20567,7 @@ func (ec *executionContext) marshalOTime2ᚕtimeᚐTimeᚄ(ctx context.Context, return ret } -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 } @@ -22879,7 +20596,7 @@ func (ec *executionContext) marshalOTodoEdge2ᚕᚖentgoᚗioᚋcontribᚋentgql } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22921,11 +20638,11 @@ func (ec *executionContext) marshalOTodoEdge2ᚖentgoᚗioᚋcontribᚋentgqlᚋ return ec._TodoEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOTodoOrder2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐTodoOrderᚄ(ctx context.Context, v interface{}) ([]*ent.TodoOrder, error) { +func (ec *executionContext) unmarshalOTodoOrder2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐTodoOrderᚄ(ctx context.Context, v any) ([]*ent.TodoOrder, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22941,11 +20658,11 @@ func (ec *executionContext) unmarshalOTodoOrder2ᚕᚖentgoᚗioᚋcontribᚋent return res, nil } -func (ec *executionContext) unmarshalOTodoStatus2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatusᚄ(ctx context.Context, v interface{}) ([]todo.Status, error) { +func (ec *executionContext) unmarshalOTodoStatus2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatusᚄ(ctx context.Context, v any) ([]todo.Status, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22967,7 +20684,7 @@ func (ec *executionContext) marshalOTodoStatus2ᚕentgoᚗioᚋcontribᚋentgql } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -23008,7 +20725,7 @@ func (ec *executionContext) marshalOTodoStatus2ᚕentgoᚗioᚋcontribᚋentgql return ret } -func (ec *executionContext) unmarshalOTodoStatus2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatus(ctx context.Context, v interface{}) (*todo.Status, error) { +func (ec *executionContext) unmarshalOTodoStatus2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatus(ctx context.Context, v any) (*todo.Status, error) { if v == nil { return nil, nil } @@ -23024,11 +20741,11 @@ func (ec *executionContext) marshalOTodoStatus2ᚖentgoᚗioᚋcontribᚋentgql return v } -func (ec *executionContext) unmarshalOTodoWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐTodoWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.TodoWhereInput, error) { +func (ec *executionContext) unmarshalOTodoWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐTodoWhereInputᚄ(ctx context.Context, v any) ([]*ent.TodoWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -23044,7 +20761,7 @@ func (ec *executionContext) unmarshalOTodoWhereInput2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOTodoWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐTodoWhereInput(ctx context.Context, v interface{}) (*ent.TodoWhereInput, error) { +func (ec *executionContext) unmarshalOTodoWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐTodoWhereInput(ctx context.Context, v any) (*ent.TodoWhereInput, error) { if v == nil { return nil, nil } @@ -23052,11 +20769,11 @@ func (ec *executionContext) unmarshalOTodoWhereInput2ᚖentgoᚗioᚋcontribᚋe return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOUUID2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { +func (ec *executionContext) unmarshalOUUID2ᚕ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) } @@ -23090,7 +20807,7 @@ func (ec *executionContext) marshalOUUID2ᚕstringᚄ(ctx context.Context, sel a return ret } -func (ec *executionContext) unmarshalOUUID2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOUUID2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } @@ -23106,7 +20823,7 @@ func (ec *executionContext) marshalOUUID2ᚖstring(ctx context.Context, sel ast. return res } -func (ec *executionContext) unmarshalOUint642uint64(ctx context.Context, v interface{}) (uint64, error) { +func (ec *executionContext) unmarshalOUint642uint64(ctx context.Context, v any) (uint64, error) { res, err := graphql.UnmarshalUint64(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23116,11 +20833,11 @@ func (ec *executionContext) marshalOUint642uint64(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOUint642ᚕuint64ᚄ(ctx context.Context, v interface{}) ([]uint64, error) { +func (ec *executionContext) unmarshalOUint642ᚕuint64ᚄ(ctx context.Context, v any) ([]uint64, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -23154,7 +20871,7 @@ func (ec *executionContext) marshalOUint642ᚕuint64ᚄ(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalOUint642ᚖuint64(ctx context.Context, v interface{}) (*uint64, error) { +func (ec *executionContext) unmarshalOUint642ᚖuint64(ctx context.Context, v any) (*uint64, error) { if v == nil { return nil, nil } @@ -23183,7 +20900,7 @@ func (ec *executionContext) marshalOUserEdge2ᚕᚖentgoᚗioᚋcontribᚋentgql } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -23225,7 +20942,7 @@ func (ec *executionContext) marshalOUserEdge2ᚖentgoᚗioᚋcontribᚋentgqlᚋ return ec._UserEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOUserOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐUserOrder(ctx context.Context, v interface{}) (*ent.UserOrder, error) { +func (ec *executionContext) unmarshalOUserOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐUserOrder(ctx context.Context, v any) (*ent.UserOrder, error) { if v == nil { return nil, nil } @@ -23233,11 +20950,11 @@ func (ec *executionContext) unmarshalOUserOrder2ᚖentgoᚗioᚋcontribᚋentgql return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOUserWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐUserWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalOUserWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐUserWhereInputᚄ(ctx context.Context, v any) ([]*ent.UserWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -23253,7 +20970,7 @@ func (ec *executionContext) unmarshalOUserWhereInput2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOUserWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐUserWhereInput(ctx context.Context, v interface{}) (*ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalOUserWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodogotypeᚋentᚐUserWhereInput(ctx context.Context, v any) (*ent.UserWhereInput, error) { if v == nil { return nil, nil } @@ -23267,7 +20984,7 @@ func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgq } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -23314,7 +21031,7 @@ func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgen } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -23361,7 +21078,7 @@ func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋg } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -23415,7 +21132,7 @@ func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgen } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } diff --git a/entgql/internal/todogotype/gqlgen.yml b/entgql/internal/todogotype/gqlgen.yml index f39195c39..d1eec23f4 100644 --- a/entgql/internal/todogotype/gqlgen.yml +++ b/entgql/internal/todogotype/gqlgen.yml @@ -9,6 +9,7 @@ schema: resolver: layout: follow-schema + preserve_resolver: true dir: . autobind: diff --git a/entgql/internal/todogotype/models_gen.go b/entgql/internal/todogotype/models_gen.go index 53370528e..be74852ee 100644 --- a/entgql/internal/todogotype/models_gen.go +++ b/entgql/internal/todogotype/models_gen.go @@ -27,13 +27,13 @@ type CategoryTypesInput struct { // CreateUserInput is used for create User object. // Input was generated by ent. type CreateUserInput struct { - Name *string `json:"name,omitempty"` - Username *string `json:"username,omitempty"` - Password *string `json:"password,omitempty"` - RequiredMetadata map[string]interface{} `json:"requiredMetadata"` - Metadata map[string]interface{} `json:"metadata,omitempty"` - GroupIDs []string `json:"groupIDs,omitempty"` - FriendIDs []string `json:"friendIDs,omitempty"` + Name *string `json:"name,omitempty"` + Username *string `json:"username,omitempty"` + Password *string `json:"password,omitempty"` + RequiredMetadata map[string]any `json:"requiredMetadata"` + Metadata map[string]any `json:"metadata,omitempty"` + GroupIDs []string `json:"groupIDs,omitempty"` + FriendIDs []string `json:"friendIDs,omitempty"` } type OneToMany struct { @@ -194,19 +194,19 @@ type UpdateFriendshipInput struct { // UpdateUserInput is used for update User object. // Input was generated by ent. type UpdateUserInput struct { - Name *string `json:"name,omitempty"` - Username *string `json:"username,omitempty"` - Password *string `json:"password,omitempty"` - ClearPassword *bool `json:"clearPassword,omitempty"` - RequiredMetadata map[string]interface{} `json:"requiredMetadata,omitempty"` - Metadata map[string]interface{} `json:"metadata,omitempty"` - ClearMetadata *bool `json:"clearMetadata,omitempty"` - AddGroupIDs []string `json:"addGroupIDs,omitempty"` - RemoveGroupIDs []string `json:"removeGroupIDs,omitempty"` - ClearGroups *bool `json:"clearGroups,omitempty"` - AddFriendIDs []string `json:"addFriendIDs,omitempty"` - RemoveFriendIDs []string `json:"removeFriendIDs,omitempty"` - ClearFriends *bool `json:"clearFriends,omitempty"` + Name *string `json:"name,omitempty"` + Username *string `json:"username,omitempty"` + Password *string `json:"password,omitempty"` + ClearPassword *bool `json:"clearPassword,omitempty"` + RequiredMetadata map[string]any `json:"requiredMetadata,omitempty"` + Metadata map[string]any `json:"metadata,omitempty"` + ClearMetadata *bool `json:"clearMetadata,omitempty"` + AddGroupIDs []string `json:"addGroupIDs,omitempty"` + RemoveGroupIDs []string `json:"removeGroupIDs,omitempty"` + ClearGroups *bool `json:"clearGroups,omitempty"` + AddFriendIDs []string `json:"addFriendIDs,omitempty"` + RemoveFriendIDs []string `json:"removeFriendIDs,omitempty"` + ClearFriends *bool `json:"clearFriends,omitempty"` } // Properties by which OneToMany connections can be ordered. @@ -232,7 +232,7 @@ func (e OneToManyOrderField) String() string { return string(e) } -func (e *OneToManyOrderField) UnmarshalGQL(v interface{}) error { +func (e *OneToManyOrderField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/entgql/internal/todopulid/generated.go b/entgql/internal/todopulid/generated.go index 42fa26e0b..b11bab937 100644 --- a/entgql/internal/todopulid/generated.go +++ b/entgql/internal/todopulid/generated.go @@ -64,7 +64,7 @@ type ResolverRoot interface { } type DirectiveRoot struct { - HasPermissions func(ctx context.Context, obj interface{}, next graphql.Resolver, permissions []string) (res interface{}, err error) + HasPermissions func(ctx context.Context, obj any, next graphql.Resolver, permissions []string) (res any, err error) } type ComplexityRoot struct { @@ -349,7 +349,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 { @@ -1208,8 +1208,8 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in } func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { - rc := graphql.GetOperationContext(ctx) - ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)} + opCtx := graphql.GetOperationContext(ctx) + ec := executionContext{opCtx, e, 0, 0, make(chan graphql.DeferredResult)} inputUnmarshalMap := graphql.BuildUnmarshalerMap( ec.unmarshalInputBillProductWhereInput, ec.unmarshalInputCategoryConfigInput, @@ -1236,7 +1236,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ) first := true - switch rc.Operation.Operation { + switch opCtx.Operation.Operation { case ast.Query: return func(ctx context.Context) *graphql.Response { var response graphql.Response @@ -1244,7 +1244,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { if first { first = false ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data = ec._Query(ctx, rc.Operation.SelectionSet) + data = ec._Query(ctx, opCtx.Operation.SelectionSet) } else { if atomic.LoadInt32(&ec.pendingDeferred) > 0 { result := <-ec.deferredResults @@ -1274,7 +1274,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { } first = false ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data := ec._Mutation(ctx, rc.Operation.SelectionSet) + data := ec._Mutation(ctx, opCtx.Operation.SelectionSet) var buf bytes.Buffer data.MarshalGQL(&buf) @@ -2873,9 +2873,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) dir_hasPermissions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_hasPermissions_args(ctx 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_hasPermissions_argsPermissions(ctx, rawArgs) if err != nil { return nil, err @@ -2885,13 +2885,9 @@ func (ec *executionContext) dir_hasPermissions_args(ctx context.Context, rawArgs } func (ec *executionContext) dir_hasPermissions_argsPermissions( 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 - // even if the argument is null. - _, ok := rawArgs["permissions"] - if !ok { + if _, ok := rawArgs["permissions"]; !ok { var zeroVal []string return zeroVal, nil } @@ -2905,9 +2901,9 @@ func (ec *executionContext) dir_hasPermissions_argsPermissions( return zeroVal, nil } -func (ec *executionContext) field_Category_subCategories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Category_subCategories_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Category_subCategories_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -2942,13 +2938,9 @@ func (ec *executionContext) field_Category_subCategories_args(ctx context.Contex } func (ec *executionContext) field_Category_subCategories_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -2964,13 +2956,9 @@ func (ec *executionContext) field_Category_subCategories_argsAfter( func (ec *executionContext) field_Category_subCategories_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -2986,13 +2974,9 @@ func (ec *executionContext) field_Category_subCategories_argsFirst( func (ec *executionContext) field_Category_subCategories_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -3008,13 +2992,9 @@ func (ec *executionContext) field_Category_subCategories_argsBefore( func (ec *executionContext) field_Category_subCategories_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3030,13 +3010,9 @@ func (ec *executionContext) field_Category_subCategories_argsLast( func (ec *executionContext) field_Category_subCategories_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.CategoryOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.CategoryOrder return zeroVal, nil } @@ -3052,13 +3028,9 @@ func (ec *executionContext) field_Category_subCategories_argsOrderBy( func (ec *executionContext) field_Category_subCategories_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.CategoryWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.CategoryWhereInput return zeroVal, nil } @@ -3072,9 +3044,9 @@ func (ec *executionContext) field_Category_subCategories_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Category_todos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Category_todos_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Category_todos_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3109,13 +3081,9 @@ func (ec *executionContext) field_Category_todos_args(ctx context.Context, rawAr } func (ec *executionContext) field_Category_todos_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -3131,13 +3099,9 @@ func (ec *executionContext) field_Category_todos_argsAfter( func (ec *executionContext) field_Category_todos_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3153,13 +3117,9 @@ func (ec *executionContext) field_Category_todos_argsFirst( func (ec *executionContext) field_Category_todos_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -3175,13 +3135,9 @@ func (ec *executionContext) field_Category_todos_argsBefore( func (ec *executionContext) field_Category_todos_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3197,13 +3153,9 @@ func (ec *executionContext) field_Category_todos_argsLast( func (ec *executionContext) field_Category_todos_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -3219,13 +3171,9 @@ func (ec *executionContext) field_Category_todos_argsOrderBy( func (ec *executionContext) field_Category_todos_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -3239,9 +3187,9 @@ func (ec *executionContext) field_Category_todos_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Group_users_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Group_users_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Group_users_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3276,13 +3224,9 @@ func (ec *executionContext) field_Group_users_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Group_users_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -3298,13 +3242,9 @@ func (ec *executionContext) field_Group_users_argsAfter( func (ec *executionContext) field_Group_users_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3320,13 +3260,9 @@ func (ec *executionContext) field_Group_users_argsFirst( func (ec *executionContext) field_Group_users_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -3342,13 +3278,9 @@ func (ec *executionContext) field_Group_users_argsBefore( func (ec *executionContext) field_Group_users_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3364,13 +3296,9 @@ func (ec *executionContext) field_Group_users_argsLast( func (ec *executionContext) field_Group_users_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal *ent.UserOrder return zeroVal, nil } @@ -3386,13 +3314,9 @@ func (ec *executionContext) field_Group_users_argsOrderBy( func (ec *executionContext) field_Group_users_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.UserWhereInput return zeroVal, nil } @@ -3406,9 +3330,9 @@ func (ec *executionContext) field_Group_users_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Mutation_createCategory_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_createCategory_args(ctx context.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_createCategory_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -3418,13 +3342,9 @@ func (ec *executionContext) field_Mutation_createCategory_args(ctx context.Conte } func (ec *executionContext) field_Mutation_createCategory_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (ent.CreateCategoryInput, 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 { + if _, ok := rawArgs["input"]; !ok { var zeroVal ent.CreateCategoryInput return zeroVal, nil } @@ -3438,9 +3358,9 @@ func (ec *executionContext) field_Mutation_createCategory_argsInput( return zeroVal, nil } -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 @@ -3450,13 +3370,9 @@ 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, ) (ent.CreateTodoInput, 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 { + if _, ok := rawArgs["input"]; !ok { var zeroVal ent.CreateTodoInput return zeroVal, nil } @@ -3470,9 +3386,9 @@ func (ec *executionContext) field_Mutation_createTodo_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Mutation_updateFriendship_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_updateFriendship_args(ctx context.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_updateFriendship_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -3487,13 +3403,9 @@ func (ec *executionContext) field_Mutation_updateFriendship_args(ctx context.Con } func (ec *executionContext) field_Mutation_updateFriendship_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (pulid.ID, 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["id"] - if !ok { + if _, ok := rawArgs["id"]; !ok { var zeroVal pulid.ID return zeroVal, nil } @@ -3509,13 +3421,9 @@ func (ec *executionContext) field_Mutation_updateFriendship_argsID( func (ec *executionContext) field_Mutation_updateFriendship_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (UpdateFriendshipInput, 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 { + if _, ok := rawArgs["input"]; !ok { var zeroVal UpdateFriendshipInput return zeroVal, nil } @@ -3529,9 +3437,9 @@ func (ec *executionContext) field_Mutation_updateFriendship_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Mutation_updateTodo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_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_Mutation_updateTodo_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -3546,13 +3454,9 @@ func (ec *executionContext) field_Mutation_updateTodo_args(ctx context.Context, } func (ec *executionContext) field_Mutation_updateTodo_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (pulid.ID, 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["id"] - if !ok { + if _, ok := rawArgs["id"]; !ok { var zeroVal pulid.ID return zeroVal, nil } @@ -3568,13 +3472,9 @@ func (ec *executionContext) field_Mutation_updateTodo_argsID( func (ec *executionContext) field_Mutation_updateTodo_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (ent.UpdateTodoInput, 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 { + if _, ok := rawArgs["input"]; !ok { var zeroVal ent.UpdateTodoInput return zeroVal, nil } @@ -3588,9 +3488,9 @@ func (ec *executionContext) field_Mutation_updateTodo_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Project_todos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Project_todos_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Project_todos_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3625,13 +3525,9 @@ func (ec *executionContext) field_Project_todos_args(ctx context.Context, rawArg } func (ec *executionContext) field_Project_todos_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -3647,13 +3543,9 @@ func (ec *executionContext) field_Project_todos_argsAfter( func (ec *executionContext) field_Project_todos_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3669,13 +3561,9 @@ func (ec *executionContext) field_Project_todos_argsFirst( func (ec *executionContext) field_Project_todos_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -3691,13 +3579,9 @@ func (ec *executionContext) field_Project_todos_argsBefore( func (ec *executionContext) field_Project_todos_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3713,13 +3597,9 @@ func (ec *executionContext) field_Project_todos_argsLast( func (ec *executionContext) field_Project_todos_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -3735,13 +3615,9 @@ func (ec *executionContext) field_Project_todos_argsOrderBy( func (ec *executionContext) field_Project_todos_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -3755,9 +3631,9 @@ func (ec *executionContext) field_Project_todos_argsWhere( 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 @@ -3767,13 +3643,9 @@ 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 - // even if the argument is null. - _, ok := rawArgs["name"] - if !ok { + if _, ok := rawArgs["name"]; !ok { var zeroVal string return zeroVal, nil } @@ -3787,9 +3659,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query_categories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_categories_args(ctx context.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_categories_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3824,13 +3696,9 @@ func (ec *executionContext) field_Query_categories_args(ctx context.Context, raw } func (ec *executionContext) field_Query_categories_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -3846,13 +3714,9 @@ func (ec *executionContext) field_Query_categories_argsAfter( func (ec *executionContext) field_Query_categories_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3868,13 +3732,9 @@ func (ec *executionContext) field_Query_categories_argsFirst( func (ec *executionContext) field_Query_categories_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -3890,13 +3750,9 @@ func (ec *executionContext) field_Query_categories_argsBefore( func (ec *executionContext) field_Query_categories_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3912,13 +3768,9 @@ func (ec *executionContext) field_Query_categories_argsLast( func (ec *executionContext) field_Query_categories_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.CategoryOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.CategoryOrder return zeroVal, nil } @@ -3934,13 +3786,9 @@ func (ec *executionContext) field_Query_categories_argsOrderBy( func (ec *executionContext) field_Query_categories_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.CategoryWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.CategoryWhereInput return zeroVal, nil } @@ -3954,9 +3802,9 @@ func (ec *executionContext) field_Query_categories_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_groups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_groups_args(ctx context.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_groups_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3986,13 +3834,9 @@ func (ec *executionContext) field_Query_groups_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_groups_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -4008,13 +3852,9 @@ func (ec *executionContext) field_Query_groups_argsAfter( func (ec *executionContext) field_Query_groups_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4030,13 +3870,9 @@ func (ec *executionContext) field_Query_groups_argsFirst( func (ec *executionContext) field_Query_groups_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -4052,13 +3888,9 @@ func (ec *executionContext) field_Query_groups_argsBefore( func (ec *executionContext) field_Query_groups_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4074,13 +3906,9 @@ func (ec *executionContext) field_Query_groups_argsLast( func (ec *executionContext) field_Query_groups_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.GroupWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.GroupWhereInput return zeroVal, nil } @@ -4094,9 +3922,9 @@ func (ec *executionContext) field_Query_groups_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_node_args(ctx context.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_node_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -4106,13 +3934,9 @@ func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs m } func (ec *executionContext) field_Query_node_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (pulid.ID, 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["id"] - if !ok { + if _, ok := rawArgs["id"]; !ok { var zeroVal pulid.ID return zeroVal, nil } @@ -4126,9 +3950,9 @@ func (ec *executionContext) field_Query_node_argsID( return zeroVal, nil } -func (ec *executionContext) field_Query_nodes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_nodes_args(ctx context.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_nodes_argsIds(ctx, rawArgs) if err != nil { return nil, err @@ -4138,13 +3962,9 @@ func (ec *executionContext) field_Query_nodes_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_nodes_argsIds( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]pulid.ID, 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["ids"] - if !ok { + if _, ok := rawArgs["ids"]; !ok { var zeroVal []pulid.ID return zeroVal, nil } @@ -4158,9 +3978,9 @@ func (ec *executionContext) field_Query_nodes_argsIds( return zeroVal, nil } -func (ec *executionContext) field_Query_oneToMany_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_oneToMany_args(ctx context.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_oneToMany_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -4195,13 +4015,9 @@ func (ec *executionContext) field_Query_oneToMany_args(ctx context.Context, rawA } func (ec *executionContext) field_Query_oneToMany_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -4217,13 +4033,9 @@ func (ec *executionContext) field_Query_oneToMany_argsAfter( func (ec *executionContext) field_Query_oneToMany_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4239,13 +4051,9 @@ func (ec *executionContext) field_Query_oneToMany_argsFirst( func (ec *executionContext) field_Query_oneToMany_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -4261,13 +4069,9 @@ func (ec *executionContext) field_Query_oneToMany_argsBefore( func (ec *executionContext) field_Query_oneToMany_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4283,13 +4087,9 @@ func (ec *executionContext) field_Query_oneToMany_argsLast( func (ec *executionContext) field_Query_oneToMany_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*OneToManyOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal *OneToManyOrder return zeroVal, nil } @@ -4305,13 +4105,9 @@ func (ec *executionContext) field_Query_oneToMany_argsOrderBy( func (ec *executionContext) field_Query_oneToMany_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*OneToManyWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *OneToManyWhereInput return zeroVal, nil } @@ -4325,9 +4121,9 @@ func (ec *executionContext) field_Query_oneToMany_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_todosWithJoins_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_todosWithJoins_args(ctx context.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_todosWithJoins_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -4362,13 +4158,9 @@ func (ec *executionContext) field_Query_todosWithJoins_args(ctx context.Context, } func (ec *executionContext) field_Query_todosWithJoins_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -4384,13 +4176,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsAfter( func (ec *executionContext) field_Query_todosWithJoins_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4406,13 +4194,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsFirst( func (ec *executionContext) field_Query_todosWithJoins_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -4428,13 +4212,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsBefore( func (ec *executionContext) field_Query_todosWithJoins_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4450,13 +4230,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsLast( func (ec *executionContext) field_Query_todosWithJoins_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -4472,13 +4248,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsOrderBy( func (ec *executionContext) field_Query_todosWithJoins_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -4492,9 +4264,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_todos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_todos_args(ctx context.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_todos_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -4529,13 +4301,9 @@ func (ec *executionContext) field_Query_todos_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_todos_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -4551,13 +4319,9 @@ func (ec *executionContext) field_Query_todos_argsAfter( func (ec *executionContext) field_Query_todos_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4573,13 +4337,9 @@ func (ec *executionContext) field_Query_todos_argsFirst( func (ec *executionContext) field_Query_todos_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -4595,13 +4355,9 @@ func (ec *executionContext) field_Query_todos_argsBefore( func (ec *executionContext) field_Query_todos_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4617,13 +4373,9 @@ func (ec *executionContext) field_Query_todos_argsLast( func (ec *executionContext) field_Query_todos_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -4639,13 +4391,9 @@ func (ec *executionContext) field_Query_todos_argsOrderBy( func (ec *executionContext) field_Query_todos_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -4659,9 +4407,9 @@ func (ec *executionContext) field_Query_todos_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_users_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_users_args(ctx context.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_users_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -4696,13 +4444,9 @@ func (ec *executionContext) field_Query_users_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_users_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -4718,13 +4462,9 @@ func (ec *executionContext) field_Query_users_argsAfter( func (ec *executionContext) field_Query_users_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4740,13 +4480,9 @@ func (ec *executionContext) field_Query_users_argsFirst( func (ec *executionContext) field_Query_users_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -4762,13 +4498,9 @@ func (ec *executionContext) field_Query_users_argsBefore( func (ec *executionContext) field_Query_users_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4784,13 +4516,9 @@ func (ec *executionContext) field_Query_users_argsLast( func (ec *executionContext) field_Query_users_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal *ent.UserOrder return zeroVal, nil } @@ -4806,13 +4534,9 @@ func (ec *executionContext) field_Query_users_argsOrderBy( func (ec *executionContext) field_Query_users_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.UserWhereInput return zeroVal, nil } @@ -4826,9 +4550,9 @@ func (ec *executionContext) field_Query_users_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Todo_children_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Todo_children_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Todo_children_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -4863,13 +4587,9 @@ func (ec *executionContext) field_Todo_children_args(ctx context.Context, rawArg } func (ec *executionContext) field_Todo_children_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -4885,13 +4605,9 @@ func (ec *executionContext) field_Todo_children_argsAfter( func (ec *executionContext) field_Todo_children_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4907,13 +4623,9 @@ func (ec *executionContext) field_Todo_children_argsFirst( func (ec *executionContext) field_Todo_children_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -4929,13 +4641,9 @@ func (ec *executionContext) field_Todo_children_argsBefore( func (ec *executionContext) field_Todo_children_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4951,13 +4659,9 @@ func (ec *executionContext) field_Todo_children_argsLast( func (ec *executionContext) field_Todo_children_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -4973,13 +4677,9 @@ func (ec *executionContext) field_Todo_children_argsOrderBy( func (ec *executionContext) field_Todo_children_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -4993,9 +4693,9 @@ func (ec *executionContext) field_Todo_children_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_User_friends_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_User_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_User_friends_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -5030,13 +4730,9 @@ func (ec *executionContext) field_User_friends_args(ctx context.Context, rawArgs } func (ec *executionContext) field_User_friends_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -5052,13 +4748,9 @@ func (ec *executionContext) field_User_friends_argsAfter( func (ec *executionContext) field_User_friends_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -5074,13 +4766,9 @@ func (ec *executionContext) field_User_friends_argsFirst( func (ec *executionContext) field_User_friends_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -5096,13 +4784,9 @@ func (ec *executionContext) field_User_friends_argsBefore( func (ec *executionContext) field_User_friends_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -5118,13 +4802,9 @@ func (ec *executionContext) field_User_friends_argsLast( func (ec *executionContext) field_User_friends_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal *ent.UserOrder return zeroVal, nil } @@ -5140,13 +4820,9 @@ func (ec *executionContext) field_User_friends_argsOrderBy( func (ec *executionContext) field_User_friends_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.UserWhereInput return zeroVal, nil } @@ -5160,9 +4836,9 @@ func (ec *executionContext) field_User_friends_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_User_friendships_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_User_friendships_args(ctx context.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_friendships_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -5192,13 +4868,9 @@ func (ec *executionContext) field_User_friendships_args(ctx context.Context, raw } func (ec *executionContext) field_User_friendships_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -5214,13 +4886,9 @@ func (ec *executionContext) field_User_friendships_argsAfter( func (ec *executionContext) field_User_friendships_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -5236,13 +4904,9 @@ func (ec *executionContext) field_User_friendships_argsFirst( func (ec *executionContext) field_User_friendships_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -5258,13 +4922,9 @@ func (ec *executionContext) field_User_friendships_argsBefore( func (ec *executionContext) field_User_friendships_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -5280,13 +4940,9 @@ func (ec *executionContext) field_User_friendships_argsLast( func (ec *executionContext) field_User_friendships_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.FriendshipWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.FriendshipWhereInput return zeroVal, nil } @@ -5300,9 +4956,9 @@ func (ec *executionContext) field_User_friendships_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_User_groups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_User_groups_args(ctx context.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_groups_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -5332,13 +4988,9 @@ func (ec *executionContext) field_User_groups_args(ctx context.Context, rawArgs } func (ec *executionContext) field_User_groups_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -5354,13 +5006,9 @@ func (ec *executionContext) field_User_groups_argsAfter( func (ec *executionContext) field_User_groups_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -5376,13 +5024,9 @@ func (ec *executionContext) field_User_groups_argsFirst( func (ec *executionContext) field_User_groups_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[pulid.ID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[pulid.ID] return zeroVal, nil } @@ -5398,13 +5042,9 @@ func (ec *executionContext) field_User_groups_argsBefore( func (ec *executionContext) field_User_groups_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -5420,13 +5060,9 @@ func (ec *executionContext) field_User_groups_argsLast( func (ec *executionContext) field_User_groups_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.GroupWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.GroupWhereInput return zeroVal, nil } @@ -5440,9 +5076,9 @@ func (ec *executionContext) field_User_groups_argsWhere( 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 @@ -5452,13 +5088,9 @@ 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 - // even if the argument is null. - _, ok := rawArgs["includeDeprecated"] - if !ok { + if _, ok := rawArgs["includeDeprecated"]; !ok { var zeroVal bool return zeroVal, nil } @@ -5472,9 +5104,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 @@ -5484,13 +5116,9 @@ 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 - // even if the argument is null. - _, ok := rawArgs["includeDeprecated"] - if !ok { + if _, ok := rawArgs["includeDeprecated"]; !ok { var zeroVal bool return zeroVal, nil } @@ -5524,7 +5152,7 @@ func (ec *executionContext) _BillProduct_id(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.ID, nil }) @@ -5568,7 +5196,7 @@ func (ec *executionContext) _BillProduct_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 }) @@ -5612,7 +5240,7 @@ func (ec *executionContext) _BillProduct_sku(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.Sku, nil }) @@ -5656,7 +5284,7 @@ func (ec *executionContext) _BillProduct_quantity(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.Quantity, nil }) @@ -5700,7 +5328,7 @@ func (ec *executionContext) _Category_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 }) @@ -5744,7 +5372,7 @@ func (ec *executionContext) _Category_text(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.Text, nil }) @@ -5788,7 +5416,7 @@ func (ec *executionContext) _Category_status(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.Status, nil }) @@ -5832,7 +5460,7 @@ func (ec *executionContext) _Category_config(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.Config, nil }) @@ -5877,7 +5505,7 @@ func (ec *executionContext) _Category_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 ec.resolvers.Category().Types(rctx, obj) }) @@ -5922,7 +5550,7 @@ func (ec *executionContext) _Category_duration(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.Duration, nil }) @@ -5963,7 +5591,7 @@ func (ec *executionContext) _Category_count(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.Count, nil }) @@ -6004,7 +5632,7 @@ func (ec *executionContext) _Category_strings(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.Strings, nil }) @@ -6045,7 +5673,7 @@ func (ec *executionContext) _Category_todos(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.Todos(ctx, fc.Args["after"].(*entgql.Cursor[pulid.ID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[pulid.ID]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.TodoOrder), fc.Args["where"].(*ent.TodoWhereInput)) }) @@ -6108,7 +5736,7 @@ func (ec *executionContext) _Category_subCategories(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 obj.SubCategories(ctx, fc.Args["after"].(*entgql.Cursor[pulid.ID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[pulid.ID]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.CategoryOrder), fc.Args["where"].(*ent.CategoryWhereInput)) }) @@ -6171,7 +5799,7 @@ func (ec *executionContext) _Category_todosCount(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.Category().TodosCount(rctx, obj) }) @@ -6212,7 +5840,7 @@ func (ec *executionContext) _CategoryConfig_maxMembers(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.MaxMembers, nil }) @@ -6253,7 +5881,7 @@ func (ec *executionContext) _CategoryConnection_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 obj.Edges, nil }) @@ -6300,7 +5928,7 @@ func (ec *executionContext) _CategoryConnection_pageInfo(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.PageInfo, nil }) @@ -6354,7 +5982,7 @@ func (ec *executionContext) _CategoryConnection_totalCount(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.TotalCount, nil }) @@ -6398,7 +6026,7 @@ func (ec *executionContext) _CategoryEdge_node(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.Node, nil }) @@ -6463,7 +6091,7 @@ func (ec *executionContext) _CategoryEdge_cursor(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.Cursor, nil }) @@ -6507,7 +6135,7 @@ func (ec *executionContext) _CategoryTypes_public(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.Public, nil }) @@ -6548,7 +6176,7 @@ func (ec *executionContext) _Custom_info(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.Info, nil }) @@ -6592,7 +6220,7 @@ func (ec *executionContext) _Friendship_id(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.ID, nil }) @@ -6636,7 +6264,7 @@ func (ec *executionContext) _Friendship_createdAt(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.CreatedAt, nil }) @@ -6680,7 +6308,7 @@ func (ec *executionContext) _Friendship_userID(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.UserID, nil }) @@ -6724,7 +6352,7 @@ func (ec *executionContext) _Friendship_friendID(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.FriendID, nil }) @@ -6768,7 +6396,7 @@ func (ec *executionContext) _Friendship_user(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.User(ctx) }) @@ -6830,7 +6458,7 @@ func (ec *executionContext) _Friendship_friend(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.Friend(ctx) }) @@ -6892,7 +6520,7 @@ func (ec *executionContext) _FriendshipConnection_edges(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.Edges, nil }) @@ -6939,7 +6567,7 @@ func (ec *executionContext) _FriendshipConnection_pageInfo(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.PageInfo, nil }) @@ -6993,7 +6621,7 @@ func (ec *executionContext) _FriendshipConnection_totalCount(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.TotalCount, nil }) @@ -7037,7 +6665,7 @@ func (ec *executionContext) _FriendshipEdge_node(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.Node, nil }) @@ -7092,7 +6720,7 @@ func (ec *executionContext) _FriendshipEdge_cursor(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.Cursor, nil }) @@ -7136,7 +6764,7 @@ func (ec *executionContext) _Group_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 }) @@ -7180,7 +6808,7 @@ func (ec *executionContext) _Group_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 }) @@ -7224,7 +6852,7 @@ func (ec *executionContext) _Group_users(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.Users(ctx, fc.Args["after"].(*entgql.Cursor[pulid.ID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[pulid.ID]), fc.Args["last"].(*int), fc.Args["orderBy"].(*ent.UserOrder), fc.Args["where"].(*ent.UserWhereInput)) }) @@ -7287,7 +6915,7 @@ func (ec *executionContext) _GroupConnection_edges(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.Edges, nil }) @@ -7334,7 +6962,7 @@ func (ec *executionContext) _GroupConnection_pageInfo(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.PageInfo, nil }) @@ -7388,7 +7016,7 @@ func (ec *executionContext) _GroupConnection_totalCount(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.TotalCount, nil }) @@ -7432,14 +7060,14 @@ func (ec *executionContext) _GroupEdge_node(ctx context.Context, 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 obj.Node, nil } - directive1 := func(ctx context.Context) (interface{}, error) { - permissions, err := ec.unmarshalNString2ᚕstringᚄ(ctx, []interface{}{"ADMIN", "MODERATOR"}) + directive1 := func(ctx context.Context) (any, error) { + permissions, err := ec.unmarshalNString2ᚕstringᚄ(ctx, []any{"ADMIN", "MODERATOR"}) if err != nil { var zeroVal *ent.Group return zeroVal, err @@ -7508,7 +7136,7 @@ func (ec *executionContext) _GroupEdge_cursor(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.Cursor, nil }) @@ -7552,7 +7180,7 @@ func (ec *executionContext) _Mutation_createCategory(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().CreateCategory(rctx, fc.Args["input"].(ent.CreateCategoryInput)) }) @@ -7631,7 +7259,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"].(ent.CreateTodoInput)) }) @@ -7720,7 +7348,7 @@ func (ec *executionContext) _Mutation_updateTodo(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().UpdateTodo(rctx, fc.Args["id"].(pulid.ID), fc.Args["input"].(ent.UpdateTodoInput)) }) @@ -7809,7 +7437,7 @@ func (ec *executionContext) _Mutation_clearTodos(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().ClearTodos(rctx) }) @@ -7853,7 +7481,7 @@ func (ec *executionContext) _Mutation_updateFriendship(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.Mutation().UpdateFriendship(rctx, fc.Args["id"].(pulid.ID), fc.Args["input"].(UpdateFriendshipInput)) }) @@ -7922,7 +7550,7 @@ func (ec *executionContext) _OneToMany_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 }) @@ -7966,7 +7594,7 @@ func (ec *executionContext) _OneToMany_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 }) @@ -8010,7 +7638,7 @@ func (ec *executionContext) _OneToMany_field2(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.Field2, nil }) @@ -8051,7 +7679,7 @@ func (ec *executionContext) _OneToMany_parent(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.Parent, nil }) @@ -8104,7 +7732,7 @@ func (ec *executionContext) _OneToMany_children(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.Children, nil }) @@ -8157,7 +7785,7 @@ func (ec *executionContext) _OneToManyConnection_edges(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.Edges, nil }) @@ -8204,7 +7832,7 @@ func (ec *executionContext) _OneToManyConnection_pageInfo(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.PageInfo, nil }) @@ -8258,7 +7886,7 @@ func (ec *executionContext) _OneToManyConnection_totalCount(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.TotalCount, nil }) @@ -8302,7 +7930,7 @@ func (ec *executionContext) _OneToManyEdge_node(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.Node, nil }) @@ -8355,7 +7983,7 @@ func (ec *executionContext) _OneToManyEdge_cursor(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.Cursor, nil }) @@ -8399,7 +8027,7 @@ func (ec *executionContext) _Organization_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 ec.resolvers.Organization().ID(rctx, obj) }) @@ -8443,7 +8071,7 @@ func (ec *executionContext) _Organization_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 }) @@ -8487,7 +8115,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 }) @@ -8531,7 +8159,7 @@ func (ec *executionContext) _PageInfo_hasPreviousPage(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.HasPreviousPage, nil }) @@ -8575,7 +8203,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 }) @@ -8616,7 +8244,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 }) @@ -8657,7 +8285,7 @@ func (ec *executionContext) _Project_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 }) @@ -8701,7 +8329,7 @@ func (ec *executionContext) _Project_todos(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.Todos, nil }) @@ -8764,7 +8392,7 @@ func (ec *executionContext) _Query_node(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().Node(rctx, fc.Args["id"].(pulid.ID)) }) @@ -8816,7 +8444,7 @@ func (ec *executionContext) _Query_nodes(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().Nodes(rctx, fc.Args["ids"].([]pulid.ID)) }) @@ -8871,7 +8499,7 @@ func (ec *executionContext) _Query_billProducts(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().BillProducts(rctx) }) @@ -8925,7 +8553,7 @@ func (ec *executionContext) _Query_categories(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().Categories(rctx, fc.Args["after"].(*entgql.Cursor[pulid.ID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[pulid.ID]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.CategoryOrder), fc.Args["where"].(*ent.CategoryWhereInput)) }) @@ -8988,7 +8616,7 @@ func (ec *executionContext) _Query_groups(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().Groups(rctx, fc.Args["after"].(*entgql.Cursor[pulid.ID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[pulid.ID]), fc.Args["last"].(*int), fc.Args["where"].(*ent.GroupWhereInput)) }) @@ -9051,7 +8679,7 @@ func (ec *executionContext) _Query_oneToMany(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().OneToMany(rctx, fc.Args["after"].(*entgql.Cursor[pulid.ID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[pulid.ID]), fc.Args["last"].(*int), fc.Args["orderBy"].(*OneToManyOrder), fc.Args["where"].(*OneToManyWhereInput)) }) @@ -9114,7 +8742,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, fc.Args["after"].(*entgql.Cursor[pulid.ID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[pulid.ID]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.TodoOrder), fc.Args["where"].(*ent.TodoWhereInput)) }) @@ -9177,7 +8805,7 @@ func (ec *executionContext) _Query_users(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().Users(rctx, fc.Args["after"].(*entgql.Cursor[pulid.ID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[pulid.ID]), fc.Args["last"].(*int), fc.Args["orderBy"].(*ent.UserOrder), fc.Args["where"].(*ent.UserWhereInput)) }) @@ -9240,7 +8868,7 @@ func (ec *executionContext) _Query_ping(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().Ping(rctx) }) @@ -9284,7 +8912,7 @@ func (ec *executionContext) _Query_todosWithJoins(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().TodosWithJoins(rctx, fc.Args["after"].(*entgql.Cursor[pulid.ID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[pulid.ID]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.TodoOrder), fc.Args["where"].(*ent.TodoWhereInput)) }) @@ -9347,7 +8975,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)) }) @@ -9421,7 +9049,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() }) @@ -9476,7 +9104,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 }) @@ -9520,7 +9148,7 @@ func (ec *executionContext) _Todo_createdAt(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.CreatedAt, nil }) @@ -9564,7 +9192,7 @@ func (ec *executionContext) _Todo_status(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.Todo().Status(rctx, obj) }) @@ -9608,7 +9236,7 @@ func (ec *executionContext) _Todo_priorityOrder(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.Priority, nil }) @@ -9652,7 +9280,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 }) @@ -9696,7 +9324,7 @@ func (ec *executionContext) _Todo_categoryID(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.CategoryID, nil }) @@ -9737,7 +9365,7 @@ func (ec *executionContext) _Todo_category_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.CategoryID, nil }) @@ -9778,7 +9406,7 @@ func (ec *executionContext) _Todo_categoryX(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.CategoryID, nil }) @@ -9819,7 +9447,7 @@ func (ec *executionContext) _Todo_init(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.Init, nil }) @@ -9860,7 +9488,7 @@ func (ec *executionContext) _Todo_custom(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.Custom, nil }) @@ -9905,7 +9533,7 @@ func (ec *executionContext) _Todo_customp(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.Customp, nil }) @@ -9950,7 +9578,7 @@ func (ec *executionContext) _Todo_value(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.Value, nil }) @@ -9994,7 +9622,7 @@ func (ec *executionContext) _Todo_parent(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.Parent(ctx) }) @@ -10069,7 +9697,7 @@ func (ec *executionContext) _Todo_children(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.Children(ctx, fc.Args["after"].(*entgql.Cursor[pulid.ID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[pulid.ID]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.TodoOrder), fc.Args["where"].(*ent.TodoWhereInput)) }) @@ -10132,7 +9760,7 @@ func (ec *executionContext) _Todo_category(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.Category(ctx) }) @@ -10197,7 +9825,7 @@ func (ec *executionContext) _Todo_extendedField(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.Todo().ExtendedField(rctx, obj) }) @@ -10238,7 +9866,7 @@ func (ec *executionContext) _TodoConnection_edges(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.Edges, nil }) @@ -10285,7 +9913,7 @@ func (ec *executionContext) _TodoConnection_pageInfo(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.PageInfo, nil }) @@ -10339,7 +9967,7 @@ func (ec *executionContext) _TodoConnection_totalCount(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.TotalCount, nil }) @@ -10383,7 +10011,7 @@ func (ec *executionContext) _TodoEdge_node(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.Node, nil }) @@ -10458,7 +10086,7 @@ func (ec *executionContext) _TodoEdge_cursor(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.Cursor, nil }) @@ -10502,7 +10130,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 }) @@ -10546,7 +10174,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 }) @@ -10590,7 +10218,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) }) @@ -10634,7 +10262,7 @@ func (ec *executionContext) _User_requiredMetadata(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.RequiredMetadata, nil }) @@ -10678,7 +10306,7 @@ func (ec *executionContext) _User_metadata(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.Metadata, nil }) @@ -10719,7 +10347,7 @@ func (ec *executionContext) _User_groups(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.Groups(ctx, fc.Args["after"].(*entgql.Cursor[pulid.ID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[pulid.ID]), fc.Args["last"].(*int), fc.Args["where"].(*ent.GroupWhereInput)) }) @@ -10782,7 +10410,7 @@ func (ec *executionContext) _User_friends(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().Friends(rctx, obj, fc.Args["after"].(*entgql.Cursor[pulid.ID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[pulid.ID]), fc.Args["last"].(*int), fc.Args["orderBy"].(*ent.UserOrder), fc.Args["where"].(*ent.UserWhereInput)) }) @@ -10845,7 +10473,7 @@ func (ec *executionContext) _User_friendships(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.User().Friendships(rctx, obj, fc.Args["after"].(*entgql.Cursor[pulid.ID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[pulid.ID]), fc.Args["last"].(*int), fc.Args["where"].(*ent.FriendshipWhereInput)) }) @@ -10908,7 +10536,7 @@ func (ec *executionContext) _UserConnection_edges(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.Edges, nil }) @@ -10955,7 +10583,7 @@ func (ec *executionContext) _UserConnection_pageInfo(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.PageInfo, nil }) @@ -11009,7 +10637,7 @@ func (ec *executionContext) _UserConnection_totalCount(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.TotalCount, nil }) @@ -11053,7 +10681,7 @@ func (ec *executionContext) _UserEdge_node(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.Node, nil }) @@ -11112,7 +10740,7 @@ func (ec *executionContext) _UserEdge_cursor(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.Cursor, nil }) @@ -11156,7 +10784,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 }) @@ -11200,7 +10828,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 }) @@ -11241,7 +10869,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 }) @@ -11285,7 +10913,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 }) @@ -11339,7 +10967,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 }) @@ -11383,7 +11011,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 }) @@ -11427,7 +11055,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 }) @@ -11468,7 +11096,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 }) @@ -11512,7 +11140,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 }) @@ -11553,7 +11181,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 }) @@ -11597,7 +11225,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 }) @@ -11638,7 +11266,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 }) @@ -11692,7 +11320,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 }) @@ -11758,7 +11386,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 }) @@ -11802,7 +11430,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 }) @@ -11843,7 +11471,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 }) @@ -11887,7 +11515,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 }) @@ -11928,7 +11556,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 }) @@ -11994,7 +11622,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 }) @@ -12035,7 +11663,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 }) @@ -12076,7 +11704,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 }) @@ -12142,7 +11770,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 }) @@ -12208,7 +11836,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 }) @@ -12271,7 +11899,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 }) @@ -12334,7 +11962,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 }) @@ -12390,7 +12018,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 }) @@ -12434,7 +12062,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 }) @@ -12475,7 +12103,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 }) @@ -12516,7 +12144,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 }) @@ -12582,7 +12210,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 }) @@ -12645,7 +12273,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 }) @@ -12708,7 +12336,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 }) @@ -12770,7 +12398,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 }) @@ -12821,7 +12449,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 }) @@ -12884,7 +12512,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 }) @@ -12917,10 +12545,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputBillProductWhereInput(ctx context.Context, obj interface{}) (ent.BillProductWhereInput, error) { +func (ec *executionContext) unmarshalInputBillProductWhereInput(ctx context.Context, obj any) (ent.BillProductWhereInput, error) { var it ent.BillProductWhereInput - 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 } @@ -13252,10 +12880,10 @@ func (ec *executionContext) unmarshalInputBillProductWhereInput(ctx context.Cont return it, nil } -func (ec *executionContext) unmarshalInputCategoryConfigInput(ctx context.Context, obj interface{}) (schematype.CategoryConfig, error) { +func (ec *executionContext) unmarshalInputCategoryConfigInput(ctx context.Context, obj any) (schematype.CategoryConfig, error) { var it schematype.CategoryConfig - 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 } @@ -13279,10 +12907,10 @@ func (ec *executionContext) unmarshalInputCategoryConfigInput(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputCategoryOrder(ctx context.Context, obj interface{}) (ent.CategoryOrder, error) { +func (ec *executionContext) unmarshalInputCategoryOrder(ctx context.Context, obj any) (ent.CategoryOrder, error) { var it ent.CategoryOrder - 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 } @@ -13317,10 +12945,10 @@ func (ec *executionContext) unmarshalInputCategoryOrder(ctx context.Context, obj return it, nil } -func (ec *executionContext) unmarshalInputCategoryTypesInput(ctx context.Context, obj interface{}) (CategoryTypesInput, error) { +func (ec *executionContext) unmarshalInputCategoryTypesInput(ctx context.Context, obj any) (CategoryTypesInput, error) { var it CategoryTypesInput - 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 } @@ -13344,10 +12972,10 @@ func (ec *executionContext) unmarshalInputCategoryTypesInput(ctx context.Context return it, nil } -func (ec *executionContext) unmarshalInputCategoryWhereInput(ctx context.Context, obj interface{}) (ent.CategoryWhereInput, error) { +func (ec *executionContext) unmarshalInputCategoryWhereInput(ctx context.Context, obj any) (ent.CategoryWhereInput, error) { var it ent.CategoryWhereInput - 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 } @@ -13798,10 +13426,10 @@ func (ec *executionContext) unmarshalInputCategoryWhereInput(ctx context.Context return it, nil } -func (ec *executionContext) unmarshalInputCreateCategoryInput(ctx context.Context, obj interface{}) (ent.CreateCategoryInput, error) { +func (ec *executionContext) unmarshalInputCreateCategoryInput(ctx context.Context, obj any) (ent.CreateCategoryInput, error) { var it ent.CreateCategoryInput - 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 } @@ -13892,10 +13520,10 @@ func (ec *executionContext) unmarshalInputCreateCategoryInput(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputCreateTodoInput(ctx context.Context, obj interface{}) (ent.CreateTodoInput, error) { +func (ec *executionContext) unmarshalInputCreateTodoInput(ctx context.Context, obj any) (ent.CreateTodoInput, error) { var it ent.CreateTodoInput - 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 } @@ -13977,10 +13605,10 @@ func (ec *executionContext) unmarshalInputCreateTodoInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, obj interface{}) (ent.CreateUserInput, error) { +func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, obj any) (ent.CreateUserInput, error) { var it ent.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 } @@ -14048,10 +13676,10 @@ func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputFriendshipWhereInput(ctx context.Context, obj interface{}) (ent.FriendshipWhereInput, error) { +func (ec *executionContext) unmarshalInputFriendshipWhereInput(ctx context.Context, obj any) (ent.FriendshipWhereInput, error) { var it ent.FriendshipWhereInput - 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 } @@ -14201,10 +13829,10 @@ func (ec *executionContext) unmarshalInputFriendshipWhereInput(ctx context.Conte return it, nil } -func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, obj interface{}) (ent.GroupWhereInput, error) { +func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, obj any) (ent.GroupWhereInput, error) { var it ent.GroupWhereInput - 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 } @@ -14403,10 +14031,10 @@ func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputOneToManyOrder(ctx context.Context, obj interface{}) (OneToManyOrder, error) { +func (ec *executionContext) unmarshalInputOneToManyOrder(ctx context.Context, obj any) (OneToManyOrder, error) { var it OneToManyOrder - 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 } @@ -14441,10 +14069,10 @@ func (ec *executionContext) unmarshalInputOneToManyOrder(ctx context.Context, ob return it, nil } -func (ec *executionContext) unmarshalInputOneToManyWhereInput(ctx context.Context, obj interface{}) (OneToManyWhereInput, error) { +func (ec *executionContext) unmarshalInputOneToManyWhereInput(ctx context.Context, obj any) (OneToManyWhereInput, error) { var it OneToManyWhereInput - 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 } @@ -14762,10 +14390,10 @@ func (ec *executionContext) unmarshalInputOneToManyWhereInput(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Context, obj interface{}) (OrganizationWhereInput, error) { +func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Context, obj any) (OrganizationWhereInput, error) { var it OrganizationWhereInput - 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 } @@ -14950,10 +14578,10 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, nil } -func (ec *executionContext) unmarshalInputProjectWhereInput(ctx context.Context, obj interface{}) (ProjectWhereInput, error) { +func (ec *executionContext) unmarshalInputProjectWhereInput(ctx context.Context, obj any) (ProjectWhereInput, error) { var it ProjectWhereInput - 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 } @@ -15061,10 +14689,10 @@ func (ec *executionContext) unmarshalInputProjectWhereInput(ctx context.Context, return it, nil } -func (ec *executionContext) unmarshalInputTodoOrder(ctx context.Context, obj interface{}) (ent.TodoOrder, error) { +func (ec *executionContext) unmarshalInputTodoOrder(ctx context.Context, obj any) (ent.TodoOrder, error) { var it ent.TodoOrder - 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 } @@ -15099,10 +14727,10 @@ func (ec *executionContext) unmarshalInputTodoOrder(ctx context.Context, obj int return it, nil } -func (ec *executionContext) unmarshalInputTodoWhereInput(ctx context.Context, obj interface{}) (ent.TodoWhereInput, error) { +func (ec *executionContext) unmarshalInputTodoWhereInput(ctx context.Context, obj any) (ent.TodoWhereInput, error) { var it ent.TodoWhereInput - 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 } @@ -15584,10 +15212,10 @@ func (ec *executionContext) unmarshalInputTodoWhereInput(ctx context.Context, ob return it, nil } -func (ec *executionContext) unmarshalInputUpdateCategoryInput(ctx context.Context, obj interface{}) (ent.UpdateCategoryInput, error) { +func (ec *executionContext) unmarshalInputUpdateCategoryInput(ctx context.Context, obj any) (ent.UpdateCategoryInput, error) { var it ent.UpdateCategoryInput - 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 } @@ -15739,10 +15367,10 @@ func (ec *executionContext) unmarshalInputUpdateCategoryInput(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputUpdateFriendshipInput(ctx context.Context, obj interface{}) (UpdateFriendshipInput, error) { +func (ec *executionContext) unmarshalInputUpdateFriendshipInput(ctx context.Context, obj any) (UpdateFriendshipInput, error) { var it UpdateFriendshipInput - 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 } @@ -15780,10 +15408,10 @@ func (ec *executionContext) unmarshalInputUpdateFriendshipInput(ctx context.Cont return it, nil } -func (ec *executionContext) unmarshalInputUpdateTodoInput(ctx context.Context, obj interface{}) (ent.UpdateTodoInput, error) { +func (ec *executionContext) unmarshalInputUpdateTodoInput(ctx context.Context, obj any) (ent.UpdateTodoInput, error) { var it ent.UpdateTodoInput - 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 } @@ -15893,10 +15521,10 @@ func (ec *executionContext) unmarshalInputUpdateTodoInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, obj interface{}) (ent.UpdateUserInput, error) { +func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, obj any) (ent.UpdateUserInput, error) { var it ent.UpdateUserInput - 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 } @@ -16006,10 +15634,10 @@ func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputUserOrder(ctx context.Context, obj interface{}) (ent.UserOrder, error) { +func (ec *executionContext) unmarshalInputUserOrder(ctx context.Context, obj any) (ent.UserOrder, error) { var it ent.UserOrder - 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 } @@ -16044,10 +15672,10 @@ func (ec *executionContext) unmarshalInputUserOrder(ctx context.Context, obj int return it, nil } -func (ec *executionContext) unmarshalInputUserWhereInput(ctx context.Context, obj interface{}) (ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalInputUserWhereInput(ctx context.Context, obj any) (ent.UserWhereInput, error) { var it ent.UserWhereInput - 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 } @@ -16355,9 +15983,6 @@ func (ec *executionContext) _NamedNode(ctx context.Context, sel ast.SelectionSet case nil: return graphql.Null case *ent.Group: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"NamedNode", "Group"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } @@ -16372,83 +15997,50 @@ func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj case nil: return graphql.Null case *ent.Group: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Group"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Group(ctx, sel, obj) case *ent.BillProduct: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "BillProduct"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._BillProduct(ctx, sel, obj) case *ent.Category: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Category"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Category(ctx, sel, obj) case *ent.Friendship: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Friendship"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Friendship(ctx, sel, obj) case OneToMany: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "OneToMany"})) == 0 { - return graphql.Empty{} - } return ec._OneToMany(ctx, sel, &obj) case *OneToMany: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "OneToMany"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._OneToMany(ctx, sel, obj) case *ent1.Workspace: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Workspace"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Organization(ctx, sel, obj) case Project: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Project"})) == 0 { - return graphql.Empty{} - } return ec._Project(ctx, sel, &obj) case *Project: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Project"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Project(ctx, sel, obj) case *ent.Todo: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Todo"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Todo(ctx, sel, obj) case *ent.User: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "User"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } @@ -16474,101 +16066,21 @@ func (ec *executionContext) _BillProduct(ctx context.Context, sel ast.SelectionS case "__typename": out.Values[i] = graphql.MarshalString("BillProduct") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._BillProduct_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._BillProduct_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._BillProduct_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._BillProduct_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "sku": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._BillProduct_sku(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._BillProduct_sku(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "quantity": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._BillProduct_quantity(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._BillProduct_quantity(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -16608,126 +16120,34 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("Category") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "text": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_text(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_text(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "status": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_status(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_status(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "config": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_config(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_config(ctx, field, obj) case "types": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_types(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Category_types(ctx, field, obj) + return res } - out.Values[i] = ec._Category_types(ctx, field, obj) - case "duration": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -16740,60 +16160,36 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_duration(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "duration": out.Values[i] = ec._Category_duration(ctx, field, obj) case "count": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_count(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_count(ctx, field, obj) case "strings": + out.Values[i] = ec._Category_strings(ctx, field, obj) + case "todos": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Category_todos(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_strings(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + return res } - out.Values[i] = ec._Category_strings(ctx, field, obj) - case "todos": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -16806,20 +16202,31 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_todos(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Category_todos(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "subCategories": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Category_subCategories(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -16831,20 +16238,28 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_subCategories(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Category_subCategories(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "todosCount": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Category_todosCount(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -16856,14 +16271,15 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_todosCount(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Category_todosCount(ctx, field, obj) + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -16899,35 +16315,15 @@ func (ec *executionContext) _CategoryConfig(ctx context.Context, sel ast.Selecti case "__typename": out.Values[i] = graphql.MarshalString("CategoryConfig") case "maxMembers": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryConfig_maxMembers(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._CategoryConfig_maxMembers(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + out.Values[i] = ec._CategoryConfig_maxMembers(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } atomic.AddInt32(&ec.deferred, int32(len(deferred))) @@ -16955,73 +16351,13 @@ func (ec *executionContext) _CategoryConnection(ctx context.Context, sel ast.Sel case "__typename": out.Values[i] = graphql.MarshalString("CategoryConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17061,48 +16397,8 @@ func (ec *executionContext) _CategoryEdge(ctx context.Context, sel ast.Selection case "__typename": out.Values[i] = graphql.MarshalString("CategoryEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17142,26 +16438,6 @@ func (ec *executionContext) _CategoryTypes(ctx context.Context, sel ast.Selectio case "__typename": out.Values[i] = graphql.MarshalString("CategoryTypes") case "public": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryTypes_public(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryTypes_public(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -17198,26 +16474,6 @@ func (ec *executionContext) _Custom(ctx context.Context, sel ast.SelectionSet, o case "__typename": out.Values[i] = graphql.MarshalString("Custom") case "info": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Custom_info(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Custom_info(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17257,108 +16513,41 @@ func (ec *executionContext) _Friendship(ctx context.Context, sel ast.SelectionSe case "__typename": out.Values[i] = graphql.MarshalString("Friendship") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Friendship_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_createdAt(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Friendship_createdAt(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "userID": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_userID(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Friendship_userID(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "friendID": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_friendID(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Friendship_friendID(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "user": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Friendship_user(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -17370,20 +16559,31 @@ func (ec *executionContext) _Friendship(ctx context.Context, sel ast.SelectionSe deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_user(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Friendship_user(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "friend": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Friendship_friend(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -17395,17 +16595,15 @@ func (ec *executionContext) _Friendship(ctx context.Context, sel ast.SelectionSe deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_friend(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Friendship_friend(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -17441,73 +16639,13 @@ func (ec *executionContext) _FriendshipConnection(ctx context.Context, sel ast.S case "__typename": out.Values[i] = graphql.MarshalString("FriendshipConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17547,48 +16685,8 @@ func (ec *executionContext) _FriendshipEdge(ctx context.Context, sel ast.Selecti case "__typename": out.Values[i] = graphql.MarshalString("FriendshipEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17628,58 +16726,31 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob case "__typename": out.Values[i] = graphql.MarshalString("Group") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Group_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Group_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Group_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Group_name(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "users": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Group_users(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -17691,17 +16762,15 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Group_users(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Group_users(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -17737,73 +16806,13 @@ func (ec *executionContext) _GroupConnection(ctx context.Context, sel ast.Select case "__typename": out.Values[i] = graphql.MarshalString("GroupConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17843,48 +16852,8 @@ func (ec *executionContext) _GroupEdge(ctx context.Context, sel ast.SelectionSet case "__typename": out.Values[i] = graphql.MarshalString("GroupEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17932,8 +16901,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) case "__typename": out.Values[i] = graphql.MarshalString("Mutation") case "createCategory": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createCategory(ctx, field) }) @@ -17941,8 +16908,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "createTodo": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createTodo(ctx, field) }) @@ -17950,8 +16915,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateTodo": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateTodo(ctx, field) }) @@ -17959,8 +16922,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "clearTodos": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_clearTodos(ctx, field) }) @@ -17968,8 +16929,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateFriendship": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateFriendship(ctx, field) }) @@ -18011,120 +16970,20 @@ func (ec *executionContext) _OneToMany(ctx context.Context, sel ast.SelectionSet case "__typename": out.Values[i] = graphql.MarshalString("OneToMany") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToMany_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToMany_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "field2": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_field2(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToMany_field2(ctx, field, obj) case "parent": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_parent(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToMany_parent(ctx, field, obj) case "children": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_children(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToMany_children(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -18161,73 +17020,13 @@ func (ec *executionContext) _OneToManyConnection(ctx context.Context, sel ast.Se case "__typename": out.Values[i] = graphql.MarshalString("OneToManyConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -18267,48 +17066,8 @@ func (ec *executionContext) _OneToManyEdge(ctx context.Context, sel ast.Selectio case "__typename": out.Values[i] = graphql.MarshalString("OneToManyEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -18350,30 +17109,18 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection case "id": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_id(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Organization_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + return res } - out.Values[i] = ec._Organization_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "name": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -18386,16 +17133,19 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Organization_name(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "name": out.Values[i] = ec._Organization_name(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } default: panic("unknown field " + strconv.Quote(field.Name)) @@ -18432,98 +17182,18 @@ func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("PageInfo") case "hasNextPage": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_hasNextPage(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._PageInfo_hasNextPage(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "hasPreviousPage": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_hasPreviousPage(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._PageInfo_hasPreviousPage(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "startCursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_startCursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._PageInfo_startCursor(ctx, field, obj) case "endCursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_endCursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._PageInfo_endCursor(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -18560,51 +17230,11 @@ func (ec *executionContext) _Project(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("Project") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Project_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Project_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "todos": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Project_todos(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Project_todos(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -18654,99 +17284,225 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr case "node": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_node(ctx, field) - }) + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_node(ctx, field) + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "nodes": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_nodes(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_nodes(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "billProducts": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_billProducts(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_billProducts(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "categories": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_categories(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_categories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "groups": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_groups(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_groups(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "oneToMany": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_oneToMany(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_oneToMany(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "todos": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_todos(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_todos(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "users": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_users(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_users(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "ping": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_ping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_ping(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "todosWithJoins": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_todosWithJoins(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_todosWithJoins(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "__type": - field := field + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "__type": out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Query___type(ctx, field) }) case "__schema": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Query___schema(ctx, field) }) @@ -18785,82 +17541,30 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj case "__typename": out.Values[i] = graphql.MarshalString("Todo") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_createdAt(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_createdAt(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "status": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_status(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_status(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + return res } - case "priorityOrder": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -18873,45 +17577,55 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_priorityOrder(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "priorityOrder": out.Values[i] = ec._Todo_priorityOrder(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "text": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_text(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_text(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "categoryID": + out.Values[i] = ec._Todo_categoryID(ctx, field, obj) + case "category_id": + out.Values[i] = ec._Todo_category_id(ctx, field, obj) + case "categoryX": + out.Values[i] = ec._Todo_categoryX(ctx, field, obj) + case "init": + out.Values[i] = ec._Todo_init(ctx, field, obj) + case "custom": + out.Values[i] = ec._Todo_custom(ctx, field, obj) + case "customp": + out.Values[i] = ec._Todo_customp(ctx, field, obj) + case "value": + out.Values[i] = ec._Todo_value(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "parent": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_parent(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -18923,17 +17637,31 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_categoryID(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_categoryID(ctx, field, obj) - case "category_id": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "children": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_children(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -18945,17 +17673,28 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_category_id(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_category_id(ctx, field, obj) - case "categoryX": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "category": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_category(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -18967,17 +17706,28 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_categoryX(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_categoryX(ctx, field, obj) - case "init": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "extendedField": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_extendedField(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -18989,174 +17739,15 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_init(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_init(ctx, field, obj) - case "custom": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_custom(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_custom(ctx, field, obj) - case "customp": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_customp(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_customp(ctx, field, obj) - case "value": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_value(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_value(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "parent": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_parent(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_parent(ctx, field, obj) - case "children": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_children(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_children(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "category": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_category(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_category(ctx, field, obj) - case "extendedField": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_extendedField(ctx, field, obj) - }) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_extendedField(ctx, field, obj) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -19192,73 +17783,13 @@ func (ec *executionContext) _TodoConnection(ctx context.Context, sel ast.Selecti case "__typename": out.Values[i] = graphql.MarshalString("TodoConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -19298,48 +17829,8 @@ func (ec *executionContext) _TodoEdge(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("TodoEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -19379,8 +17870,31 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj case "__typename": out.Values[i] = graphql.MarshalString("User") case "id": + out.Values[i] = ec._User_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "name": + out.Values[i] = ec._User_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "username": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._User_username(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -19392,69 +17906,37 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_id(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._User_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_name(ctx, field, obj) - }) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._User_name(ctx, field, obj) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "requiredMetadata": + out.Values[i] = ec._User_requiredMetadata(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } - case "username": + case "metadata": + out.Values[i] = ec._User_metadata(ctx, field, obj) + case "groups": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._User_groups(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_username(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._User_username(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + return res } - case "requiredMetadata": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -19467,41 +17949,30 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_requiredMetadata(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._User_requiredMetadata(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "metadata": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "friends": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._User_friends(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_metadata(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + return res } - out.Values[i] = ec._User_metadata(ctx, field, obj) - case "groups": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -19514,44 +17985,30 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_groups(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._User_groups(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "friends": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "friendships": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._User_friendships(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_friends(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + return res } - out.Values[i] = ec._User_friends(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "friendships": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -19564,17 +18021,15 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_friendships(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._User_friendships(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -19610,73 +18065,13 @@ func (ec *executionContext) _UserConnection(ctx context.Context, sel ast.Selecti case "__typename": out.Values[i] = graphql.MarshalString("UserConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._UserConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._UserConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._UserConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -19716,48 +18111,8 @@ func (ec *executionContext) _UserEdge(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("UserEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._UserEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._UserEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -19797,123 +18152,23 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS case "__typename": out.Values[i] = graphql.MarshalString("__Directive") case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_description(ctx, field, obj) case "locations": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_locations(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_locations(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "args": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_args(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_args(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "isRepeatable": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_isRepeatable(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -19953,98 +18208,18 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS case "__typename": out.Values[i] = graphql.MarshalString("__EnumValue") case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___EnumValue_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___EnumValue_description(ctx, field, obj) case "isDeprecated": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_isDeprecated(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "deprecationReason": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_deprecationReason(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -20081,148 +18256,28 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("__Field") case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_description(ctx, field, obj) case "args": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_args(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_args(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "type": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_type(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_type(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "isDeprecated": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_isDeprecated(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "deprecationReason": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_deprecationReason(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -20259,98 +18314,18 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection case "__typename": out.Values[i] = graphql.MarshalString("__InputValue") case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___InputValue_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___InputValue_description(ctx, field, obj) case "type": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_type(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___InputValue_type(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "defaultValue": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_defaultValue(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -20387,142 +18362,22 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("__Schema") case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_description(ctx, field, obj) case "types": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_types(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_types(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "queryType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_queryType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_queryType(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "mutationType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_mutationType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) case "subscriptionType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_subscriptionType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) case "directives": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_directives(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_directives(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -20562,227 +18417,27 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o case "__typename": out.Values[i] = graphql.MarshalString("__Type") case "kind": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_kind(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_kind(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_name(ctx, field, obj) case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_description(ctx, field, obj) case "fields": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_fields(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_fields(ctx, field, obj) case "interfaces": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_interfaces(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_interfaces(ctx, field, obj) case "possibleTypes": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_possibleTypes(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) case "enumValues": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_enumValues(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_enumValues(ctx, field, obj) case "inputFields": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_inputFields(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_inputFields(ctx, field, obj) case "ofType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_ofType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_ofType(ctx, field, obj) case "specifiedByURL": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_specifiedByURL(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -20814,7 +18469,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o func (ec *executionContext) marshalNBillProduct2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐBillProductᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.BillProduct) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -20865,12 +18520,12 @@ func (ec *executionContext) marshalNBillProduct2ᚖentgoᚗioᚋcontribᚋentgql return ec._BillProduct(ctx, sel, v) } -func (ec *executionContext) unmarshalNBillProductWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐBillProductWhereInput(ctx context.Context, v interface{}) (*ent.BillProductWhereInput, error) { +func (ec *executionContext) unmarshalNBillProductWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐBillProductWhereInput(ctx context.Context, v any) (*ent.BillProductWhereInput, error) { res, err := ec.unmarshalInputBillProductWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -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) } @@ -20899,7 +18554,7 @@ func (ec *executionContext) marshalNCategory2ᚖentgoᚗioᚋcontribᚋentgqlᚋ return ec._Category(ctx, sel, v) } -func (ec *executionContext) unmarshalNCategoryConfigInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfig(ctx context.Context, v interface{}) (*schematype.CategoryConfig, error) { +func (ec *executionContext) unmarshalNCategoryConfigInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfig(ctx context.Context, v any) (*schematype.CategoryConfig, error) { res, err := ec.unmarshalInputCategoryConfigInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -20918,12 +18573,12 @@ func (ec *executionContext) marshalNCategoryConnection2ᚖentgoᚗioᚋcontrib return ec._CategoryConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNCategoryOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCategoryOrder(ctx context.Context, v interface{}) (*ent.CategoryOrder, error) { +func (ec *executionContext) unmarshalNCategoryOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCategoryOrder(ctx context.Context, v any) (*ent.CategoryOrder, error) { res, err := ec.unmarshalInputCategoryOrder(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCategoryOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCategoryOrderField(ctx context.Context, v interface{}) (*ent.CategoryOrderField, error) { +func (ec *executionContext) unmarshalNCategoryOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCategoryOrderField(ctx context.Context, v any) (*ent.CategoryOrderField, error) { var res = new(ent.CategoryOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -20939,7 +18594,7 @@ func (ec *executionContext) marshalNCategoryOrderField2ᚖentgoᚗioᚋcontrib return v } -func (ec *executionContext) unmarshalNCategoryStatus2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚋcategoryᚐStatus(ctx context.Context, v interface{}) (category.Status, error) { +func (ec *executionContext) unmarshalNCategoryStatus2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚋcategoryᚐStatus(ctx context.Context, v any) (category.Status, error) { var res category.Status err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -20949,27 +18604,27 @@ func (ec *executionContext) marshalNCategoryStatus2entgoᚗioᚋcontribᚋentgql return v } -func (ec *executionContext) unmarshalNCategoryWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCategoryWhereInput(ctx context.Context, v interface{}) (*ent.CategoryWhereInput, error) { +func (ec *executionContext) unmarshalNCategoryWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCategoryWhereInput(ctx context.Context, v any) (*ent.CategoryWhereInput, error) { res, err := ec.unmarshalInputCategoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateCategoryInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCreateCategoryInput(ctx context.Context, v interface{}) (ent.CreateCategoryInput, error) { +func (ec *executionContext) unmarshalNCreateCategoryInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCreateCategoryInput(ctx context.Context, v any) (ent.CreateCategoryInput, error) { res, err := ec.unmarshalInputCreateCategoryInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateTodoInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCreateTodoInput(ctx context.Context, v interface{}) (ent.CreateTodoInput, error) { +func (ec *executionContext) unmarshalNCreateTodoInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCreateTodoInput(ctx context.Context, v any) (ent.CreateTodoInput, error) { res, err := ec.unmarshalInputCreateTodoInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateTodoInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCreateTodoInput(ctx context.Context, v interface{}) (*ent.CreateTodoInput, error) { +func (ec *executionContext) unmarshalNCreateTodoInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCreateTodoInput(ctx context.Context, v any) (*ent.CreateTodoInput, error) { res, err := ec.unmarshalInputCreateTodoInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v interface{}) (entgql.Cursor[pulid.ID], error) { +func (ec *executionContext) unmarshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v any) (entgql.Cursor[pulid.ID], error) { var res entgql.Cursor[pulid.ID] err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -20983,7 +18638,7 @@ func (ec *executionContext) marshalNCustom2entgoᚗioᚋcontribᚋentgqlᚋinter return ec._Custom(ctx, sel, &v) } -func (ec *executionContext) unmarshalNDuration2timeᚐDuration(ctx context.Context, v interface{}) (time.Duration, error) { +func (ec *executionContext) unmarshalNDuration2timeᚐDuration(ctx context.Context, v any) (time.Duration, error) { res, err := durationgql.UnmarshalDuration(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -21026,7 +18681,7 @@ func (ec *executionContext) marshalNFriendshipConnection2ᚖentgoᚗioᚋcontrib return ec._FriendshipConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNFriendshipWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐFriendshipWhereInput(ctx context.Context, v interface{}) (*ent.FriendshipWhereInput, error) { +func (ec *executionContext) unmarshalNFriendshipWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐFriendshipWhereInput(ctx context.Context, v any) (*ent.FriendshipWhereInput, error) { res, err := ec.unmarshalInputFriendshipWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -21045,12 +18700,12 @@ func (ec *executionContext) marshalNGroupConnection2ᚖentgoᚗioᚋcontribᚋen return ec._GroupConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNGroupWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐGroupWhereInput(ctx context.Context, v interface{}) (*ent.GroupWhereInput, error) { +func (ec *executionContext) unmarshalNGroupWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐGroupWhereInput(ctx context.Context, v any) (*ent.GroupWhereInput, error) { res, err := ec.unmarshalInputGroupWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNID2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚋschemaᚋpulidᚐID(ctx context.Context, v interface{}) (pulid.ID, error) { +func (ec *executionContext) unmarshalNID2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚋschemaᚋpulidᚐID(ctx context.Context, v any) (pulid.ID, error) { var res pulid.ID err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -21060,8 +18715,8 @@ func (ec *executionContext) marshalNID2entgoᚗioᚋcontribᚋentgqlᚋinternal return v } -func (ec *executionContext) unmarshalNID2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚋschemaᚋpulidᚐIDᚄ(ctx context.Context, v interface{}) ([]pulid.ID, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNID2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚋschemaᚋpulidᚐIDᚄ(ctx context.Context, v any) ([]pulid.ID, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21092,7 +18747,7 @@ func (ec *executionContext) marshalNID2ᚕentgoᚗioᚋcontribᚋentgqlᚋintern return ret } -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) } @@ -21107,7 +18762,7 @@ func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.Selecti 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]interface{}, error) { res, err := graphql.UnmarshalMap(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -21131,7 +18786,7 @@ func (ec *executionContext) marshalNMap2map(ctx context.Context, sel ast.Selecti func (ec *executionContext) marshalNNode2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐNoder(ctx context.Context, sel ast.SelectionSet, v []ent.Noder) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21190,7 +18845,7 @@ func (ec *executionContext) marshalNOneToManyConnection2ᚖentgoᚗioᚋcontrib return ec._OneToManyConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNOneToManyOrderField2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐOneToManyOrderField(ctx context.Context, v interface{}) (OneToManyOrderField, error) { +func (ec *executionContext) unmarshalNOneToManyOrderField2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐOneToManyOrderField(ctx context.Context, v any) (OneToManyOrderField, error) { var res OneToManyOrderField err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -21200,12 +18855,12 @@ func (ec *executionContext) marshalNOneToManyOrderField2entgoᚗioᚋcontribᚋe return v } -func (ec *executionContext) unmarshalNOneToManyWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐOneToManyWhereInput(ctx context.Context, v interface{}) (*OneToManyWhereInput, error) { +func (ec *executionContext) unmarshalNOneToManyWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐOneToManyWhereInput(ctx context.Context, v any) (*OneToManyWhereInput, error) { res, err := ec.unmarshalInputOneToManyWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx context.Context, v interface{}) (entgql.OrderDirection, error) { +func (ec *executionContext) unmarshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx context.Context, v any) (entgql.OrderDirection, error) { var res entgql.OrderDirection err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -21215,7 +18870,7 @@ func (ec *executionContext) marshalNOrderDirection2entgoᚗioᚋcontribᚋentgql return v } -func (ec *executionContext) unmarshalNOrganizationWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐOrganizationWhereInput(ctx context.Context, v interface{}) (*OrganizationWhereInput, error) { +func (ec *executionContext) unmarshalNOrganizationWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐOrganizationWhereInput(ctx context.Context, v any) (*OrganizationWhereInput, error) { res, err := ec.unmarshalInputOrganizationWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -21234,12 +18889,12 @@ func (ec *executionContext) marshalNPageInfo2ᚖentgoᚗioᚋcontribᚋentgqlᚐ return ec._PageInfo(ctx, sel, v) } -func (ec *executionContext) unmarshalNProjectWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐProjectWhereInput(ctx context.Context, v interface{}) (*ProjectWhereInput, error) { +func (ec *executionContext) unmarshalNProjectWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐProjectWhereInput(ctx context.Context, v any) (*ProjectWhereInput, error) { res, err := ec.unmarshalInputProjectWhereInput(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) } @@ -21254,8 +18909,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) } @@ -21286,7 +18941,7 @@ func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel return ret } -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) } @@ -21329,12 +18984,12 @@ func (ec *executionContext) marshalNTodoConnection2ᚖentgoᚗioᚋcontribᚋent return ec._TodoConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNTodoOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐTodoOrder(ctx context.Context, v interface{}) (*ent.TodoOrder, error) { +func (ec *executionContext) unmarshalNTodoOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐTodoOrder(ctx context.Context, v any) (*ent.TodoOrder, error) { res, err := ec.unmarshalInputTodoOrder(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNTodoOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐTodoOrderField(ctx context.Context, v interface{}) (*ent.TodoOrderField, error) { +func (ec *executionContext) unmarshalNTodoOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐTodoOrderField(ctx context.Context, v any) (*ent.TodoOrderField, error) { var res = new(ent.TodoOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -21350,7 +19005,7 @@ func (ec *executionContext) marshalNTodoOrderField2ᚖentgoᚗioᚋcontribᚋent return v } -func (ec *executionContext) unmarshalNTodoStatus2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatus(ctx context.Context, v interface{}) (todo.Status, error) { +func (ec *executionContext) unmarshalNTodoStatus2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatus(ctx context.Context, v any) (todo.Status, error) { var res todo.Status err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -21360,12 +19015,12 @@ func (ec *executionContext) marshalNTodoStatus2entgoᚗioᚋcontribᚋentgqlᚋi return v } -func (ec *executionContext) unmarshalNTodoWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐTodoWhereInput(ctx context.Context, v interface{}) (*ent.TodoWhereInput, error) { +func (ec *executionContext) unmarshalNTodoWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐTodoWhereInput(ctx context.Context, v any) (*ent.TodoWhereInput, error) { res, err := ec.unmarshalInputTodoWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -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) } @@ -21380,7 +19035,7 @@ func (ec *executionContext) marshalNUUID2string(ctx context.Context, sel ast.Sel return res } -func (ec *executionContext) unmarshalNUint642uint64(ctx context.Context, v interface{}) (uint64, error) { +func (ec *executionContext) unmarshalNUint642uint64(ctx context.Context, v any) (uint64, error) { res, err := graphql.UnmarshalUint64(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -21395,12 +19050,12 @@ func (ec *executionContext) marshalNUint642uint64(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalNUpdateFriendshipInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐUpdateFriendshipInput(ctx context.Context, v interface{}) (UpdateFriendshipInput, error) { +func (ec *executionContext) unmarshalNUpdateFriendshipInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐUpdateFriendshipInput(ctx context.Context, v any) (UpdateFriendshipInput, error) { res, err := ec.unmarshalInputUpdateFriendshipInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNUpdateTodoInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐUpdateTodoInput(ctx context.Context, v interface{}) (ent.UpdateTodoInput, error) { +func (ec *executionContext) unmarshalNUpdateTodoInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐUpdateTodoInput(ctx context.Context, v any) (ent.UpdateTodoInput, error) { res, err := ec.unmarshalInputUpdateTodoInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -21429,7 +19084,7 @@ func (ec *executionContext) marshalNUserConnection2ᚖentgoᚗioᚋcontribᚋent return ec._UserConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNUserOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐUserOrderField(ctx context.Context, v interface{}) (*ent.UserOrderField, error) { +func (ec *executionContext) unmarshalNUserOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐUserOrderField(ctx context.Context, v any) (*ent.UserOrderField, error) { var res = new(ent.UserOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -21445,7 +19100,7 @@ func (ec *executionContext) marshalNUserOrderField2ᚖentgoᚗioᚋcontribᚋent return v } -func (ec *executionContext) unmarshalNUserWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐUserWhereInput(ctx context.Context, v interface{}) (*ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalNUserWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐUserWhereInput(ctx context.Context, v any) (*ent.UserWhereInput, error) { res, err := ec.unmarshalInputUserWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -21457,7 +19112,7 @@ func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlge func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21498,7 +19153,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) } @@ -21513,8 +19168,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) } @@ -21533,7 +19188,7 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21589,7 +19244,7 @@ func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlg func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21637,7 +19292,7 @@ func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋg func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21688,7 +19343,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) } @@ -21703,11 +19358,11 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBillProductWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐBillProductWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.BillProductWhereInput, error) { +func (ec *executionContext) unmarshalOBillProductWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐBillProductWhereInputᚄ(ctx context.Context, v any) ([]*ent.BillProductWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21723,7 +19378,7 @@ func (ec *executionContext) unmarshalOBillProductWhereInput2ᚕᚖentgoᚗioᚋc return res, nil } -func (ec *executionContext) unmarshalOBillProductWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐBillProductWhereInput(ctx context.Context, v interface{}) (*ent.BillProductWhereInput, error) { +func (ec *executionContext) unmarshalOBillProductWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐBillProductWhereInput(ctx context.Context, v any) (*ent.BillProductWhereInput, error) { if v == nil { return nil, nil } @@ -21731,7 +19386,7 @@ func (ec *executionContext) unmarshalOBillProductWhereInput2ᚖentgoᚗioᚋcont return &res, graphql.ErrorOnPath(ctx, err) } -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) } @@ -21741,7 +19396,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 } @@ -21771,11 +19426,11 @@ func (ec *executionContext) marshalOCategoryConfig2ᚖentgoᚗioᚋcontribᚋent return ec._CategoryConfig(ctx, sel, v) } -func (ec *executionContext) unmarshalOCategoryConfigInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfigᚄ(ctx context.Context, v interface{}) ([]*schematype.CategoryConfig, error) { +func (ec *executionContext) unmarshalOCategoryConfigInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfigᚄ(ctx context.Context, v any) ([]*schematype.CategoryConfig, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21791,7 +19446,7 @@ func (ec *executionContext) unmarshalOCategoryConfigInput2ᚕᚖentgoᚗioᚋcon return res, nil } -func (ec *executionContext) unmarshalOCategoryConfigInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfig(ctx context.Context, v interface{}) (*schematype.CategoryConfig, error) { +func (ec *executionContext) unmarshalOCategoryConfigInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfig(ctx context.Context, v any) (*schematype.CategoryConfig, error) { if v == nil { return nil, nil } @@ -21805,7 +19460,7 @@ func (ec *executionContext) marshalOCategoryEdge2ᚕᚖentgoᚗioᚋcontribᚋen } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21847,11 +19502,11 @@ func (ec *executionContext) marshalOCategoryEdge2ᚖentgoᚗioᚋcontribᚋentgq return ec._CategoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOCategoryOrder2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCategoryOrderᚄ(ctx context.Context, v interface{}) ([]*ent.CategoryOrder, error) { +func (ec *executionContext) unmarshalOCategoryOrder2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCategoryOrderᚄ(ctx context.Context, v any) ([]*ent.CategoryOrder, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21867,11 +19522,11 @@ func (ec *executionContext) unmarshalOCategoryOrder2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOCategoryStatus2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚋcategoryᚐStatusᚄ(ctx context.Context, v interface{}) ([]category.Status, error) { +func (ec *executionContext) unmarshalOCategoryStatus2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚋcategoryᚐStatusᚄ(ctx context.Context, v any) ([]category.Status, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21893,7 +19548,7 @@ func (ec *executionContext) marshalOCategoryStatus2ᚕentgoᚗioᚋcontribᚋent } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21934,7 +19589,7 @@ func (ec *executionContext) marshalOCategoryStatus2ᚕentgoᚗioᚋcontribᚋent return ret } -func (ec *executionContext) unmarshalOCategoryStatus2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚋcategoryᚐStatus(ctx context.Context, v interface{}) (*category.Status, error) { +func (ec *executionContext) unmarshalOCategoryStatus2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚋcategoryᚐStatus(ctx context.Context, v any) (*category.Status, error) { if v == nil { return nil, nil } @@ -21957,7 +19612,7 @@ func (ec *executionContext) marshalOCategoryTypes2ᚖentgoᚗioᚋcontribᚋentg return ec._CategoryTypes(ctx, sel, v) } -func (ec *executionContext) unmarshalOCategoryTypesInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐCategoryTypesInput(ctx context.Context, v interface{}) (*CategoryTypesInput, error) { +func (ec *executionContext) unmarshalOCategoryTypesInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐCategoryTypesInput(ctx context.Context, v any) (*CategoryTypesInput, error) { if v == nil { return nil, nil } @@ -21965,11 +19620,11 @@ func (ec *executionContext) unmarshalOCategoryTypesInput2ᚖentgoᚗioᚋcontrib return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOCategoryWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCategoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.CategoryWhereInput, error) { +func (ec *executionContext) unmarshalOCategoryWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCategoryWhereInputᚄ(ctx context.Context, v any) ([]*ent.CategoryWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21985,7 +19640,7 @@ func (ec *executionContext) unmarshalOCategoryWhereInput2ᚕᚖentgoᚗioᚋcont return res, nil } -func (ec *executionContext) unmarshalOCategoryWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCategoryWhereInput(ctx context.Context, v interface{}) (*ent.CategoryWhereInput, error) { +func (ec *executionContext) unmarshalOCategoryWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCategoryWhereInput(ctx context.Context, v any) (*ent.CategoryWhereInput, error) { if v == nil { return nil, nil } @@ -21993,11 +19648,11 @@ func (ec *executionContext) unmarshalOCategoryWhereInput2ᚖentgoᚗioᚋcontrib return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOCreateTodoInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCreateTodoInputᚄ(ctx context.Context, v interface{}) ([]*ent.CreateTodoInput, error) { +func (ec *executionContext) unmarshalOCreateTodoInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐCreateTodoInputᚄ(ctx context.Context, v any) ([]*ent.CreateTodoInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22013,7 +19668,7 @@ func (ec *executionContext) unmarshalOCreateTodoInput2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v interface{}) (*entgql.Cursor[pulid.ID], error) { +func (ec *executionContext) unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v any) (*entgql.Cursor[pulid.ID], error) { if v == nil { return nil, nil } @@ -22035,7 +19690,7 @@ func (ec *executionContext) marshalOCustom2ᚕentgoᚗioᚋcontribᚋentgqlᚋin } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22082,7 +19737,7 @@ func (ec *executionContext) marshalOCustom2ᚕᚖentgoᚗioᚋcontribᚋentgql } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22124,7 +19779,7 @@ func (ec *executionContext) marshalOCustom2ᚖentgoᚗioᚋcontribᚋentgqlᚋin return ec._Custom(ctx, sel, v) } -func (ec *executionContext) unmarshalODuration2timeᚐDuration(ctx context.Context, v interface{}) (time.Duration, error) { +func (ec *executionContext) unmarshalODuration2timeᚐDuration(ctx context.Context, v any) (time.Duration, error) { res, err := durationgql.UnmarshalDuration(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -22134,11 +19789,11 @@ func (ec *executionContext) marshalODuration2timeᚐDuration(ctx context.Context return res } -func (ec *executionContext) unmarshalODuration2ᚕtimeᚐDurationᚄ(ctx context.Context, v interface{}) ([]time.Duration, error) { +func (ec *executionContext) unmarshalODuration2ᚕtimeᚐDurationᚄ(ctx context.Context, v any) ([]time.Duration, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22172,7 +19827,7 @@ func (ec *executionContext) marshalODuration2ᚕtimeᚐDurationᚄ(ctx context.C return ret } -func (ec *executionContext) unmarshalODuration2ᚖtimeᚐDuration(ctx context.Context, v interface{}) (*time.Duration, error) { +func (ec *executionContext) unmarshalODuration2ᚖtimeᚐDuration(ctx context.Context, v any) (*time.Duration, error) { if v == nil { return nil, nil } @@ -22201,7 +19856,7 @@ func (ec *executionContext) marshalOFriendshipEdge2ᚕᚖentgoᚗioᚋcontribᚋ } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22243,11 +19898,11 @@ func (ec *executionContext) marshalOFriendshipEdge2ᚖentgoᚗioᚋcontribᚋent return ec._FriendshipEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐFriendshipWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.FriendshipWhereInput, error) { +func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐFriendshipWhereInputᚄ(ctx context.Context, v any) ([]*ent.FriendshipWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22263,7 +19918,7 @@ func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚕᚖentgoᚗioᚋco return res, nil } -func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐFriendshipWhereInput(ctx context.Context, v interface{}) (*ent.FriendshipWhereInput, error) { +func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐFriendshipWhereInput(ctx context.Context, v any) (*ent.FriendshipWhereInput, error) { if v == nil { return nil, nil } @@ -22284,7 +19939,7 @@ func (ec *executionContext) marshalOGroupEdge2ᚕᚖentgoᚗioᚋcontribᚋentgq } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22326,11 +19981,11 @@ func (ec *executionContext) marshalOGroupEdge2ᚖentgoᚗioᚋcontribᚋentgql return ec._GroupEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOGroupWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐGroupWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.GroupWhereInput, error) { +func (ec *executionContext) unmarshalOGroupWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐGroupWhereInputᚄ(ctx context.Context, v any) ([]*ent.GroupWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22346,7 +20001,7 @@ func (ec *executionContext) unmarshalOGroupWhereInput2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOGroupWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐGroupWhereInput(ctx context.Context, v interface{}) (*ent.GroupWhereInput, error) { +func (ec *executionContext) unmarshalOGroupWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐGroupWhereInput(ctx context.Context, v any) (*ent.GroupWhereInput, error) { if v == nil { return nil, nil } @@ -22354,7 +20009,7 @@ func (ec *executionContext) unmarshalOGroupWhereInput2ᚖentgoᚗioᚋcontribᚋ return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOID2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚋschemaᚋpulidᚐID(ctx context.Context, v interface{}) (pulid.ID, error) { +func (ec *executionContext) unmarshalOID2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚋschemaᚋpulidᚐID(ctx context.Context, v any) (pulid.ID, error) { var res pulid.ID err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -22364,11 +20019,11 @@ func (ec *executionContext) marshalOID2entgoᚗioᚋcontribᚋentgqlᚋinternal return v } -func (ec *executionContext) unmarshalOID2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚋschemaᚋpulidᚐIDᚄ(ctx context.Context, v interface{}) ([]pulid.ID, error) { +func (ec *executionContext) unmarshalOID2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚋschemaᚋpulidᚐIDᚄ(ctx context.Context, v any) ([]pulid.ID, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22402,7 +20057,7 @@ func (ec *executionContext) marshalOID2ᚕentgoᚗioᚋcontribᚋentgqlᚋintern return ret } -func (ec *executionContext) unmarshalOID2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚋschemaᚋpulidᚐID(ctx context.Context, v interface{}) (*pulid.ID, error) { +func (ec *executionContext) unmarshalOID2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚋschemaᚋpulidᚐID(ctx context.Context, v any) (*pulid.ID, error) { if v == nil { return nil, nil } @@ -22418,7 +20073,7 @@ func (ec *executionContext) marshalOID2ᚖentgoᚗioᚋcontribᚋentgqlᚋintern return v } -func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -22428,11 +20083,11 @@ func (ec *executionContext) marshalOInt2int(ctx context.Context, sel ast.Selecti 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 } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22466,7 +20121,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 } @@ -22482,7 +20137,7 @@ func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.Sele return res } -func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v any) (map[string]interface{}, error) { if v == nil { return nil, nil } @@ -22511,7 +20166,7 @@ func (ec *executionContext) marshalOOneToMany2ᚕᚖentgoᚗioᚋcontribᚋentgq } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22565,7 +20220,7 @@ func (ec *executionContext) marshalOOneToManyEdge2ᚕᚖentgoᚗioᚋcontribᚋe } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22607,7 +20262,7 @@ func (ec *executionContext) marshalOOneToManyEdge2ᚖentgoᚗioᚋcontribᚋentg return ec._OneToManyEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOOneToManyOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐOneToManyOrder(ctx context.Context, v interface{}) (*OneToManyOrder, error) { +func (ec *executionContext) unmarshalOOneToManyOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐOneToManyOrder(ctx context.Context, v any) (*OneToManyOrder, error) { if v == nil { return nil, nil } @@ -22615,11 +20270,11 @@ func (ec *executionContext) unmarshalOOneToManyOrder2ᚖentgoᚗioᚋcontribᚋe return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐOneToManyWhereInputᚄ(ctx context.Context, v interface{}) ([]*OneToManyWhereInput, error) { +func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐOneToManyWhereInputᚄ(ctx context.Context, v any) ([]*OneToManyWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22635,7 +20290,7 @@ func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚕᚖentgoᚗioᚋcon return res, nil } -func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐOneToManyWhereInput(ctx context.Context, v interface{}) (*OneToManyWhereInput, error) { +func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐOneToManyWhereInput(ctx context.Context, v any) (*OneToManyWhereInput, error) { if v == nil { return nil, nil } @@ -22643,11 +20298,11 @@ func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚖentgoᚗioᚋcontri return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐOrganizationWhereInputᚄ(ctx context.Context, v interface{}) ([]*OrganizationWhereInput, error) { +func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐOrganizationWhereInputᚄ(ctx context.Context, v any) ([]*OrganizationWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22663,7 +20318,7 @@ func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚕᚖentgoᚗioᚋ return res, nil } -func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐOrganizationWhereInput(ctx context.Context, v interface{}) (*OrganizationWhereInput, error) { +func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐOrganizationWhereInput(ctx context.Context, v any) (*OrganizationWhereInput, error) { if v == nil { return nil, nil } @@ -22671,11 +20326,11 @@ func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚖentgoᚗioᚋcon return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOProjectWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐProjectWhereInputᚄ(ctx context.Context, v interface{}) ([]*ProjectWhereInput, error) { +func (ec *executionContext) unmarshalOProjectWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐProjectWhereInputᚄ(ctx context.Context, v any) ([]*ProjectWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22691,7 +20346,7 @@ func (ec *executionContext) unmarshalOProjectWhereInput2ᚕᚖentgoᚗioᚋcontr return res, nil } -func (ec *executionContext) unmarshalOProjectWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐProjectWhereInput(ctx context.Context, v interface{}) (*ProjectWhereInput, error) { +func (ec *executionContext) unmarshalOProjectWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚐProjectWhereInput(ctx context.Context, v any) (*ProjectWhereInput, error) { if v == nil { return nil, nil } @@ -22699,11 +20354,11 @@ func (ec *executionContext) unmarshalOProjectWhereInput2ᚖentgoᚗioᚋcontrib 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 } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22737,7 +20392,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 } @@ -22753,11 +20408,11 @@ func (ec *executionContext) marshalOString2ᚖstring(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 } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22791,7 +20446,7 @@ func (ec *executionContext) marshalOTime2ᚕtimeᚐTimeᚄ(ctx context.Context, return ret } -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 } @@ -22820,7 +20475,7 @@ func (ec *executionContext) marshalOTodoEdge2ᚕᚖentgoᚗioᚋcontribᚋentgql } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22862,11 +20517,11 @@ func (ec *executionContext) marshalOTodoEdge2ᚖentgoᚗioᚋcontribᚋentgqlᚋ return ec._TodoEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOTodoOrder2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐTodoOrderᚄ(ctx context.Context, v interface{}) ([]*ent.TodoOrder, error) { +func (ec *executionContext) unmarshalOTodoOrder2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐTodoOrderᚄ(ctx context.Context, v any) ([]*ent.TodoOrder, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22882,11 +20537,11 @@ func (ec *executionContext) unmarshalOTodoOrder2ᚕᚖentgoᚗioᚋcontribᚋent return res, nil } -func (ec *executionContext) unmarshalOTodoStatus2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatusᚄ(ctx context.Context, v interface{}) ([]todo.Status, error) { +func (ec *executionContext) unmarshalOTodoStatus2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatusᚄ(ctx context.Context, v any) ([]todo.Status, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22908,7 +20563,7 @@ func (ec *executionContext) marshalOTodoStatus2ᚕentgoᚗioᚋcontribᚋentgql } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22949,7 +20604,7 @@ func (ec *executionContext) marshalOTodoStatus2ᚕentgoᚗioᚋcontribᚋentgql return ret } -func (ec *executionContext) unmarshalOTodoStatus2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatus(ctx context.Context, v interface{}) (*todo.Status, error) { +func (ec *executionContext) unmarshalOTodoStatus2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatus(ctx context.Context, v any) (*todo.Status, error) { if v == nil { return nil, nil } @@ -22965,11 +20620,11 @@ func (ec *executionContext) marshalOTodoStatus2ᚖentgoᚗioᚋcontribᚋentgql return v } -func (ec *executionContext) unmarshalOTodoWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐTodoWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.TodoWhereInput, error) { +func (ec *executionContext) unmarshalOTodoWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐTodoWhereInputᚄ(ctx context.Context, v any) ([]*ent.TodoWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22985,7 +20640,7 @@ func (ec *executionContext) unmarshalOTodoWhereInput2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOTodoWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐTodoWhereInput(ctx context.Context, v interface{}) (*ent.TodoWhereInput, error) { +func (ec *executionContext) unmarshalOTodoWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐTodoWhereInput(ctx context.Context, v any) (*ent.TodoWhereInput, error) { if v == nil { return nil, nil } @@ -22993,11 +20648,11 @@ func (ec *executionContext) unmarshalOTodoWhereInput2ᚖentgoᚗioᚋcontribᚋe return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOUUID2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { +func (ec *executionContext) unmarshalOUUID2ᚕ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) } @@ -23031,7 +20686,7 @@ func (ec *executionContext) marshalOUUID2ᚕstringᚄ(ctx context.Context, sel a return ret } -func (ec *executionContext) unmarshalOUUID2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOUUID2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } @@ -23047,7 +20702,7 @@ func (ec *executionContext) marshalOUUID2ᚖstring(ctx context.Context, sel ast. return res } -func (ec *executionContext) unmarshalOUint642uint64(ctx context.Context, v interface{}) (uint64, error) { +func (ec *executionContext) unmarshalOUint642uint64(ctx context.Context, v any) (uint64, error) { res, err := graphql.UnmarshalUint64(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23057,11 +20712,11 @@ func (ec *executionContext) marshalOUint642uint64(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOUint642ᚕuint64ᚄ(ctx context.Context, v interface{}) ([]uint64, error) { +func (ec *executionContext) unmarshalOUint642ᚕuint64ᚄ(ctx context.Context, v any) ([]uint64, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -23095,7 +20750,7 @@ func (ec *executionContext) marshalOUint642ᚕuint64ᚄ(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalOUint642ᚖuint64(ctx context.Context, v interface{}) (*uint64, error) { +func (ec *executionContext) unmarshalOUint642ᚖuint64(ctx context.Context, v any) (*uint64, error) { if v == nil { return nil, nil } @@ -23124,7 +20779,7 @@ func (ec *executionContext) marshalOUserEdge2ᚕᚖentgoᚗioᚋcontribᚋentgql } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -23166,7 +20821,7 @@ func (ec *executionContext) marshalOUserEdge2ᚖentgoᚗioᚋcontribᚋentgqlᚋ return ec._UserEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOUserOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐUserOrder(ctx context.Context, v interface{}) (*ent.UserOrder, error) { +func (ec *executionContext) unmarshalOUserOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐUserOrder(ctx context.Context, v any) (*ent.UserOrder, error) { if v == nil { return nil, nil } @@ -23174,11 +20829,11 @@ func (ec *executionContext) unmarshalOUserOrder2ᚖentgoᚗioᚋcontribᚋentgql return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOUserWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐUserWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalOUserWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐUserWhereInputᚄ(ctx context.Context, v any) ([]*ent.UserWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -23194,7 +20849,7 @@ func (ec *executionContext) unmarshalOUserWhereInput2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOUserWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐUserWhereInput(ctx context.Context, v interface{}) (*ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalOUserWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodopulidᚋentᚐUserWhereInput(ctx context.Context, v any) (*ent.UserWhereInput, error) { if v == nil { return nil, nil } @@ -23208,7 +20863,7 @@ func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgq } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -23255,7 +20910,7 @@ func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgen } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -23302,7 +20957,7 @@ func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋg } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -23356,7 +21011,7 @@ func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgen } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } diff --git a/entgql/internal/todopulid/gqlgen.yml b/entgql/internal/todopulid/gqlgen.yml index e40f6e2e5..8159c660a 100644 --- a/entgql/internal/todopulid/gqlgen.yml +++ b/entgql/internal/todopulid/gqlgen.yml @@ -9,6 +9,7 @@ schema: resolver: layout: follow-schema + preserve_resolver: true dir: . autobind: diff --git a/entgql/internal/todopulid/models_gen.go b/entgql/internal/todopulid/models_gen.go index bfaee0f16..de0adce27 100644 --- a/entgql/internal/todopulid/models_gen.go +++ b/entgql/internal/todopulid/models_gen.go @@ -203,7 +203,7 @@ func (e OneToManyOrderField) String() string { return string(e) } -func (e *OneToManyOrderField) UnmarshalGQL(v interface{}) error { +func (e *OneToManyOrderField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/entgql/internal/todouuid/generated.go b/entgql/internal/todouuid/generated.go index 08a0dfee4..e4dce2f05 100644 --- a/entgql/internal/todouuid/generated.go +++ b/entgql/internal/todouuid/generated.go @@ -65,7 +65,7 @@ type ResolverRoot interface { } type DirectiveRoot struct { - HasPermissions func(ctx context.Context, obj interface{}, next graphql.Resolver, permissions []string) (res interface{}, err error) + HasPermissions func(ctx context.Context, obj any, next graphql.Resolver, permissions []string) (res any, err error) } type ComplexityRoot struct { @@ -350,7 +350,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 { @@ -1209,8 +1209,8 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in } func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { - rc := graphql.GetOperationContext(ctx) - ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)} + opCtx := graphql.GetOperationContext(ctx) + ec := executionContext{opCtx, e, 0, 0, make(chan graphql.DeferredResult)} inputUnmarshalMap := graphql.BuildUnmarshalerMap( ec.unmarshalInputBillProductWhereInput, ec.unmarshalInputCategoryConfigInput, @@ -1237,7 +1237,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ) first := true - switch rc.Operation.Operation { + switch opCtx.Operation.Operation { case ast.Query: return func(ctx context.Context) *graphql.Response { var response graphql.Response @@ -1245,7 +1245,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { if first { first = false ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data = ec._Query(ctx, rc.Operation.SelectionSet) + data = ec._Query(ctx, opCtx.Operation.SelectionSet) } else { if atomic.LoadInt32(&ec.pendingDeferred) > 0 { result := <-ec.deferredResults @@ -1275,7 +1275,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { } first = false ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data := ec._Mutation(ctx, rc.Operation.SelectionSet) + data := ec._Mutation(ctx, opCtx.Operation.SelectionSet) var buf bytes.Buffer data.MarshalGQL(&buf) @@ -2874,9 +2874,9 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) dir_hasPermissions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) dir_hasPermissions_args(ctx 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_hasPermissions_argsPermissions(ctx, rawArgs) if err != nil { return nil, err @@ -2886,13 +2886,9 @@ func (ec *executionContext) dir_hasPermissions_args(ctx context.Context, rawArgs } func (ec *executionContext) dir_hasPermissions_argsPermissions( 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 - // even if the argument is null. - _, ok := rawArgs["permissions"] - if !ok { + if _, ok := rawArgs["permissions"]; !ok { var zeroVal []string return zeroVal, nil } @@ -2906,9 +2902,9 @@ func (ec *executionContext) dir_hasPermissions_argsPermissions( return zeroVal, nil } -func (ec *executionContext) field_Category_subCategories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Category_subCategories_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Category_subCategories_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -2943,13 +2939,9 @@ func (ec *executionContext) field_Category_subCategories_args(ctx context.Contex } func (ec *executionContext) field_Category_subCategories_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -2965,13 +2957,9 @@ func (ec *executionContext) field_Category_subCategories_argsAfter( func (ec *executionContext) field_Category_subCategories_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -2987,13 +2975,9 @@ func (ec *executionContext) field_Category_subCategories_argsFirst( func (ec *executionContext) field_Category_subCategories_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -3009,13 +2993,9 @@ func (ec *executionContext) field_Category_subCategories_argsBefore( func (ec *executionContext) field_Category_subCategories_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3031,13 +3011,9 @@ func (ec *executionContext) field_Category_subCategories_argsLast( func (ec *executionContext) field_Category_subCategories_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.CategoryOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.CategoryOrder return zeroVal, nil } @@ -3053,13 +3029,9 @@ func (ec *executionContext) field_Category_subCategories_argsOrderBy( func (ec *executionContext) field_Category_subCategories_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.CategoryWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.CategoryWhereInput return zeroVal, nil } @@ -3073,9 +3045,9 @@ func (ec *executionContext) field_Category_subCategories_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Category_todos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Category_todos_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Category_todos_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3110,13 +3082,9 @@ func (ec *executionContext) field_Category_todos_args(ctx context.Context, rawAr } func (ec *executionContext) field_Category_todos_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -3132,13 +3100,9 @@ func (ec *executionContext) field_Category_todos_argsAfter( func (ec *executionContext) field_Category_todos_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3154,13 +3118,9 @@ func (ec *executionContext) field_Category_todos_argsFirst( func (ec *executionContext) field_Category_todos_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -3176,13 +3136,9 @@ func (ec *executionContext) field_Category_todos_argsBefore( func (ec *executionContext) field_Category_todos_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3198,13 +3154,9 @@ func (ec *executionContext) field_Category_todos_argsLast( func (ec *executionContext) field_Category_todos_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -3220,13 +3172,9 @@ func (ec *executionContext) field_Category_todos_argsOrderBy( func (ec *executionContext) field_Category_todos_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -3240,9 +3188,9 @@ func (ec *executionContext) field_Category_todos_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Group_users_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Group_users_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Group_users_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3277,13 +3225,9 @@ func (ec *executionContext) field_Group_users_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Group_users_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -3299,13 +3243,9 @@ func (ec *executionContext) field_Group_users_argsAfter( func (ec *executionContext) field_Group_users_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3321,13 +3261,9 @@ func (ec *executionContext) field_Group_users_argsFirst( func (ec *executionContext) field_Group_users_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -3343,13 +3279,9 @@ func (ec *executionContext) field_Group_users_argsBefore( func (ec *executionContext) field_Group_users_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3365,13 +3297,9 @@ func (ec *executionContext) field_Group_users_argsLast( func (ec *executionContext) field_Group_users_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal *ent.UserOrder return zeroVal, nil } @@ -3387,13 +3315,9 @@ func (ec *executionContext) field_Group_users_argsOrderBy( func (ec *executionContext) field_Group_users_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.UserWhereInput return zeroVal, nil } @@ -3407,9 +3331,9 @@ func (ec *executionContext) field_Group_users_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Mutation_createCategory_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_createCategory_args(ctx context.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_createCategory_argsInput(ctx, rawArgs) if err != nil { return nil, err @@ -3419,13 +3343,9 @@ func (ec *executionContext) field_Mutation_createCategory_args(ctx context.Conte } func (ec *executionContext) field_Mutation_createCategory_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (ent.CreateCategoryInput, 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 { + if _, ok := rawArgs["input"]; !ok { var zeroVal ent.CreateCategoryInput return zeroVal, nil } @@ -3439,9 +3359,9 @@ func (ec *executionContext) field_Mutation_createCategory_argsInput( return zeroVal, nil } -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 @@ -3451,13 +3371,9 @@ 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, ) (ent.CreateTodoInput, 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 { + if _, ok := rawArgs["input"]; !ok { var zeroVal ent.CreateTodoInput return zeroVal, nil } @@ -3471,9 +3387,9 @@ func (ec *executionContext) field_Mutation_createTodo_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Mutation_updateFriendship_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_updateFriendship_args(ctx context.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_updateFriendship_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -3488,13 +3404,9 @@ func (ec *executionContext) field_Mutation_updateFriendship_args(ctx context.Con } func (ec *executionContext) field_Mutation_updateFriendship_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (uuid.UUID, 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["id"] - if !ok { + if _, ok := rawArgs["id"]; !ok { var zeroVal uuid.UUID return zeroVal, nil } @@ -3510,13 +3422,9 @@ func (ec *executionContext) field_Mutation_updateFriendship_argsID( func (ec *executionContext) field_Mutation_updateFriendship_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (UpdateFriendshipInput, 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 { + if _, ok := rawArgs["input"]; !ok { var zeroVal UpdateFriendshipInput return zeroVal, nil } @@ -3530,9 +3438,9 @@ func (ec *executionContext) field_Mutation_updateFriendship_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Mutation_updateTodo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_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_Mutation_updateTodo_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -3547,13 +3455,9 @@ func (ec *executionContext) field_Mutation_updateTodo_args(ctx context.Context, } func (ec *executionContext) field_Mutation_updateTodo_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (uuid.UUID, 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["id"] - if !ok { + if _, ok := rawArgs["id"]; !ok { var zeroVal uuid.UUID return zeroVal, nil } @@ -3569,13 +3473,9 @@ func (ec *executionContext) field_Mutation_updateTodo_argsID( func (ec *executionContext) field_Mutation_updateTodo_argsInput( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (ent.UpdateTodoInput, 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 { + if _, ok := rawArgs["input"]; !ok { var zeroVal ent.UpdateTodoInput return zeroVal, nil } @@ -3589,9 +3489,9 @@ func (ec *executionContext) field_Mutation_updateTodo_argsInput( return zeroVal, nil } -func (ec *executionContext) field_Project_todos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Project_todos_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Project_todos_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3626,13 +3526,9 @@ func (ec *executionContext) field_Project_todos_args(ctx context.Context, rawArg } func (ec *executionContext) field_Project_todos_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -3648,13 +3544,9 @@ func (ec *executionContext) field_Project_todos_argsAfter( func (ec *executionContext) field_Project_todos_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3670,13 +3562,9 @@ func (ec *executionContext) field_Project_todos_argsFirst( func (ec *executionContext) field_Project_todos_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -3692,13 +3580,9 @@ func (ec *executionContext) field_Project_todos_argsBefore( func (ec *executionContext) field_Project_todos_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3714,13 +3598,9 @@ func (ec *executionContext) field_Project_todos_argsLast( func (ec *executionContext) field_Project_todos_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -3736,13 +3616,9 @@ func (ec *executionContext) field_Project_todos_argsOrderBy( func (ec *executionContext) field_Project_todos_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -3756,9 +3632,9 @@ func (ec *executionContext) field_Project_todos_argsWhere( 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 @@ -3768,13 +3644,9 @@ 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 - // even if the argument is null. - _, ok := rawArgs["name"] - if !ok { + if _, ok := rawArgs["name"]; !ok { var zeroVal string return zeroVal, nil } @@ -3788,9 +3660,9 @@ func (ec *executionContext) field_Query___type_argsName( return zeroVal, nil } -func (ec *executionContext) field_Query_categories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_categories_args(ctx context.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_categories_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3825,13 +3697,9 @@ func (ec *executionContext) field_Query_categories_args(ctx context.Context, raw } func (ec *executionContext) field_Query_categories_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -3847,13 +3715,9 @@ func (ec *executionContext) field_Query_categories_argsAfter( func (ec *executionContext) field_Query_categories_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3869,13 +3733,9 @@ func (ec *executionContext) field_Query_categories_argsFirst( func (ec *executionContext) field_Query_categories_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -3891,13 +3751,9 @@ func (ec *executionContext) field_Query_categories_argsBefore( func (ec *executionContext) field_Query_categories_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -3913,13 +3769,9 @@ func (ec *executionContext) field_Query_categories_argsLast( func (ec *executionContext) field_Query_categories_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.CategoryOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.CategoryOrder return zeroVal, nil } @@ -3935,13 +3787,9 @@ func (ec *executionContext) field_Query_categories_argsOrderBy( func (ec *executionContext) field_Query_categories_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.CategoryWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.CategoryWhereInput return zeroVal, nil } @@ -3955,9 +3803,9 @@ func (ec *executionContext) field_Query_categories_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_groups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_groups_args(ctx context.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_groups_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -3987,13 +3835,9 @@ func (ec *executionContext) field_Query_groups_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_groups_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -4009,13 +3853,9 @@ func (ec *executionContext) field_Query_groups_argsAfter( func (ec *executionContext) field_Query_groups_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4031,13 +3871,9 @@ func (ec *executionContext) field_Query_groups_argsFirst( func (ec *executionContext) field_Query_groups_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -4053,13 +3889,9 @@ func (ec *executionContext) field_Query_groups_argsBefore( func (ec *executionContext) field_Query_groups_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4075,13 +3907,9 @@ func (ec *executionContext) field_Query_groups_argsLast( func (ec *executionContext) field_Query_groups_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.GroupWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.GroupWhereInput return zeroVal, nil } @@ -4095,9 +3923,9 @@ func (ec *executionContext) field_Query_groups_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_node_args(ctx context.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_node_argsID(ctx, rawArgs) if err != nil { return nil, err @@ -4107,13 +3935,9 @@ func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs m } func (ec *executionContext) field_Query_node_argsID( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (uuid.UUID, 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["id"] - if !ok { + if _, ok := rawArgs["id"]; !ok { var zeroVal uuid.UUID return zeroVal, nil } @@ -4127,9 +3951,9 @@ func (ec *executionContext) field_Query_node_argsID( return zeroVal, nil } -func (ec *executionContext) field_Query_nodes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_nodes_args(ctx context.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_nodes_argsIds(ctx, rawArgs) if err != nil { return nil, err @@ -4139,13 +3963,9 @@ func (ec *executionContext) field_Query_nodes_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_nodes_argsIds( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]uuid.UUID, 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["ids"] - if !ok { + if _, ok := rawArgs["ids"]; !ok { var zeroVal []uuid.UUID return zeroVal, nil } @@ -4159,9 +3979,9 @@ func (ec *executionContext) field_Query_nodes_argsIds( return zeroVal, nil } -func (ec *executionContext) field_Query_oneToMany_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_oneToMany_args(ctx context.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_oneToMany_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -4196,13 +4016,9 @@ func (ec *executionContext) field_Query_oneToMany_args(ctx context.Context, rawA } func (ec *executionContext) field_Query_oneToMany_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -4218,13 +4034,9 @@ func (ec *executionContext) field_Query_oneToMany_argsAfter( func (ec *executionContext) field_Query_oneToMany_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4240,13 +4052,9 @@ func (ec *executionContext) field_Query_oneToMany_argsFirst( func (ec *executionContext) field_Query_oneToMany_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -4262,13 +4070,9 @@ func (ec *executionContext) field_Query_oneToMany_argsBefore( func (ec *executionContext) field_Query_oneToMany_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4284,13 +4088,9 @@ func (ec *executionContext) field_Query_oneToMany_argsLast( func (ec *executionContext) field_Query_oneToMany_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*OneToManyOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal *OneToManyOrder return zeroVal, nil } @@ -4306,13 +4106,9 @@ func (ec *executionContext) field_Query_oneToMany_argsOrderBy( func (ec *executionContext) field_Query_oneToMany_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*OneToManyWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *OneToManyWhereInput return zeroVal, nil } @@ -4326,9 +4122,9 @@ func (ec *executionContext) field_Query_oneToMany_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_todosWithJoins_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_todosWithJoins_args(ctx context.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_todosWithJoins_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -4363,13 +4159,9 @@ func (ec *executionContext) field_Query_todosWithJoins_args(ctx context.Context, } func (ec *executionContext) field_Query_todosWithJoins_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -4385,13 +4177,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsAfter( func (ec *executionContext) field_Query_todosWithJoins_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4407,13 +4195,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsFirst( func (ec *executionContext) field_Query_todosWithJoins_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -4429,13 +4213,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsBefore( func (ec *executionContext) field_Query_todosWithJoins_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4451,13 +4231,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsLast( func (ec *executionContext) field_Query_todosWithJoins_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -4473,13 +4249,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsOrderBy( func (ec *executionContext) field_Query_todosWithJoins_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -4493,9 +4265,9 @@ func (ec *executionContext) field_Query_todosWithJoins_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_todos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_todos_args(ctx context.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_todos_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -4530,13 +4302,9 @@ func (ec *executionContext) field_Query_todos_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_todos_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -4552,13 +4320,9 @@ func (ec *executionContext) field_Query_todos_argsAfter( func (ec *executionContext) field_Query_todos_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4574,13 +4338,9 @@ func (ec *executionContext) field_Query_todos_argsFirst( func (ec *executionContext) field_Query_todos_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -4596,13 +4356,9 @@ func (ec *executionContext) field_Query_todos_argsBefore( func (ec *executionContext) field_Query_todos_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4618,13 +4374,9 @@ func (ec *executionContext) field_Query_todos_argsLast( func (ec *executionContext) field_Query_todos_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -4640,13 +4392,9 @@ func (ec *executionContext) field_Query_todos_argsOrderBy( func (ec *executionContext) field_Query_todos_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -4660,9 +4408,9 @@ func (ec *executionContext) field_Query_todos_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Query_users_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_users_args(ctx context.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_users_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -4697,13 +4445,9 @@ func (ec *executionContext) field_Query_users_args(ctx context.Context, rawArgs } func (ec *executionContext) field_Query_users_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -4719,13 +4463,9 @@ func (ec *executionContext) field_Query_users_argsAfter( func (ec *executionContext) field_Query_users_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4741,13 +4481,9 @@ func (ec *executionContext) field_Query_users_argsFirst( func (ec *executionContext) field_Query_users_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -4763,13 +4499,9 @@ func (ec *executionContext) field_Query_users_argsBefore( func (ec *executionContext) field_Query_users_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4785,13 +4517,9 @@ func (ec *executionContext) field_Query_users_argsLast( func (ec *executionContext) field_Query_users_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal *ent.UserOrder return zeroVal, nil } @@ -4807,13 +4535,9 @@ func (ec *executionContext) field_Query_users_argsOrderBy( func (ec *executionContext) field_Query_users_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.UserWhereInput return zeroVal, nil } @@ -4827,9 +4551,9 @@ func (ec *executionContext) field_Query_users_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_Todo_children_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Todo_children_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error - args := map[string]interface{}{} + args := map[string]any{} arg0, err := ec.field_Todo_children_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -4864,13 +4588,9 @@ func (ec *executionContext) field_Todo_children_args(ctx context.Context, rawArg } func (ec *executionContext) field_Todo_children_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -4886,13 +4606,9 @@ func (ec *executionContext) field_Todo_children_argsAfter( func (ec *executionContext) field_Todo_children_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4908,13 +4624,9 @@ func (ec *executionContext) field_Todo_children_argsFirst( func (ec *executionContext) field_Todo_children_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -4930,13 +4642,9 @@ func (ec *executionContext) field_Todo_children_argsBefore( func (ec *executionContext) field_Todo_children_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -4952,13 +4660,9 @@ func (ec *executionContext) field_Todo_children_argsLast( func (ec *executionContext) field_Todo_children_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) ([]*ent.TodoOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal []*ent.TodoOrder return zeroVal, nil } @@ -4974,13 +4678,9 @@ func (ec *executionContext) field_Todo_children_argsOrderBy( func (ec *executionContext) field_Todo_children_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.TodoWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.TodoWhereInput return zeroVal, nil } @@ -4994,9 +4694,9 @@ func (ec *executionContext) field_Todo_children_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_User_friends_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_User_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_User_friends_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -5031,13 +4731,9 @@ func (ec *executionContext) field_User_friends_args(ctx context.Context, rawArgs } func (ec *executionContext) field_User_friends_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -5053,13 +4749,9 @@ func (ec *executionContext) field_User_friends_argsAfter( func (ec *executionContext) field_User_friends_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -5075,13 +4767,9 @@ func (ec *executionContext) field_User_friends_argsFirst( func (ec *executionContext) field_User_friends_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -5097,13 +4785,9 @@ func (ec *executionContext) field_User_friends_argsBefore( func (ec *executionContext) field_User_friends_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -5119,13 +4803,9 @@ func (ec *executionContext) field_User_friends_argsLast( func (ec *executionContext) field_User_friends_argsOrderBy( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserOrder, 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["orderBy"] - if !ok { + if _, ok := rawArgs["orderBy"]; !ok { var zeroVal *ent.UserOrder return zeroVal, nil } @@ -5141,13 +4821,9 @@ func (ec *executionContext) field_User_friends_argsOrderBy( func (ec *executionContext) field_User_friends_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.UserWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.UserWhereInput return zeroVal, nil } @@ -5161,9 +4837,9 @@ func (ec *executionContext) field_User_friends_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_User_friendships_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_User_friendships_args(ctx context.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_friendships_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -5193,13 +4869,9 @@ func (ec *executionContext) field_User_friendships_args(ctx context.Context, raw } func (ec *executionContext) field_User_friendships_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -5215,13 +4887,9 @@ func (ec *executionContext) field_User_friendships_argsAfter( func (ec *executionContext) field_User_friendships_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -5237,13 +4905,9 @@ func (ec *executionContext) field_User_friendships_argsFirst( func (ec *executionContext) field_User_friendships_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -5259,13 +4923,9 @@ func (ec *executionContext) field_User_friendships_argsBefore( func (ec *executionContext) field_User_friendships_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -5281,13 +4941,9 @@ func (ec *executionContext) field_User_friendships_argsLast( func (ec *executionContext) field_User_friendships_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.FriendshipWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.FriendshipWhereInput return zeroVal, nil } @@ -5301,9 +4957,9 @@ func (ec *executionContext) field_User_friendships_argsWhere( return zeroVal, nil } -func (ec *executionContext) field_User_groups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_User_groups_args(ctx context.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_groups_argsAfter(ctx, rawArgs) if err != nil { return nil, err @@ -5333,13 +4989,9 @@ func (ec *executionContext) field_User_groups_args(ctx context.Context, rawArgs } func (ec *executionContext) field_User_groups_argsAfter( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["after"] - if !ok { + if _, ok := rawArgs["after"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -5355,13 +5007,9 @@ func (ec *executionContext) field_User_groups_argsAfter( func (ec *executionContext) field_User_groups_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 - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { + if _, ok := rawArgs["first"]; !ok { var zeroVal *int return zeroVal, nil } @@ -5377,13 +5025,9 @@ func (ec *executionContext) field_User_groups_argsFirst( func (ec *executionContext) field_User_groups_argsBefore( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*entgql.Cursor[uuid.UUID], 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["before"] - if !ok { + if _, ok := rawArgs["before"]; !ok { var zeroVal *entgql.Cursor[uuid.UUID] return zeroVal, nil } @@ -5399,13 +5043,9 @@ func (ec *executionContext) field_User_groups_argsBefore( func (ec *executionContext) field_User_groups_argsLast( 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 - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { + if _, ok := rawArgs["last"]; !ok { var zeroVal *int return zeroVal, nil } @@ -5421,13 +5061,9 @@ func (ec *executionContext) field_User_groups_argsLast( func (ec *executionContext) field_User_groups_argsWhere( ctx context.Context, - rawArgs map[string]interface{}, + rawArgs map[string]any, ) (*ent.GroupWhereInput, 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["where"] - if !ok { + if _, ok := rawArgs["where"]; !ok { var zeroVal *ent.GroupWhereInput return zeroVal, nil } @@ -5441,9 +5077,9 @@ func (ec *executionContext) field_User_groups_argsWhere( 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 @@ -5453,13 +5089,9 @@ 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 - // even if the argument is null. - _, ok := rawArgs["includeDeprecated"] - if !ok { + if _, ok := rawArgs["includeDeprecated"]; !ok { var zeroVal bool return zeroVal, nil } @@ -5473,9 +5105,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 @@ -5485,13 +5117,9 @@ 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 - // even if the argument is null. - _, ok := rawArgs["includeDeprecated"] - if !ok { + if _, ok := rawArgs["includeDeprecated"]; !ok { var zeroVal bool return zeroVal, nil } @@ -5525,7 +5153,7 @@ func (ec *executionContext) _BillProduct_id(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.ID, nil }) @@ -5569,7 +5197,7 @@ func (ec *executionContext) _BillProduct_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 }) @@ -5613,7 +5241,7 @@ func (ec *executionContext) _BillProduct_sku(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.Sku, nil }) @@ -5657,7 +5285,7 @@ func (ec *executionContext) _BillProduct_quantity(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.Quantity, nil }) @@ -5701,7 +5329,7 @@ func (ec *executionContext) _Category_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 }) @@ -5745,7 +5373,7 @@ func (ec *executionContext) _Category_text(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.Text, nil }) @@ -5789,7 +5417,7 @@ func (ec *executionContext) _Category_status(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.Status, nil }) @@ -5833,7 +5461,7 @@ func (ec *executionContext) _Category_config(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.Config, nil }) @@ -5878,7 +5506,7 @@ func (ec *executionContext) _Category_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 ec.resolvers.Category().Types(rctx, obj) }) @@ -5923,7 +5551,7 @@ func (ec *executionContext) _Category_duration(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.Duration, nil }) @@ -5964,7 +5592,7 @@ func (ec *executionContext) _Category_count(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.Count, nil }) @@ -6005,7 +5633,7 @@ func (ec *executionContext) _Category_strings(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.Strings, nil }) @@ -6046,7 +5674,7 @@ func (ec *executionContext) _Category_todos(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.Todos(ctx, fc.Args["after"].(*entgql.Cursor[uuid.UUID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[uuid.UUID]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.TodoOrder), fc.Args["where"].(*ent.TodoWhereInput)) }) @@ -6109,7 +5737,7 @@ func (ec *executionContext) _Category_subCategories(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 obj.SubCategories(ctx, fc.Args["after"].(*entgql.Cursor[uuid.UUID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[uuid.UUID]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.CategoryOrder), fc.Args["where"].(*ent.CategoryWhereInput)) }) @@ -6172,7 +5800,7 @@ func (ec *executionContext) _Category_todosCount(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.Category().TodosCount(rctx, obj) }) @@ -6213,7 +5841,7 @@ func (ec *executionContext) _CategoryConfig_maxMembers(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.MaxMembers, nil }) @@ -6254,7 +5882,7 @@ func (ec *executionContext) _CategoryConnection_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 obj.Edges, nil }) @@ -6301,7 +5929,7 @@ func (ec *executionContext) _CategoryConnection_pageInfo(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.PageInfo, nil }) @@ -6355,7 +5983,7 @@ func (ec *executionContext) _CategoryConnection_totalCount(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.TotalCount, nil }) @@ -6399,7 +6027,7 @@ func (ec *executionContext) _CategoryEdge_node(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.Node, nil }) @@ -6464,7 +6092,7 @@ func (ec *executionContext) _CategoryEdge_cursor(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.Cursor, nil }) @@ -6508,7 +6136,7 @@ func (ec *executionContext) _CategoryTypes_public(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.Public, nil }) @@ -6549,7 +6177,7 @@ func (ec *executionContext) _Custom_info(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.Info, nil }) @@ -6593,7 +6221,7 @@ func (ec *executionContext) _Friendship_id(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.ID, nil }) @@ -6637,7 +6265,7 @@ func (ec *executionContext) _Friendship_createdAt(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.CreatedAt, nil }) @@ -6681,7 +6309,7 @@ func (ec *executionContext) _Friendship_userID(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.UserID, nil }) @@ -6725,7 +6353,7 @@ func (ec *executionContext) _Friendship_friendID(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.FriendID, nil }) @@ -6769,7 +6397,7 @@ func (ec *executionContext) _Friendship_user(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.User(ctx) }) @@ -6831,7 +6459,7 @@ func (ec *executionContext) _Friendship_friend(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.Friend(ctx) }) @@ -6893,7 +6521,7 @@ func (ec *executionContext) _FriendshipConnection_edges(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.Edges, nil }) @@ -6940,7 +6568,7 @@ func (ec *executionContext) _FriendshipConnection_pageInfo(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.PageInfo, nil }) @@ -6994,7 +6622,7 @@ func (ec *executionContext) _FriendshipConnection_totalCount(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.TotalCount, nil }) @@ -7038,7 +6666,7 @@ func (ec *executionContext) _FriendshipEdge_node(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.Node, nil }) @@ -7093,7 +6721,7 @@ func (ec *executionContext) _FriendshipEdge_cursor(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.Cursor, nil }) @@ -7137,7 +6765,7 @@ func (ec *executionContext) _Group_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 }) @@ -7181,7 +6809,7 @@ func (ec *executionContext) _Group_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 }) @@ -7225,7 +6853,7 @@ func (ec *executionContext) _Group_users(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.Users(ctx, fc.Args["after"].(*entgql.Cursor[uuid.UUID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[uuid.UUID]), fc.Args["last"].(*int), fc.Args["orderBy"].(*ent.UserOrder), fc.Args["where"].(*ent.UserWhereInput)) }) @@ -7288,7 +6916,7 @@ func (ec *executionContext) _GroupConnection_edges(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.Edges, nil }) @@ -7335,7 +6963,7 @@ func (ec *executionContext) _GroupConnection_pageInfo(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.PageInfo, nil }) @@ -7389,7 +7017,7 @@ func (ec *executionContext) _GroupConnection_totalCount(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.TotalCount, nil }) @@ -7433,14 +7061,14 @@ func (ec *executionContext) _GroupEdge_node(ctx context.Context, 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 obj.Node, nil } - directive1 := func(ctx context.Context) (interface{}, error) { - permissions, err := ec.unmarshalNString2ᚕstringᚄ(ctx, []interface{}{"ADMIN", "MODERATOR"}) + directive1 := func(ctx context.Context) (any, error) { + permissions, err := ec.unmarshalNString2ᚕstringᚄ(ctx, []any{"ADMIN", "MODERATOR"}) if err != nil { var zeroVal *ent.Group return zeroVal, err @@ -7509,7 +7137,7 @@ func (ec *executionContext) _GroupEdge_cursor(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.Cursor, nil }) @@ -7553,7 +7181,7 @@ func (ec *executionContext) _Mutation_createCategory(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().CreateCategory(rctx, fc.Args["input"].(ent.CreateCategoryInput)) }) @@ -7632,7 +7260,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"].(ent.CreateTodoInput)) }) @@ -7721,7 +7349,7 @@ func (ec *executionContext) _Mutation_updateTodo(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().UpdateTodo(rctx, fc.Args["id"].(uuid.UUID), fc.Args["input"].(ent.UpdateTodoInput)) }) @@ -7810,7 +7438,7 @@ func (ec *executionContext) _Mutation_clearTodos(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().ClearTodos(rctx) }) @@ -7854,7 +7482,7 @@ func (ec *executionContext) _Mutation_updateFriendship(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.Mutation().UpdateFriendship(rctx, fc.Args["id"].(uuid.UUID), fc.Args["input"].(UpdateFriendshipInput)) }) @@ -7923,7 +7551,7 @@ func (ec *executionContext) _OneToMany_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 }) @@ -7967,7 +7595,7 @@ func (ec *executionContext) _OneToMany_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 }) @@ -8011,7 +7639,7 @@ func (ec *executionContext) _OneToMany_field2(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.Field2, nil }) @@ -8052,7 +7680,7 @@ func (ec *executionContext) _OneToMany_parent(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.Parent, nil }) @@ -8105,7 +7733,7 @@ func (ec *executionContext) _OneToMany_children(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.Children, nil }) @@ -8158,7 +7786,7 @@ func (ec *executionContext) _OneToManyConnection_edges(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.Edges, nil }) @@ -8205,7 +7833,7 @@ func (ec *executionContext) _OneToManyConnection_pageInfo(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.PageInfo, nil }) @@ -8259,7 +7887,7 @@ func (ec *executionContext) _OneToManyConnection_totalCount(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.TotalCount, nil }) @@ -8303,7 +7931,7 @@ func (ec *executionContext) _OneToManyEdge_node(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.Node, nil }) @@ -8356,7 +7984,7 @@ func (ec *executionContext) _OneToManyEdge_cursor(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.Cursor, nil }) @@ -8400,7 +8028,7 @@ func (ec *executionContext) _Organization_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 ec.resolvers.Organization().ID(rctx, obj) }) @@ -8444,7 +8072,7 @@ func (ec *executionContext) _Organization_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 }) @@ -8488,7 +8116,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 }) @@ -8532,7 +8160,7 @@ func (ec *executionContext) _PageInfo_hasPreviousPage(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.HasPreviousPage, nil }) @@ -8576,7 +8204,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 }) @@ -8617,7 +8245,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 }) @@ -8658,7 +8286,7 @@ func (ec *executionContext) _Project_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 }) @@ -8702,7 +8330,7 @@ func (ec *executionContext) _Project_todos(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.Todos, nil }) @@ -8765,7 +8393,7 @@ func (ec *executionContext) _Query_node(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().Node(rctx, fc.Args["id"].(uuid.UUID)) }) @@ -8817,7 +8445,7 @@ func (ec *executionContext) _Query_nodes(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().Nodes(rctx, fc.Args["ids"].([]uuid.UUID)) }) @@ -8872,7 +8500,7 @@ func (ec *executionContext) _Query_billProducts(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().BillProducts(rctx) }) @@ -8926,7 +8554,7 @@ func (ec *executionContext) _Query_categories(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().Categories(rctx, fc.Args["after"].(*entgql.Cursor[uuid.UUID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[uuid.UUID]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.CategoryOrder), fc.Args["where"].(*ent.CategoryWhereInput)) }) @@ -8989,7 +8617,7 @@ func (ec *executionContext) _Query_groups(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().Groups(rctx, fc.Args["after"].(*entgql.Cursor[uuid.UUID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[uuid.UUID]), fc.Args["last"].(*int), fc.Args["where"].(*ent.GroupWhereInput)) }) @@ -9052,7 +8680,7 @@ func (ec *executionContext) _Query_oneToMany(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().OneToMany(rctx, fc.Args["after"].(*entgql.Cursor[uuid.UUID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[uuid.UUID]), fc.Args["last"].(*int), fc.Args["orderBy"].(*OneToManyOrder), fc.Args["where"].(*OneToManyWhereInput)) }) @@ -9115,7 +8743,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, fc.Args["after"].(*entgql.Cursor[uuid.UUID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[uuid.UUID]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.TodoOrder), fc.Args["where"].(*ent.TodoWhereInput)) }) @@ -9178,7 +8806,7 @@ func (ec *executionContext) _Query_users(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().Users(rctx, fc.Args["after"].(*entgql.Cursor[uuid.UUID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[uuid.UUID]), fc.Args["last"].(*int), fc.Args["orderBy"].(*ent.UserOrder), fc.Args["where"].(*ent.UserWhereInput)) }) @@ -9241,7 +8869,7 @@ func (ec *executionContext) _Query_ping(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().Ping(rctx) }) @@ -9285,7 +8913,7 @@ func (ec *executionContext) _Query_todosWithJoins(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().TodosWithJoins(rctx, fc.Args["after"].(*entgql.Cursor[uuid.UUID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[uuid.UUID]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.TodoOrder), fc.Args["where"].(*ent.TodoWhereInput)) }) @@ -9348,7 +8976,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)) }) @@ -9422,7 +9050,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() }) @@ -9477,7 +9105,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 }) @@ -9521,7 +9149,7 @@ func (ec *executionContext) _Todo_createdAt(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.CreatedAt, nil }) @@ -9565,7 +9193,7 @@ func (ec *executionContext) _Todo_status(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.Todo().Status(rctx, obj) }) @@ -9609,7 +9237,7 @@ func (ec *executionContext) _Todo_priorityOrder(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.Priority, nil }) @@ -9653,7 +9281,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 }) @@ -9697,7 +9325,7 @@ func (ec *executionContext) _Todo_categoryID(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.CategoryID, nil }) @@ -9738,7 +9366,7 @@ func (ec *executionContext) _Todo_category_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.CategoryID, nil }) @@ -9779,7 +9407,7 @@ func (ec *executionContext) _Todo_categoryX(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.CategoryID, nil }) @@ -9820,7 +9448,7 @@ func (ec *executionContext) _Todo_init(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.Init, nil }) @@ -9861,7 +9489,7 @@ func (ec *executionContext) _Todo_custom(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.Custom, nil }) @@ -9906,7 +9534,7 @@ func (ec *executionContext) _Todo_customp(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.Customp, nil }) @@ -9951,7 +9579,7 @@ func (ec *executionContext) _Todo_value(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.Value, nil }) @@ -9995,7 +9623,7 @@ func (ec *executionContext) _Todo_parent(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.Parent(ctx) }) @@ -10070,7 +9698,7 @@ func (ec *executionContext) _Todo_children(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.Children(ctx, fc.Args["after"].(*entgql.Cursor[uuid.UUID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[uuid.UUID]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*ent.TodoOrder), fc.Args["where"].(*ent.TodoWhereInput)) }) @@ -10133,7 +9761,7 @@ func (ec *executionContext) _Todo_category(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.Category(ctx) }) @@ -10198,7 +9826,7 @@ func (ec *executionContext) _Todo_extendedField(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.Todo().ExtendedField(rctx, obj) }) @@ -10239,7 +9867,7 @@ func (ec *executionContext) _TodoConnection_edges(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.Edges, nil }) @@ -10286,7 +9914,7 @@ func (ec *executionContext) _TodoConnection_pageInfo(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.PageInfo, nil }) @@ -10340,7 +9968,7 @@ func (ec *executionContext) _TodoConnection_totalCount(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.TotalCount, nil }) @@ -10384,7 +10012,7 @@ func (ec *executionContext) _TodoEdge_node(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.Node, nil }) @@ -10459,7 +10087,7 @@ func (ec *executionContext) _TodoEdge_cursor(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.Cursor, nil }) @@ -10503,7 +10131,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 }) @@ -10547,7 +10175,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 }) @@ -10591,7 +10219,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) }) @@ -10635,7 +10263,7 @@ func (ec *executionContext) _User_requiredMetadata(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.RequiredMetadata, nil }) @@ -10679,7 +10307,7 @@ func (ec *executionContext) _User_metadata(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.Metadata, nil }) @@ -10720,7 +10348,7 @@ func (ec *executionContext) _User_groups(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.Groups(ctx, fc.Args["after"].(*entgql.Cursor[uuid.UUID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[uuid.UUID]), fc.Args["last"].(*int), fc.Args["where"].(*ent.GroupWhereInput)) }) @@ -10783,7 +10411,7 @@ func (ec *executionContext) _User_friends(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().Friends(rctx, obj, fc.Args["after"].(*entgql.Cursor[uuid.UUID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[uuid.UUID]), fc.Args["last"].(*int), fc.Args["orderBy"].(*ent.UserOrder), fc.Args["where"].(*ent.UserWhereInput)) }) @@ -10846,7 +10474,7 @@ func (ec *executionContext) _User_friendships(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.User().Friendships(rctx, obj, fc.Args["after"].(*entgql.Cursor[uuid.UUID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[uuid.UUID]), fc.Args["last"].(*int), fc.Args["where"].(*ent.FriendshipWhereInput)) }) @@ -10909,7 +10537,7 @@ func (ec *executionContext) _UserConnection_edges(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.Edges, nil }) @@ -10956,7 +10584,7 @@ func (ec *executionContext) _UserConnection_pageInfo(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.PageInfo, nil }) @@ -11010,7 +10638,7 @@ func (ec *executionContext) _UserConnection_totalCount(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.TotalCount, nil }) @@ -11054,7 +10682,7 @@ func (ec *executionContext) _UserEdge_node(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.Node, nil }) @@ -11113,7 +10741,7 @@ func (ec *executionContext) _UserEdge_cursor(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.Cursor, nil }) @@ -11157,7 +10785,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 }) @@ -11201,7 +10829,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 }) @@ -11242,7 +10870,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 }) @@ -11286,7 +10914,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 }) @@ -11340,7 +10968,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 }) @@ -11384,7 +11012,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 }) @@ -11428,7 +11056,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 }) @@ -11469,7 +11097,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 }) @@ -11513,7 +11141,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 }) @@ -11554,7 +11182,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 }) @@ -11598,7 +11226,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 }) @@ -11639,7 +11267,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 }) @@ -11693,7 +11321,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 }) @@ -11759,7 +11387,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 }) @@ -11803,7 +11431,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 }) @@ -11844,7 +11472,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 }) @@ -11888,7 +11516,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 }) @@ -11929,7 +11557,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 }) @@ -11995,7 +11623,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 }) @@ -12036,7 +11664,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 }) @@ -12077,7 +11705,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 }) @@ -12143,7 +11771,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 }) @@ -12209,7 +11837,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 }) @@ -12272,7 +11900,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 }) @@ -12335,7 +11963,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 }) @@ -12391,7 +12019,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 }) @@ -12435,7 +12063,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 }) @@ -12476,7 +12104,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 }) @@ -12517,7 +12145,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 }) @@ -12583,7 +12211,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 }) @@ -12646,7 +12274,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 }) @@ -12709,7 +12337,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 }) @@ -12771,7 +12399,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 }) @@ -12822,7 +12450,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 }) @@ -12885,7 +12513,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 }) @@ -12918,10 +12546,10 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputBillProductWhereInput(ctx context.Context, obj interface{}) (ent.BillProductWhereInput, error) { +func (ec *executionContext) unmarshalInputBillProductWhereInput(ctx context.Context, obj any) (ent.BillProductWhereInput, error) { var it ent.BillProductWhereInput - 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 } @@ -13253,10 +12881,10 @@ func (ec *executionContext) unmarshalInputBillProductWhereInput(ctx context.Cont return it, nil } -func (ec *executionContext) unmarshalInputCategoryConfigInput(ctx context.Context, obj interface{}) (schematype.CategoryConfig, error) { +func (ec *executionContext) unmarshalInputCategoryConfigInput(ctx context.Context, obj any) (schematype.CategoryConfig, error) { var it schematype.CategoryConfig - 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 } @@ -13280,10 +12908,10 @@ func (ec *executionContext) unmarshalInputCategoryConfigInput(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputCategoryOrder(ctx context.Context, obj interface{}) (ent.CategoryOrder, error) { +func (ec *executionContext) unmarshalInputCategoryOrder(ctx context.Context, obj any) (ent.CategoryOrder, error) { var it ent.CategoryOrder - 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 } @@ -13318,10 +12946,10 @@ func (ec *executionContext) unmarshalInputCategoryOrder(ctx context.Context, obj return it, nil } -func (ec *executionContext) unmarshalInputCategoryTypesInput(ctx context.Context, obj interface{}) (CategoryTypesInput, error) { +func (ec *executionContext) unmarshalInputCategoryTypesInput(ctx context.Context, obj any) (CategoryTypesInput, error) { var it CategoryTypesInput - 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 } @@ -13345,10 +12973,10 @@ func (ec *executionContext) unmarshalInputCategoryTypesInput(ctx context.Context return it, nil } -func (ec *executionContext) unmarshalInputCategoryWhereInput(ctx context.Context, obj interface{}) (ent.CategoryWhereInput, error) { +func (ec *executionContext) unmarshalInputCategoryWhereInput(ctx context.Context, obj any) (ent.CategoryWhereInput, error) { var it ent.CategoryWhereInput - 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 } @@ -13799,10 +13427,10 @@ func (ec *executionContext) unmarshalInputCategoryWhereInput(ctx context.Context return it, nil } -func (ec *executionContext) unmarshalInputCreateCategoryInput(ctx context.Context, obj interface{}) (ent.CreateCategoryInput, error) { +func (ec *executionContext) unmarshalInputCreateCategoryInput(ctx context.Context, obj any) (ent.CreateCategoryInput, error) { var it ent.CreateCategoryInput - 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 } @@ -13893,10 +13521,10 @@ func (ec *executionContext) unmarshalInputCreateCategoryInput(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputCreateTodoInput(ctx context.Context, obj interface{}) (ent.CreateTodoInput, error) { +func (ec *executionContext) unmarshalInputCreateTodoInput(ctx context.Context, obj any) (ent.CreateTodoInput, error) { var it ent.CreateTodoInput - 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 } @@ -13978,10 +13606,10 @@ func (ec *executionContext) unmarshalInputCreateTodoInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, obj interface{}) (ent.CreateUserInput, error) { +func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, obj any) (ent.CreateUserInput, error) { var it ent.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 } @@ -14049,10 +13677,10 @@ func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputFriendshipWhereInput(ctx context.Context, obj interface{}) (ent.FriendshipWhereInput, error) { +func (ec *executionContext) unmarshalInputFriendshipWhereInput(ctx context.Context, obj any) (ent.FriendshipWhereInput, error) { var it ent.FriendshipWhereInput - 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 } @@ -14202,10 +13830,10 @@ func (ec *executionContext) unmarshalInputFriendshipWhereInput(ctx context.Conte return it, nil } -func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, obj interface{}) (ent.GroupWhereInput, error) { +func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, obj any) (ent.GroupWhereInput, error) { var it ent.GroupWhereInput - 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 } @@ -14404,10 +14032,10 @@ func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputOneToManyOrder(ctx context.Context, obj interface{}) (OneToManyOrder, error) { +func (ec *executionContext) unmarshalInputOneToManyOrder(ctx context.Context, obj any) (OneToManyOrder, error) { var it OneToManyOrder - 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 } @@ -14442,10 +14070,10 @@ func (ec *executionContext) unmarshalInputOneToManyOrder(ctx context.Context, ob return it, nil } -func (ec *executionContext) unmarshalInputOneToManyWhereInput(ctx context.Context, obj interface{}) (OneToManyWhereInput, error) { +func (ec *executionContext) unmarshalInputOneToManyWhereInput(ctx context.Context, obj any) (OneToManyWhereInput, error) { var it OneToManyWhereInput - 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 } @@ -14763,10 +14391,10 @@ func (ec *executionContext) unmarshalInputOneToManyWhereInput(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Context, obj interface{}) (OrganizationWhereInput, error) { +func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Context, obj any) (OrganizationWhereInput, error) { var it OrganizationWhereInput - 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 } @@ -14951,10 +14579,10 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, nil } -func (ec *executionContext) unmarshalInputProjectWhereInput(ctx context.Context, obj interface{}) (ProjectWhereInput, error) { +func (ec *executionContext) unmarshalInputProjectWhereInput(ctx context.Context, obj any) (ProjectWhereInput, error) { var it ProjectWhereInput - 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 } @@ -15062,10 +14690,10 @@ func (ec *executionContext) unmarshalInputProjectWhereInput(ctx context.Context, return it, nil } -func (ec *executionContext) unmarshalInputTodoOrder(ctx context.Context, obj interface{}) (ent.TodoOrder, error) { +func (ec *executionContext) unmarshalInputTodoOrder(ctx context.Context, obj any) (ent.TodoOrder, error) { var it ent.TodoOrder - 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 } @@ -15100,10 +14728,10 @@ func (ec *executionContext) unmarshalInputTodoOrder(ctx context.Context, obj int return it, nil } -func (ec *executionContext) unmarshalInputTodoWhereInput(ctx context.Context, obj interface{}) (ent.TodoWhereInput, error) { +func (ec *executionContext) unmarshalInputTodoWhereInput(ctx context.Context, obj any) (ent.TodoWhereInput, error) { var it ent.TodoWhereInput - 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 } @@ -15585,10 +15213,10 @@ func (ec *executionContext) unmarshalInputTodoWhereInput(ctx context.Context, ob return it, nil } -func (ec *executionContext) unmarshalInputUpdateCategoryInput(ctx context.Context, obj interface{}) (ent.UpdateCategoryInput, error) { +func (ec *executionContext) unmarshalInputUpdateCategoryInput(ctx context.Context, obj any) (ent.UpdateCategoryInput, error) { var it ent.UpdateCategoryInput - 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 } @@ -15740,10 +15368,10 @@ func (ec *executionContext) unmarshalInputUpdateCategoryInput(ctx context.Contex return it, nil } -func (ec *executionContext) unmarshalInputUpdateFriendshipInput(ctx context.Context, obj interface{}) (UpdateFriendshipInput, error) { +func (ec *executionContext) unmarshalInputUpdateFriendshipInput(ctx context.Context, obj any) (UpdateFriendshipInput, error) { var it UpdateFriendshipInput - 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 } @@ -15781,10 +15409,10 @@ func (ec *executionContext) unmarshalInputUpdateFriendshipInput(ctx context.Cont return it, nil } -func (ec *executionContext) unmarshalInputUpdateTodoInput(ctx context.Context, obj interface{}) (ent.UpdateTodoInput, error) { +func (ec *executionContext) unmarshalInputUpdateTodoInput(ctx context.Context, obj any) (ent.UpdateTodoInput, error) { var it ent.UpdateTodoInput - 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 } @@ -15894,10 +15522,10 @@ func (ec *executionContext) unmarshalInputUpdateTodoInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, obj interface{}) (ent.UpdateUserInput, error) { +func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, obj any) (ent.UpdateUserInput, error) { var it ent.UpdateUserInput - 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 } @@ -16007,10 +15635,10 @@ func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputUserOrder(ctx context.Context, obj interface{}) (ent.UserOrder, error) { +func (ec *executionContext) unmarshalInputUserOrder(ctx context.Context, obj any) (ent.UserOrder, error) { var it ent.UserOrder - 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 } @@ -16045,10 +15673,10 @@ func (ec *executionContext) unmarshalInputUserOrder(ctx context.Context, obj int return it, nil } -func (ec *executionContext) unmarshalInputUserWhereInput(ctx context.Context, obj interface{}) (ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalInputUserWhereInput(ctx context.Context, obj any) (ent.UserWhereInput, error) { var it ent.UserWhereInput - 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 } @@ -16356,9 +15984,6 @@ func (ec *executionContext) _NamedNode(ctx context.Context, sel ast.SelectionSet case nil: return graphql.Null case *ent.Group: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"NamedNode", "Group"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } @@ -16373,83 +15998,50 @@ func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj case nil: return graphql.Null case *ent.Group: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Group"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Group(ctx, sel, obj) case *ent.BillProduct: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "BillProduct"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._BillProduct(ctx, sel, obj) case *ent.Category: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Category"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Category(ctx, sel, obj) case *ent.Friendship: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Friendship"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Friendship(ctx, sel, obj) case OneToMany: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "OneToMany"})) == 0 { - return graphql.Empty{} - } return ec._OneToMany(ctx, sel, &obj) case *OneToMany: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "OneToMany"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._OneToMany(ctx, sel, obj) case *ent1.Workspace: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Workspace"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Organization(ctx, sel, obj) case Project: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Project"})) == 0 { - return graphql.Empty{} - } return ec._Project(ctx, sel, &obj) case *Project: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Project"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Project(ctx, sel, obj) case *ent.Todo: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "Todo"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } return ec._Todo(ctx, sel, obj) case *ent.User: - if len(graphql.CollectFields(ec.OperationContext, sel, []string{"Noder", "User"})) == 0 { - return graphql.Empty{} - } if obj == nil { return graphql.Null } @@ -16475,101 +16067,21 @@ func (ec *executionContext) _BillProduct(ctx context.Context, sel ast.SelectionS case "__typename": out.Values[i] = graphql.MarshalString("BillProduct") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._BillProduct_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._BillProduct_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._BillProduct_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._BillProduct_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "sku": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._BillProduct_sku(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._BillProduct_sku(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "quantity": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._BillProduct_quantity(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._BillProduct_quantity(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -16609,126 +16121,34 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("Category") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "text": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_text(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_text(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "status": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_status(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_status(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "config": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_config(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_config(ctx, field, obj) case "types": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_types(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Category_types(ctx, field, obj) + return res } - out.Values[i] = ec._Category_types(ctx, field, obj) - case "duration": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -16741,60 +16161,36 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_duration(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "duration": out.Values[i] = ec._Category_duration(ctx, field, obj) case "count": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_count(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Category_count(ctx, field, obj) case "strings": + out.Values[i] = ec._Category_strings(ctx, field, obj) + case "todos": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Category_todos(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_strings(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + return res } - out.Values[i] = ec._Category_strings(ctx, field, obj) - case "todos": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -16807,20 +16203,31 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_todos(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Category_todos(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "subCategories": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Category_subCategories(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -16832,20 +16239,28 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_subCategories(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Category_subCategories(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "todosCount": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Category_todosCount(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -16857,14 +16272,15 @@ func (ec *executionContext) _Category(ctx context.Context, sel ast.SelectionSet, deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Category_todosCount(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Category_todosCount(ctx, field, obj) + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -16900,35 +16316,15 @@ func (ec *executionContext) _CategoryConfig(ctx context.Context, sel ast.Selecti case "__typename": out.Values[i] = graphql.MarshalString("CategoryConfig") case "maxMembers": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryConfig_maxMembers(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._CategoryConfig_maxMembers(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + out.Values[i] = ec._CategoryConfig_maxMembers(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } atomic.AddInt32(&ec.deferred, int32(len(deferred))) @@ -16956,73 +16352,13 @@ func (ec *executionContext) _CategoryConnection(ctx context.Context, sel ast.Sel case "__typename": out.Values[i] = graphql.MarshalString("CategoryConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17062,48 +16398,8 @@ func (ec *executionContext) _CategoryEdge(ctx context.Context, sel ast.Selection case "__typename": out.Values[i] = graphql.MarshalString("CategoryEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17143,26 +16439,6 @@ func (ec *executionContext) _CategoryTypes(ctx context.Context, sel ast.Selectio case "__typename": out.Values[i] = graphql.MarshalString("CategoryTypes") case "public": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._CategoryTypes_public(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._CategoryTypes_public(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -17199,26 +16475,6 @@ func (ec *executionContext) _Custom(ctx context.Context, sel ast.SelectionSet, o case "__typename": out.Values[i] = graphql.MarshalString("Custom") case "info": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Custom_info(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Custom_info(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17258,108 +16514,41 @@ func (ec *executionContext) _Friendship(ctx context.Context, sel ast.SelectionSe case "__typename": out.Values[i] = graphql.MarshalString("Friendship") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Friendship_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_createdAt(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Friendship_createdAt(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "userID": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_userID(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Friendship_userID(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "friendID": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_friendID(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Friendship_friendID(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "user": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Friendship_user(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -17371,20 +16560,31 @@ func (ec *executionContext) _Friendship(ctx context.Context, sel ast.SelectionSe deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_user(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Friendship_user(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "friend": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Friendship_friend(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -17396,17 +16596,15 @@ func (ec *executionContext) _Friendship(ctx context.Context, sel ast.SelectionSe deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Friendship_friend(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Friendship_friend(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -17442,73 +16640,13 @@ func (ec *executionContext) _FriendshipConnection(ctx context.Context, sel ast.S case "__typename": out.Values[i] = graphql.MarshalString("FriendshipConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17548,48 +16686,8 @@ func (ec *executionContext) _FriendshipEdge(ctx context.Context, sel ast.Selecti case "__typename": out.Values[i] = graphql.MarshalString("FriendshipEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._FriendshipEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._FriendshipEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17629,58 +16727,31 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob case "__typename": out.Values[i] = graphql.MarshalString("Group") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Group_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Group_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Group_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Group_name(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "users": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Group_users(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -17692,17 +16763,15 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Group_users(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Group_users(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -17738,73 +16807,13 @@ func (ec *executionContext) _GroupConnection(ctx context.Context, sel ast.Select case "__typename": out.Values[i] = graphql.MarshalString("GroupConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17844,48 +16853,8 @@ func (ec *executionContext) _GroupEdge(ctx context.Context, sel ast.SelectionSet case "__typename": out.Values[i] = graphql.MarshalString("GroupEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._GroupEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._GroupEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -17933,8 +16902,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) case "__typename": out.Values[i] = graphql.MarshalString("Mutation") case "createCategory": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createCategory(ctx, field) }) @@ -17942,8 +16909,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "createTodo": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createTodo(ctx, field) }) @@ -17951,8 +16916,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateTodo": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateTodo(ctx, field) }) @@ -17960,8 +16923,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "clearTodos": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_clearTodos(ctx, field) }) @@ -17969,8 +16930,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) out.Invalids++ } case "updateFriendship": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_updateFriendship(ctx, field) }) @@ -18012,120 +16971,20 @@ func (ec *executionContext) _OneToMany(ctx context.Context, sel ast.SelectionSet case "__typename": out.Values[i] = graphql.MarshalString("OneToMany") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToMany_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToMany_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "field2": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_field2(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToMany_field2(ctx, field, obj) case "parent": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_parent(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToMany_parent(ctx, field, obj) case "children": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToMany_children(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToMany_children(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -18162,73 +17021,13 @@ func (ec *executionContext) _OneToManyConnection(ctx context.Context, sel ast.Se case "__typename": out.Values[i] = graphql.MarshalString("OneToManyConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -18268,48 +17067,8 @@ func (ec *executionContext) _OneToManyEdge(ctx context.Context, sel ast.Selectio case "__typename": out.Values[i] = graphql.MarshalString("OneToManyEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._OneToManyEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._OneToManyEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -18351,30 +17110,18 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection case "id": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_id(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Organization_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + return res } - out.Values[i] = ec._Organization_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "name": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -18387,16 +17134,19 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Organization_name(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "name": out.Values[i] = ec._Organization_name(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } default: panic("unknown field " + strconv.Quote(field.Name)) @@ -18433,98 +17183,18 @@ func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("PageInfo") case "hasNextPage": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_hasNextPage(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._PageInfo_hasNextPage(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "hasPreviousPage": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_hasPreviousPage(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._PageInfo_hasPreviousPage(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "startCursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_startCursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._PageInfo_startCursor(ctx, field, obj) case "endCursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._PageInfo_endCursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._PageInfo_endCursor(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -18561,51 +17231,11 @@ func (ec *executionContext) _Project(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("Project") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Project_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Project_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "todos": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Project_todos(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Project_todos(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -18655,99 +17285,225 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr case "node": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_node(ctx, field) - }) + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_node(ctx, field) + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "nodes": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_nodes(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_nodes(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "billProducts": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_billProducts(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_billProducts(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "categories": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_categories(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_categories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "groups": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_groups(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_groups(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "oneToMany": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_oneToMany(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_oneToMany(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "todos": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_todos(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_todos(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "users": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_users(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_users(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "ping": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_ping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_ping(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "todosWithJoins": field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query_todosWithJoins(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_todosWithJoins(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "__type": - field := field + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "__type": out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Query___type(ctx, field) }) case "__schema": - field := field - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Query___schema(ctx, field) }) @@ -18786,82 +17542,30 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj case "__typename": out.Values[i] = graphql.MarshalString("Todo") case "id": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_id(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_createdAt(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_createdAt(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "status": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_status(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_status(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + return res } - case "priorityOrder": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -18874,45 +17578,55 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_priorityOrder(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "priorityOrder": out.Values[i] = ec._Todo_priorityOrder(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "text": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_text(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._Todo_text(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } case "categoryID": + out.Values[i] = ec._Todo_categoryID(ctx, field, obj) + case "category_id": + out.Values[i] = ec._Todo_category_id(ctx, field, obj) + case "categoryX": + out.Values[i] = ec._Todo_categoryX(ctx, field, obj) + case "init": + out.Values[i] = ec._Todo_init(ctx, field, obj) + case "custom": + out.Values[i] = ec._Todo_custom(ctx, field, obj) + case "customp": + out.Values[i] = ec._Todo_customp(ctx, field, obj) + case "value": + out.Values[i] = ec._Todo_value(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "parent": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_parent(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -18924,17 +17638,31 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_categoryID(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_categoryID(ctx, field, obj) - case "category_id": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "children": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_children(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -18946,17 +17674,28 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_category_id(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_category_id(ctx, field, obj) - case "categoryX": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "category": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_category(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -18968,17 +17707,28 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_categoryX(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_categoryX(ctx, field, obj) - case "init": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "extendedField": field := field + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Todo_extendedField(ctx, field, obj) + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -18990,174 +17740,15 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_init(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._Todo_init(ctx, field, obj) - case "custom": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_custom(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_custom(ctx, field, obj) - case "customp": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_customp(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_customp(ctx, field, obj) - case "value": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_value(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_value(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "parent": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_parent(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_parent(ctx, field, obj) - case "children": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_children(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_children(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "category": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_category(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_category(ctx, field, obj) - case "extendedField": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._Todo_extendedField(ctx, field, obj) - }) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._Todo_extendedField(ctx, field, obj) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -19193,73 +17784,13 @@ func (ec *executionContext) _TodoConnection(ctx context.Context, sel ast.Selecti case "__typename": out.Values[i] = graphql.MarshalString("TodoConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -19299,48 +17830,8 @@ func (ec *executionContext) _TodoEdge(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("TodoEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._TodoEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._TodoEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -19380,8 +17871,31 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj case "__typename": out.Values[i] = graphql.MarshalString("User") case "id": + out.Values[i] = ec._User_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "name": + out.Values[i] = ec._User_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "username": field := field + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._User_username(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] di := 0 @@ -19393,69 +17907,37 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_id(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._User_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_name(ctx, field, obj) - }) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._User_name(ctx, field, obj) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "requiredMetadata": + out.Values[i] = ec._User_requiredMetadata(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } - case "username": + case "metadata": + out.Values[i] = ec._User_metadata(ctx, field, obj) + case "groups": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._User_groups(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_username(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - out.Values[i] = ec._User_username(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + return res } - case "requiredMetadata": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -19468,41 +17950,30 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_requiredMetadata(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._User_requiredMetadata(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "metadata": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "friends": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._User_friends(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_metadata(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + return res } - out.Values[i] = ec._User_metadata(ctx, field, obj) - case "groups": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -19515,44 +17986,30 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_groups(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._User_groups(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "friends": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "friendships": field := field - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._User_friendships(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_friends(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + return res } - out.Values[i] = ec._User_friends(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "friendships": - field := field if field.Deferrable != nil { dfs, ok := deferred[field.Deferrable.Label] @@ -19565,17 +18022,15 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj deferred[field.Deferrable.Label] = dfs } dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._User_friendships(ctx, field, obj) + return innerFunc(ctx, dfs) }) // don't run the out.Concurrently() call below out.Values[i] = graphql.Null continue } - out.Values[i] = ec._User_friendships(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -19611,73 +18066,13 @@ func (ec *executionContext) _UserConnection(ctx context.Context, sel ast.Selecti case "__typename": out.Values[i] = graphql.MarshalString("UserConnection") case "edges": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserConnection_edges(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._UserConnection_edges(ctx, field, obj) case "pageInfo": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserConnection_pageInfo(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._UserConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserConnection_totalCount(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._UserConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -19717,48 +18112,8 @@ func (ec *executionContext) _UserEdge(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("UserEdge") case "node": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserEdge_node(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._UserEdge_node(ctx, field, obj) case "cursor": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec._UserEdge_cursor(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec._UserEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -19798,123 +18153,23 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS case "__typename": out.Values[i] = graphql.MarshalString("__Directive") case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_description(ctx, field, obj) case "locations": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_locations(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_locations(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "args": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_args(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_args(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "isRepeatable": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Directive_isRepeatable(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -19954,98 +18209,18 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS case "__typename": out.Values[i] = graphql.MarshalString("__EnumValue") case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___EnumValue_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___EnumValue_description(ctx, field, obj) case "isDeprecated": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_isDeprecated(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "deprecationReason": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___EnumValue_deprecationReason(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -20082,148 +18257,28 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("__Field") case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_description(ctx, field, obj) case "args": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_args(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_args(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "type": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_type(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_type(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "isDeprecated": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_isDeprecated(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "deprecationReason": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Field_deprecationReason(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -20260,98 +18315,18 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection case "__typename": out.Values[i] = graphql.MarshalString("__InputValue") case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___InputValue_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___InputValue_description(ctx, field, obj) case "type": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_type(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___InputValue_type(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "defaultValue": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___InputValue_defaultValue(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -20388,142 +18363,22 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, case "__typename": out.Values[i] = graphql.MarshalString("__Schema") case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_description(ctx, field, obj) case "types": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_types(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_types(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "queryType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_queryType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_queryType(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "mutationType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_mutationType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) case "subscriptionType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_subscriptionType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) case "directives": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Schema_directives(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Schema_directives(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ @@ -20563,227 +18418,27 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o case "__typename": out.Values[i] = graphql.MarshalString("__Type") case "kind": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_kind(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_kind(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "name": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_name(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_name(ctx, field, obj) case "description": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_description(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_description(ctx, field, obj) case "fields": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_fields(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_fields(ctx, field, obj) case "interfaces": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_interfaces(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_interfaces(ctx, field, obj) case "possibleTypes": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_possibleTypes(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) case "enumValues": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_enumValues(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_enumValues(ctx, field, obj) case "inputFields": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_inputFields(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_inputFields(ctx, field, obj) case "ofType": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_ofType(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_ofType(ctx, field, obj) case "specifiedByURL": - field := field - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return ec.___Type_specifiedByURL(ctx, field, obj) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) @@ -20815,7 +18470,7 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o func (ec *executionContext) marshalNBillProduct2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐBillProductᚄ(ctx context.Context, sel ast.SelectionSet, v []*ent.BillProduct) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -20866,12 +18521,12 @@ func (ec *executionContext) marshalNBillProduct2ᚖentgoᚗioᚋcontribᚋentgql return ec._BillProduct(ctx, sel, v) } -func (ec *executionContext) unmarshalNBillProductWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐBillProductWhereInput(ctx context.Context, v interface{}) (*ent.BillProductWhereInput, error) { +func (ec *executionContext) unmarshalNBillProductWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐBillProductWhereInput(ctx context.Context, v any) (*ent.BillProductWhereInput, error) { res, err := ec.unmarshalInputBillProductWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -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) } @@ -20900,7 +18555,7 @@ func (ec *executionContext) marshalNCategory2ᚖentgoᚗioᚋcontribᚋentgqlᚋ return ec._Category(ctx, sel, v) } -func (ec *executionContext) unmarshalNCategoryConfigInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfig(ctx context.Context, v interface{}) (*schematype.CategoryConfig, error) { +func (ec *executionContext) unmarshalNCategoryConfigInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfig(ctx context.Context, v any) (*schematype.CategoryConfig, error) { res, err := ec.unmarshalInputCategoryConfigInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -20919,12 +18574,12 @@ func (ec *executionContext) marshalNCategoryConnection2ᚖentgoᚗioᚋcontrib return ec._CategoryConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNCategoryOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCategoryOrder(ctx context.Context, v interface{}) (*ent.CategoryOrder, error) { +func (ec *executionContext) unmarshalNCategoryOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCategoryOrder(ctx context.Context, v any) (*ent.CategoryOrder, error) { res, err := ec.unmarshalInputCategoryOrder(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCategoryOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCategoryOrderField(ctx context.Context, v interface{}) (*ent.CategoryOrderField, error) { +func (ec *executionContext) unmarshalNCategoryOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCategoryOrderField(ctx context.Context, v any) (*ent.CategoryOrderField, error) { var res = new(ent.CategoryOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -20940,7 +18595,7 @@ func (ec *executionContext) marshalNCategoryOrderField2ᚖentgoᚗioᚋcontrib return v } -func (ec *executionContext) unmarshalNCategoryStatus2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚋcategoryᚐStatus(ctx context.Context, v interface{}) (category.Status, error) { +func (ec *executionContext) unmarshalNCategoryStatus2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚋcategoryᚐStatus(ctx context.Context, v any) (category.Status, error) { var res category.Status err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -20950,27 +18605,27 @@ func (ec *executionContext) marshalNCategoryStatus2entgoᚗioᚋcontribᚋentgql return v } -func (ec *executionContext) unmarshalNCategoryWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCategoryWhereInput(ctx context.Context, v interface{}) (*ent.CategoryWhereInput, error) { +func (ec *executionContext) unmarshalNCategoryWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCategoryWhereInput(ctx context.Context, v any) (*ent.CategoryWhereInput, error) { res, err := ec.unmarshalInputCategoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateCategoryInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCreateCategoryInput(ctx context.Context, v interface{}) (ent.CreateCategoryInput, error) { +func (ec *executionContext) unmarshalNCreateCategoryInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCreateCategoryInput(ctx context.Context, v any) (ent.CreateCategoryInput, error) { res, err := ec.unmarshalInputCreateCategoryInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateTodoInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCreateTodoInput(ctx context.Context, v interface{}) (ent.CreateTodoInput, error) { +func (ec *executionContext) unmarshalNCreateTodoInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCreateTodoInput(ctx context.Context, v any) (ent.CreateTodoInput, error) { res, err := ec.unmarshalInputCreateTodoInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateTodoInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCreateTodoInput(ctx context.Context, v interface{}) (*ent.CreateTodoInput, error) { +func (ec *executionContext) unmarshalNCreateTodoInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCreateTodoInput(ctx context.Context, v any) (*ent.CreateTodoInput, error) { res, err := ec.unmarshalInputCreateTodoInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v interface{}) (entgql.Cursor[uuid.UUID], error) { +func (ec *executionContext) unmarshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v any) (entgql.Cursor[uuid.UUID], error) { var res entgql.Cursor[uuid.UUID] err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -20984,7 +18639,7 @@ func (ec *executionContext) marshalNCustom2entgoᚗioᚋcontribᚋentgqlᚋinter return ec._Custom(ctx, sel, &v) } -func (ec *executionContext) unmarshalNDuration2timeᚐDuration(ctx context.Context, v interface{}) (time.Duration, error) { +func (ec *executionContext) unmarshalNDuration2timeᚐDuration(ctx context.Context, v any) (time.Duration, error) { res, err := durationgql.UnmarshalDuration(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -21027,7 +18682,7 @@ func (ec *executionContext) marshalNFriendshipConnection2ᚖentgoᚗioᚋcontrib return ec._FriendshipConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNFriendshipWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐFriendshipWhereInput(ctx context.Context, v interface{}) (*ent.FriendshipWhereInput, error) { +func (ec *executionContext) unmarshalNFriendshipWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐFriendshipWhereInput(ctx context.Context, v any) (*ent.FriendshipWhereInput, error) { res, err := ec.unmarshalInputFriendshipWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -21046,12 +18701,12 @@ func (ec *executionContext) marshalNGroupConnection2ᚖentgoᚗioᚋcontribᚋen return ec._GroupConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNGroupWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐGroupWhereInput(ctx context.Context, v interface{}) (*ent.GroupWhereInput, error) { +func (ec *executionContext) unmarshalNGroupWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐGroupWhereInput(ctx context.Context, v any) (*ent.GroupWhereInput, error) { res, err := ec.unmarshalInputGroupWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, v interface{}) (uuid.UUID, error) { +func (ec *executionContext) unmarshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, v any) (uuid.UUID, error) { res, err := uuidgql.UnmarshalUUID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -21066,8 +18721,8 @@ func (ec *executionContext) marshalNID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx c return res } -func (ec *executionContext) unmarshalNID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx context.Context, v interface{}) ([]uuid.UUID, error) { - var vSlice []interface{} +func (ec *executionContext) unmarshalNID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx context.Context, v any) ([]uuid.UUID, error) { + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21098,7 +18753,7 @@ func (ec *executionContext) marshalNID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ return ret } -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) } @@ -21113,7 +18768,7 @@ func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.Selecti 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]interface{}, error) { res, err := graphql.UnmarshalMap(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -21137,7 +18792,7 @@ func (ec *executionContext) marshalNMap2map(ctx context.Context, sel ast.Selecti func (ec *executionContext) marshalNNode2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐNoder(ctx context.Context, sel ast.SelectionSet, v []ent.Noder) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21196,7 +18851,7 @@ func (ec *executionContext) marshalNOneToManyConnection2ᚖentgoᚗioᚋcontrib return ec._OneToManyConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNOneToManyOrderField2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐOneToManyOrderField(ctx context.Context, v interface{}) (OneToManyOrderField, error) { +func (ec *executionContext) unmarshalNOneToManyOrderField2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐOneToManyOrderField(ctx context.Context, v any) (OneToManyOrderField, error) { var res OneToManyOrderField err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -21206,12 +18861,12 @@ func (ec *executionContext) marshalNOneToManyOrderField2entgoᚗioᚋcontribᚋe return v } -func (ec *executionContext) unmarshalNOneToManyWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐOneToManyWhereInput(ctx context.Context, v interface{}) (*OneToManyWhereInput, error) { +func (ec *executionContext) unmarshalNOneToManyWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐOneToManyWhereInput(ctx context.Context, v any) (*OneToManyWhereInput, error) { res, err := ec.unmarshalInputOneToManyWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx context.Context, v interface{}) (entgql.OrderDirection, error) { +func (ec *executionContext) unmarshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx context.Context, v any) (entgql.OrderDirection, error) { var res entgql.OrderDirection err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -21221,7 +18876,7 @@ func (ec *executionContext) marshalNOrderDirection2entgoᚗioᚋcontribᚋentgql return v } -func (ec *executionContext) unmarshalNOrganizationWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐOrganizationWhereInput(ctx context.Context, v interface{}) (*OrganizationWhereInput, error) { +func (ec *executionContext) unmarshalNOrganizationWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐOrganizationWhereInput(ctx context.Context, v any) (*OrganizationWhereInput, error) { res, err := ec.unmarshalInputOrganizationWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -21240,12 +18895,12 @@ func (ec *executionContext) marshalNPageInfo2ᚖentgoᚗioᚋcontribᚋentgqlᚐ return ec._PageInfo(ctx, sel, v) } -func (ec *executionContext) unmarshalNProjectWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐProjectWhereInput(ctx context.Context, v interface{}) (*ProjectWhereInput, error) { +func (ec *executionContext) unmarshalNProjectWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐProjectWhereInput(ctx context.Context, v any) (*ProjectWhereInput, error) { res, err := ec.unmarshalInputProjectWhereInput(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) } @@ -21260,8 +18915,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) } @@ -21292,7 +18947,7 @@ func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel return ret } -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) } @@ -21335,12 +18990,12 @@ func (ec *executionContext) marshalNTodoConnection2ᚖentgoᚗioᚋcontribᚋent return ec._TodoConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNTodoOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐTodoOrder(ctx context.Context, v interface{}) (*ent.TodoOrder, error) { +func (ec *executionContext) unmarshalNTodoOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐTodoOrder(ctx context.Context, v any) (*ent.TodoOrder, error) { res, err := ec.unmarshalInputTodoOrder(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNTodoOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐTodoOrderField(ctx context.Context, v interface{}) (*ent.TodoOrderField, error) { +func (ec *executionContext) unmarshalNTodoOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐTodoOrderField(ctx context.Context, v any) (*ent.TodoOrderField, error) { var res = new(ent.TodoOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -21356,7 +19011,7 @@ func (ec *executionContext) marshalNTodoOrderField2ᚖentgoᚗioᚋcontribᚋent return v } -func (ec *executionContext) unmarshalNTodoStatus2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatus(ctx context.Context, v interface{}) (todo.Status, error) { +func (ec *executionContext) unmarshalNTodoStatus2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatus(ctx context.Context, v any) (todo.Status, error) { var res todo.Status err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -21366,12 +19021,12 @@ func (ec *executionContext) marshalNTodoStatus2entgoᚗioᚋcontribᚋentgqlᚋi return v } -func (ec *executionContext) unmarshalNTodoWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐTodoWhereInput(ctx context.Context, v interface{}) (*ent.TodoWhereInput, error) { +func (ec *executionContext) unmarshalNTodoWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐTodoWhereInput(ctx context.Context, v any) (*ent.TodoWhereInput, error) { res, err := ec.unmarshalInputTodoWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -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) } @@ -21386,7 +19041,7 @@ func (ec *executionContext) marshalNUUID2string(ctx context.Context, sel ast.Sel return res } -func (ec *executionContext) unmarshalNUint642uint64(ctx context.Context, v interface{}) (uint64, error) { +func (ec *executionContext) unmarshalNUint642uint64(ctx context.Context, v any) (uint64, error) { res, err := graphql.UnmarshalUint64(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -21401,12 +19056,12 @@ func (ec *executionContext) marshalNUint642uint64(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalNUpdateFriendshipInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐUpdateFriendshipInput(ctx context.Context, v interface{}) (UpdateFriendshipInput, error) { +func (ec *executionContext) unmarshalNUpdateFriendshipInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐUpdateFriendshipInput(ctx context.Context, v any) (UpdateFriendshipInput, error) { res, err := ec.unmarshalInputUpdateFriendshipInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNUpdateTodoInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐUpdateTodoInput(ctx context.Context, v interface{}) (ent.UpdateTodoInput, error) { +func (ec *executionContext) unmarshalNUpdateTodoInput2entgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐUpdateTodoInput(ctx context.Context, v any) (ent.UpdateTodoInput, error) { res, err := ec.unmarshalInputUpdateTodoInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } @@ -21435,7 +19090,7 @@ func (ec *executionContext) marshalNUserConnection2ᚖentgoᚗioᚋcontribᚋent return ec._UserConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNUserOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐUserOrderField(ctx context.Context, v interface{}) (*ent.UserOrderField, error) { +func (ec *executionContext) unmarshalNUserOrderField2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐUserOrderField(ctx context.Context, v any) (*ent.UserOrderField, error) { var res = new(ent.UserOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) @@ -21451,7 +19106,7 @@ func (ec *executionContext) marshalNUserOrderField2ᚖentgoᚗioᚋcontribᚋent return v } -func (ec *executionContext) unmarshalNUserWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐUserWhereInput(ctx context.Context, v interface{}) (*ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalNUserWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐUserWhereInput(ctx context.Context, v any) (*ent.UserWhereInput, error) { res, err := ec.unmarshalInputUserWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } @@ -21463,7 +19118,7 @@ func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlge func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21504,7 +19159,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) } @@ -21519,8 +19174,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) } @@ -21539,7 +19194,7 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21595,7 +19250,7 @@ func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlg func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21643,7 +19298,7 @@ func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋg func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21694,7 +19349,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) } @@ -21709,11 +19364,11 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } -func (ec *executionContext) unmarshalOBillProductWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐBillProductWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.BillProductWhereInput, error) { +func (ec *executionContext) unmarshalOBillProductWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐBillProductWhereInputᚄ(ctx context.Context, v any) ([]*ent.BillProductWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21729,7 +19384,7 @@ func (ec *executionContext) unmarshalOBillProductWhereInput2ᚕᚖentgoᚗioᚋc return res, nil } -func (ec *executionContext) unmarshalOBillProductWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐBillProductWhereInput(ctx context.Context, v interface{}) (*ent.BillProductWhereInput, error) { +func (ec *executionContext) unmarshalOBillProductWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐBillProductWhereInput(ctx context.Context, v any) (*ent.BillProductWhereInput, error) { if v == nil { return nil, nil } @@ -21737,7 +19392,7 @@ func (ec *executionContext) unmarshalOBillProductWhereInput2ᚖentgoᚗioᚋcont return &res, graphql.ErrorOnPath(ctx, err) } -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) } @@ -21747,7 +19402,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 } @@ -21777,11 +19432,11 @@ func (ec *executionContext) marshalOCategoryConfig2ᚖentgoᚗioᚋcontribᚋent return ec._CategoryConfig(ctx, sel, v) } -func (ec *executionContext) unmarshalOCategoryConfigInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfigᚄ(ctx context.Context, v interface{}) ([]*schematype.CategoryConfig, error) { +func (ec *executionContext) unmarshalOCategoryConfigInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfigᚄ(ctx context.Context, v any) ([]*schematype.CategoryConfig, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21797,7 +19452,7 @@ func (ec *executionContext) unmarshalOCategoryConfigInput2ᚕᚖentgoᚗioᚋcon return res, nil } -func (ec *executionContext) unmarshalOCategoryConfigInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfig(ctx context.Context, v interface{}) (*schematype.CategoryConfig, error) { +func (ec *executionContext) unmarshalOCategoryConfigInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋschemaᚋschematypeᚐCategoryConfig(ctx context.Context, v any) (*schematype.CategoryConfig, error) { if v == nil { return nil, nil } @@ -21811,7 +19466,7 @@ func (ec *executionContext) marshalOCategoryEdge2ᚕᚖentgoᚗioᚋcontribᚋen } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21853,11 +19508,11 @@ func (ec *executionContext) marshalOCategoryEdge2ᚖentgoᚗioᚋcontribᚋentgq return ec._CategoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOCategoryOrder2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCategoryOrderᚄ(ctx context.Context, v interface{}) ([]*ent.CategoryOrder, error) { +func (ec *executionContext) unmarshalOCategoryOrder2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCategoryOrderᚄ(ctx context.Context, v any) ([]*ent.CategoryOrder, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21873,11 +19528,11 @@ func (ec *executionContext) unmarshalOCategoryOrder2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOCategoryStatus2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚋcategoryᚐStatusᚄ(ctx context.Context, v interface{}) ([]category.Status, error) { +func (ec *executionContext) unmarshalOCategoryStatus2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚋcategoryᚐStatusᚄ(ctx context.Context, v any) ([]category.Status, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21899,7 +19554,7 @@ func (ec *executionContext) marshalOCategoryStatus2ᚕentgoᚗioᚋcontribᚋent } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -21940,7 +19595,7 @@ func (ec *executionContext) marshalOCategoryStatus2ᚕentgoᚗioᚋcontribᚋent return ret } -func (ec *executionContext) unmarshalOCategoryStatus2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚋcategoryᚐStatus(ctx context.Context, v interface{}) (*category.Status, error) { +func (ec *executionContext) unmarshalOCategoryStatus2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚋcategoryᚐStatus(ctx context.Context, v any) (*category.Status, error) { if v == nil { return nil, nil } @@ -21963,7 +19618,7 @@ func (ec *executionContext) marshalOCategoryTypes2ᚖentgoᚗioᚋcontribᚋentg return ec._CategoryTypes(ctx, sel, v) } -func (ec *executionContext) unmarshalOCategoryTypesInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐCategoryTypesInput(ctx context.Context, v interface{}) (*CategoryTypesInput, error) { +func (ec *executionContext) unmarshalOCategoryTypesInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐCategoryTypesInput(ctx context.Context, v any) (*CategoryTypesInput, error) { if v == nil { return nil, nil } @@ -21971,11 +19626,11 @@ func (ec *executionContext) unmarshalOCategoryTypesInput2ᚖentgoᚗioᚋcontrib return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOCategoryWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCategoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.CategoryWhereInput, error) { +func (ec *executionContext) unmarshalOCategoryWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCategoryWhereInputᚄ(ctx context.Context, v any) ([]*ent.CategoryWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -21991,7 +19646,7 @@ func (ec *executionContext) unmarshalOCategoryWhereInput2ᚕᚖentgoᚗioᚋcont return res, nil } -func (ec *executionContext) unmarshalOCategoryWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCategoryWhereInput(ctx context.Context, v interface{}) (*ent.CategoryWhereInput, error) { +func (ec *executionContext) unmarshalOCategoryWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCategoryWhereInput(ctx context.Context, v any) (*ent.CategoryWhereInput, error) { if v == nil { return nil, nil } @@ -21999,11 +19654,11 @@ func (ec *executionContext) unmarshalOCategoryWhereInput2ᚖentgoᚗioᚋcontrib return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOCreateTodoInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCreateTodoInputᚄ(ctx context.Context, v interface{}) ([]*ent.CreateTodoInput, error) { +func (ec *executionContext) unmarshalOCreateTodoInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐCreateTodoInputᚄ(ctx context.Context, v any) ([]*ent.CreateTodoInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22019,7 +19674,7 @@ func (ec *executionContext) unmarshalOCreateTodoInput2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v interface{}) (*entgql.Cursor[uuid.UUID], error) { +func (ec *executionContext) unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v any) (*entgql.Cursor[uuid.UUID], error) { if v == nil { return nil, nil } @@ -22041,7 +19696,7 @@ func (ec *executionContext) marshalOCustom2ᚕentgoᚗioᚋcontribᚋentgqlᚋin } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22088,7 +19743,7 @@ func (ec *executionContext) marshalOCustom2ᚕᚖentgoᚗioᚋcontribᚋentgql } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22130,7 +19785,7 @@ func (ec *executionContext) marshalOCustom2ᚖentgoᚗioᚋcontribᚋentgqlᚋin return ec._Custom(ctx, sel, v) } -func (ec *executionContext) unmarshalODuration2timeᚐDuration(ctx context.Context, v interface{}) (time.Duration, error) { +func (ec *executionContext) unmarshalODuration2timeᚐDuration(ctx context.Context, v any) (time.Duration, error) { res, err := durationgql.UnmarshalDuration(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -22140,11 +19795,11 @@ func (ec *executionContext) marshalODuration2timeᚐDuration(ctx context.Context return res } -func (ec *executionContext) unmarshalODuration2ᚕtimeᚐDurationᚄ(ctx context.Context, v interface{}) ([]time.Duration, error) { +func (ec *executionContext) unmarshalODuration2ᚕtimeᚐDurationᚄ(ctx context.Context, v any) ([]time.Duration, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22178,7 +19833,7 @@ func (ec *executionContext) marshalODuration2ᚕtimeᚐDurationᚄ(ctx context.C return ret } -func (ec *executionContext) unmarshalODuration2ᚖtimeᚐDuration(ctx context.Context, v interface{}) (*time.Duration, error) { +func (ec *executionContext) unmarshalODuration2ᚖtimeᚐDuration(ctx context.Context, v any) (*time.Duration, error) { if v == nil { return nil, nil } @@ -22207,7 +19862,7 @@ func (ec *executionContext) marshalOFriendshipEdge2ᚕᚖentgoᚗioᚋcontribᚋ } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22249,11 +19904,11 @@ func (ec *executionContext) marshalOFriendshipEdge2ᚖentgoᚗioᚋcontribᚋent return ec._FriendshipEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐFriendshipWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.FriendshipWhereInput, error) { +func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐFriendshipWhereInputᚄ(ctx context.Context, v any) ([]*ent.FriendshipWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22269,7 +19924,7 @@ func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚕᚖentgoᚗioᚋco return res, nil } -func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐFriendshipWhereInput(ctx context.Context, v interface{}) (*ent.FriendshipWhereInput, error) { +func (ec *executionContext) unmarshalOFriendshipWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐFriendshipWhereInput(ctx context.Context, v any) (*ent.FriendshipWhereInput, error) { if v == nil { return nil, nil } @@ -22290,7 +19945,7 @@ func (ec *executionContext) marshalOGroupEdge2ᚕᚖentgoᚗioᚋcontribᚋentgq } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22332,11 +19987,11 @@ func (ec *executionContext) marshalOGroupEdge2ᚖentgoᚗioᚋcontribᚋentgql return ec._GroupEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOGroupWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐGroupWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.GroupWhereInput, error) { +func (ec *executionContext) unmarshalOGroupWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐGroupWhereInputᚄ(ctx context.Context, v any) ([]*ent.GroupWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22352,7 +20007,7 @@ func (ec *executionContext) unmarshalOGroupWhereInput2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOGroupWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐGroupWhereInput(ctx context.Context, v interface{}) (*ent.GroupWhereInput, error) { +func (ec *executionContext) unmarshalOGroupWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐGroupWhereInput(ctx context.Context, v any) (*ent.GroupWhereInput, error) { if v == nil { return nil, nil } @@ -22360,7 +20015,7 @@ func (ec *executionContext) unmarshalOGroupWhereInput2ᚖentgoᚗioᚋcontribᚋ return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, v interface{}) (uuid.UUID, error) { +func (ec *executionContext) unmarshalOID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, v any) (uuid.UUID, error) { res, err := uuidgql.UnmarshalUUID(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -22370,11 +20025,11 @@ func (ec *executionContext) marshalOID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx c return res } -func (ec *executionContext) unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx context.Context, v interface{}) ([]uuid.UUID, error) { +func (ec *executionContext) unmarshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx context.Context, v any) ([]uuid.UUID, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22408,7 +20063,7 @@ func (ec *executionContext) marshalOID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ return ret } -func (ec *executionContext) unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, v interface{}) (*uuid.UUID, error) { +func (ec *executionContext) unmarshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, v any) (*uuid.UUID, error) { if v == nil { return nil, nil } @@ -22424,7 +20079,7 @@ func (ec *executionContext) marshalOID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ct return res } -func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v interface{}) (int, error) { +func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v any) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -22434,11 +20089,11 @@ func (ec *executionContext) marshalOInt2int(ctx context.Context, sel ast.Selecti 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 } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22472,7 +20127,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 } @@ -22488,7 +20143,7 @@ func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.Sele return res } -func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { +func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v any) (map[string]interface{}, error) { if v == nil { return nil, nil } @@ -22517,7 +20172,7 @@ func (ec *executionContext) marshalOOneToMany2ᚕᚖentgoᚗioᚋcontribᚋentgq } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22571,7 +20226,7 @@ func (ec *executionContext) marshalOOneToManyEdge2ᚕᚖentgoᚗioᚋcontribᚋe } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22613,7 +20268,7 @@ func (ec *executionContext) marshalOOneToManyEdge2ᚖentgoᚗioᚋcontribᚋentg return ec._OneToManyEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOOneToManyOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐOneToManyOrder(ctx context.Context, v interface{}) (*OneToManyOrder, error) { +func (ec *executionContext) unmarshalOOneToManyOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐOneToManyOrder(ctx context.Context, v any) (*OneToManyOrder, error) { if v == nil { return nil, nil } @@ -22621,11 +20276,11 @@ func (ec *executionContext) unmarshalOOneToManyOrder2ᚖentgoᚗioᚋcontribᚋe return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐOneToManyWhereInputᚄ(ctx context.Context, v interface{}) ([]*OneToManyWhereInput, error) { +func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐOneToManyWhereInputᚄ(ctx context.Context, v any) ([]*OneToManyWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22641,7 +20296,7 @@ func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚕᚖentgoᚗioᚋcon return res, nil } -func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐOneToManyWhereInput(ctx context.Context, v interface{}) (*OneToManyWhereInput, error) { +func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐOneToManyWhereInput(ctx context.Context, v any) (*OneToManyWhereInput, error) { if v == nil { return nil, nil } @@ -22649,11 +20304,11 @@ func (ec *executionContext) unmarshalOOneToManyWhereInput2ᚖentgoᚗioᚋcontri return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐOrganizationWhereInputᚄ(ctx context.Context, v interface{}) ([]*OrganizationWhereInput, error) { +func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐOrganizationWhereInputᚄ(ctx context.Context, v any) ([]*OrganizationWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22669,7 +20324,7 @@ func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚕᚖentgoᚗioᚋ return res, nil } -func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐOrganizationWhereInput(ctx context.Context, v interface{}) (*OrganizationWhereInput, error) { +func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐOrganizationWhereInput(ctx context.Context, v any) (*OrganizationWhereInput, error) { if v == nil { return nil, nil } @@ -22677,11 +20332,11 @@ func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚖentgoᚗioᚋcon return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOProjectWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐProjectWhereInputᚄ(ctx context.Context, v interface{}) ([]*ProjectWhereInput, error) { +func (ec *executionContext) unmarshalOProjectWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐProjectWhereInputᚄ(ctx context.Context, v any) ([]*ProjectWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22697,7 +20352,7 @@ func (ec *executionContext) unmarshalOProjectWhereInput2ᚕᚖentgoᚗioᚋcontr return res, nil } -func (ec *executionContext) unmarshalOProjectWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐProjectWhereInput(ctx context.Context, v interface{}) (*ProjectWhereInput, error) { +func (ec *executionContext) unmarshalOProjectWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚐProjectWhereInput(ctx context.Context, v any) (*ProjectWhereInput, error) { if v == nil { return nil, nil } @@ -22705,11 +20360,11 @@ func (ec *executionContext) unmarshalOProjectWhereInput2ᚖentgoᚗioᚋcontrib 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 } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22743,7 +20398,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 } @@ -22759,11 +20414,11 @@ func (ec *executionContext) marshalOString2ᚖstring(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 } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22797,7 +20452,7 @@ func (ec *executionContext) marshalOTime2ᚕtimeᚐTimeᚄ(ctx context.Context, return ret } -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 } @@ -22826,7 +20481,7 @@ func (ec *executionContext) marshalOTodoEdge2ᚕᚖentgoᚗioᚋcontribᚋentgql } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22868,11 +20523,11 @@ func (ec *executionContext) marshalOTodoEdge2ᚖentgoᚗioᚋcontribᚋentgqlᚋ return ec._TodoEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOTodoOrder2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐTodoOrderᚄ(ctx context.Context, v interface{}) ([]*ent.TodoOrder, error) { +func (ec *executionContext) unmarshalOTodoOrder2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐTodoOrderᚄ(ctx context.Context, v any) ([]*ent.TodoOrder, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22888,11 +20543,11 @@ func (ec *executionContext) unmarshalOTodoOrder2ᚕᚖentgoᚗioᚋcontribᚋent return res, nil } -func (ec *executionContext) unmarshalOTodoStatus2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatusᚄ(ctx context.Context, v interface{}) ([]todo.Status, error) { +func (ec *executionContext) unmarshalOTodoStatus2ᚕentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatusᚄ(ctx context.Context, v any) ([]todo.Status, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22914,7 +20569,7 @@ func (ec *executionContext) marshalOTodoStatus2ᚕentgoᚗioᚋcontribᚋentgql } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -22955,7 +20610,7 @@ func (ec *executionContext) marshalOTodoStatus2ᚕentgoᚗioᚋcontribᚋentgql return ret } -func (ec *executionContext) unmarshalOTodoStatus2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatus(ctx context.Context, v interface{}) (*todo.Status, error) { +func (ec *executionContext) unmarshalOTodoStatus2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodoᚋentᚋtodoᚐStatus(ctx context.Context, v any) (*todo.Status, error) { if v == nil { return nil, nil } @@ -22971,11 +20626,11 @@ func (ec *executionContext) marshalOTodoStatus2ᚖentgoᚗioᚋcontribᚋentgql return v } -func (ec *executionContext) unmarshalOTodoWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐTodoWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.TodoWhereInput, error) { +func (ec *executionContext) unmarshalOTodoWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐTodoWhereInputᚄ(ctx context.Context, v any) ([]*ent.TodoWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -22991,7 +20646,7 @@ func (ec *executionContext) unmarshalOTodoWhereInput2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOTodoWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐTodoWhereInput(ctx context.Context, v interface{}) (*ent.TodoWhereInput, error) { +func (ec *executionContext) unmarshalOTodoWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐTodoWhereInput(ctx context.Context, v any) (*ent.TodoWhereInput, error) { if v == nil { return nil, nil } @@ -22999,11 +20654,11 @@ func (ec *executionContext) unmarshalOTodoWhereInput2ᚖentgoᚗioᚋcontribᚋe return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOUUID2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { +func (ec *executionContext) unmarshalOUUID2ᚕ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) } @@ -23037,7 +20692,7 @@ func (ec *executionContext) marshalOUUID2ᚕstringᚄ(ctx context.Context, sel a return ret } -func (ec *executionContext) unmarshalOUUID2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOUUID2ᚖstring(ctx context.Context, v any) (*string, error) { if v == nil { return nil, nil } @@ -23053,7 +20708,7 @@ func (ec *executionContext) marshalOUUID2ᚖstring(ctx context.Context, sel ast. return res } -func (ec *executionContext) unmarshalOUint642uint64(ctx context.Context, v interface{}) (uint64, error) { +func (ec *executionContext) unmarshalOUint642uint64(ctx context.Context, v any) (uint64, error) { res, err := graphql.UnmarshalUint64(v) return res, graphql.ErrorOnPath(ctx, err) } @@ -23063,11 +20718,11 @@ func (ec *executionContext) marshalOUint642uint64(ctx context.Context, sel ast.S return res } -func (ec *executionContext) unmarshalOUint642ᚕuint64ᚄ(ctx context.Context, v interface{}) ([]uint64, error) { +func (ec *executionContext) unmarshalOUint642ᚕuint64ᚄ(ctx context.Context, v any) ([]uint64, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -23101,7 +20756,7 @@ func (ec *executionContext) marshalOUint642ᚕuint64ᚄ(ctx context.Context, sel return ret } -func (ec *executionContext) unmarshalOUint642ᚖuint64(ctx context.Context, v interface{}) (*uint64, error) { +func (ec *executionContext) unmarshalOUint642ᚖuint64(ctx context.Context, v any) (*uint64, error) { if v == nil { return nil, nil } @@ -23130,7 +20785,7 @@ func (ec *executionContext) marshalOUserEdge2ᚕᚖentgoᚗioᚋcontribᚋentgql } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -23172,7 +20827,7 @@ func (ec *executionContext) marshalOUserEdge2ᚖentgoᚗioᚋcontribᚋentgqlᚋ return ec._UserEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOUserOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐUserOrder(ctx context.Context, v interface{}) (*ent.UserOrder, error) { +func (ec *executionContext) unmarshalOUserOrder2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐUserOrder(ctx context.Context, v any) (*ent.UserOrder, error) { if v == nil { return nil, nil } @@ -23180,11 +20835,11 @@ func (ec *executionContext) unmarshalOUserOrder2ᚖentgoᚗioᚋcontribᚋentgql return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOUserWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐUserWhereInputᚄ(ctx context.Context, v interface{}) ([]*ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalOUserWhereInput2ᚕᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐUserWhereInputᚄ(ctx context.Context, v any) ([]*ent.UserWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} + var vSlice []any if v != nil { vSlice = graphql.CoerceList(v) } @@ -23200,7 +20855,7 @@ func (ec *executionContext) unmarshalOUserWhereInput2ᚕᚖentgoᚗioᚋcontrib return res, nil } -func (ec *executionContext) unmarshalOUserWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐUserWhereInput(ctx context.Context, v interface{}) (*ent.UserWhereInput, error) { +func (ec *executionContext) unmarshalOUserWhereInput2ᚖentgoᚗioᚋcontribᚋentgqlᚋinternalᚋtodouuidᚋentᚐUserWhereInput(ctx context.Context, v any) (*ent.UserWhereInput, error) { if v == nil { return nil, nil } @@ -23214,7 +20869,7 @@ func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgq } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -23261,7 +20916,7 @@ func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgen } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -23308,7 +20963,7 @@ func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋg } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } @@ -23362,7 +21017,7 @@ func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgen } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup - isLen1 := true + isLen1 := len(v) == 1 if !isLen1 { wg.Add(len(v)) } diff --git a/entgql/internal/todouuid/gqlgen.yml b/entgql/internal/todouuid/gqlgen.yml index eb37d943f..0680b15ab 100644 --- a/entgql/internal/todouuid/gqlgen.yml +++ b/entgql/internal/todouuid/gqlgen.yml @@ -9,6 +9,7 @@ schema: resolver: layout: follow-schema + preserve_resolver: true dir: . autobind: diff --git a/entgql/internal/todouuid/models_gen.go b/entgql/internal/todouuid/models_gen.go index 91247fbee..f368391f0 100644 --- a/entgql/internal/todouuid/models_gen.go +++ b/entgql/internal/todouuid/models_gen.go @@ -203,7 +203,7 @@ func (e OneToManyOrderField) String() string { return string(e) } -func (e *OneToManyOrderField) UnmarshalGQL(v interface{}) error { +func (e *OneToManyOrderField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") diff --git a/go.mod b/go.mod index 556d262f5..3c6ff9ade 100644 --- a/go.mod +++ b/go.mod @@ -4,11 +4,12 @@ go 1.23.4 require ( entgo.io/ent v0.13.2-0.20240717044502-34158f2c129b - github.com/99designs/gqlgen v0.17.51 // Version v0.17.52 has an issue with ent field collection. Bad commit: https://github.com/99designs/gqlgen/commit/f81239e47a7ebaf1ab276689344e1189f83ac0a0 + github.com/99designs/gqlgen v0.17.62 // Version v0.17.52 has an issue with ent field collection. Bad commit: https://github.com/99designs/gqlgen/commit/f81239e47a7ebaf1ab276689344e1189f83ac0a0 github.com/AlekSi/pointer v1.1.0 github.com/alecthomas/kong v0.7.0 github.com/go-openapi/inflect v0.19.0 github.com/go-viper/mapstructure/v2 v2.2.1 + github.com/google/addlicense v1.1.1 github.com/google/uuid v1.6.0 github.com/hashicorp/go-multierror v1.1.1 github.com/jhump/protoreflect v1.10.1 @@ -17,23 +18,26 @@ require ( github.com/oklog/ulid/v2 v2.0.2 github.com/stoewer/go-strcase v1.2.0 github.com/stretchr/testify v1.10.0 - github.com/vektah/gqlparser/v2 v2.5.20 + github.com/vektah/gqlparser/v2 v2.5.21 github.com/vmihailenco/msgpack/v5 v5.3.5 go.uber.org/multierr v1.9.0 go.uber.org/zap v1.24.0 golang.org/x/exp v0.0.0-20221230185412-738e83a70c30 - golang.org/x/sync v0.8.0 + golang.org/x/sync v0.10.0 golang.org/x/tools v0.24.0 google.golang.org/grpc v1.52.3 - google.golang.org/protobuf v1.35.2 + google.golang.org/protobuf v1.36.1 ) +require github.com/golang/protobuf v1.5.4 // indirect + require ( ariga.io/atlas v0.25.1-0.20240717145915-af51d3945208 // indirect github.com/agext/levenshtein v1.2.1 // indirect github.com/agnivade/levenshtein v1.2.0 // indirect github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect + github.com/bmatcuk/doublestar/v4 v4.0.2 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dlclark/regexp2 v1.7.0 // indirect github.com/fatih/color v1.13.0 // indirect @@ -41,7 +45,6 @@ require ( github.com/go-faster/errors v0.6.1 // indirect github.com/go-faster/jx v0.40.0 // indirect github.com/go-faster/yamlx v0.4.1 // indirect - github.com/golang/protobuf v1.5.4 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/gorilla/websocket v1.5.0 // indirect github.com/hashicorp/errwrap v1.0.0 // indirect @@ -51,7 +54,6 @@ require ( github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 // indirect - github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/segmentio/asm v1.2.0 // indirect github.com/sosodev/duration v1.3.1 // indirect @@ -60,9 +62,9 @@ require ( github.com/zclconf/go-cty v1.14.4 // indirect go.uber.org/atomic v1.10.0 // indirect golang.org/x/mod v0.20.0 // indirect - golang.org/x/net v0.29.0 // indirect - golang.org/x/sys v0.25.0 // indirect - golang.org/x/text v0.19.0 // indirect + golang.org/x/net v0.33.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/text v0.21.0 // indirect google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index bab06ed95..30a777db5 100644 --- a/go.sum +++ b/go.sum @@ -3,8 +3,8 @@ ariga.io/atlas v0.25.1-0.20240717145915-af51d3945208/go.mod h1:KPLc7Zj+nzoXfWshr cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= entgo.io/ent v0.13.2-0.20240717044502-34158f2c129b h1:kC+uzL8UFWwtXQ+yY0wUdvVUgPlJPGU3Fx1uttM8PJA= entgo.io/ent v0.13.2-0.20240717044502-34158f2c129b/go.mod h1:qCEmo+biw3ccBn9OyL4ZK5dfpwg++l1Gxwac5B1206A= -github.com/99designs/gqlgen v0.17.51 h1:KHLvUckplsZi14Zv1JdHkemXSkulksN/Dwe7VflePSQ= -github.com/99designs/gqlgen v0.17.51/go.mod h1:77/+pVe6zlTsz++oUg2m8VLgzdUPHxjoAG3BxI5y8Rc= +github.com/99designs/gqlgen v0.17.62 h1:Wovt1+XJN9dTWYh92537Y9a5FuMVSkrQL4bn0a8v5Rg= +github.com/99designs/gqlgen v0.17.62/go.mod h1:sVCM2iwIZisJjTI/DEC3fpH+HFgxY1496ZJ+jbT9IjA= github.com/AlekSi/pointer v1.1.0 h1:SSDMPcXD9jSl8FPy9cRzoRaMJtm9g9ggGTxecRUbQoI= github.com/AlekSi/pointer v1.1.0/go.mod h1:y7BvfRI3wXPWKXEBhU71nbnIEEZX0QTSB2Bj48UJIZE= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -34,6 +34,8 @@ github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0 h1:jfIu9sQUG6Ig github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0/go.mod h1:t2tdKJDJF9BV14lnkjHmOQgcvEKgtqs5a1N3LNdJhGE= github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= +github.com/bmatcuk/doublestar/v4 v4.0.2 h1:X0krlUVAVmtr2cRoTqR8aDMrDqnB36ht8wpWTiQ3jsA= +github.com/bmatcuk/doublestar/v4 v4.0.2/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -74,6 +76,8 @@ github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QD github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +github.com/google/addlicense v1.1.1 h1:jpVf9qPbU8rz5MxKo7d+RMcNHkqxi4YJi/laauX4aAE= +github.com/google/addlicense v1.1.1/go.mod h1:Sm/DHu7Jk+T5miFHHehdIjbi4M5+dJDRS3Cq0rncIxA= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -123,8 +127,6 @@ github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwp github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 h1:DpOJ2HYzCv8LZP15IdmG+YdwD2luVPHITV96TkirNBM= github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= -github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= -github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/nishanths/predeclared v0.0.0-20200524104333-86fad755b4d3/go.mod h1:nt3d53pc1VYcphSCIaYAJtnPYnr3Zyn8fMq2wvPGPso= github.com/ogen-go/ogen v0.56.1 h1:nvjeoT8wBu4oYVK8b4veOjBHA1puwVEE56Enx2blNDI= github.com/ogen-go/ogen v0.56.1/go.mod h1:osu6PQcNyie8QsQcGk2P74HpCcxCL08mnbHmPmQm4rE= @@ -152,8 +154,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/vektah/gqlparser/v2 v2.5.20 h1:kPaWbhBntxoZPaNdBaIPT1Kh0i1b/onb5kXgEdP5JCo= -github.com/vektah/gqlparser/v2 v2.5.20/go.mod h1:xMl+ta8a5M1Yo1A1Iwt/k7gSpscwSnHZdw7tfhEGfTM= +github.com/vektah/gqlparser/v2 v2.5.21 h1:Zw1rG2dr1pRR4wqwbVq4d6+xk2f4ut/yo+hwr4QjE08= +github.com/vektah/gqlparser/v2 v2.5.21/go.mod h1:xMl+ta8a5M1Yo1A1Iwt/k7gSpscwSnHZdw7tfhEGfTM= github.com/vmihailenco/msgpack/v5 v5.3.5 h1:5gO0H1iULLWGhs2H5tbAHIZTV8/cYafcFOr9znI5mJU= github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc= github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= @@ -193,16 +195,16 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo= -golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -212,11 +214,11 @@ golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= -golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= -golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= @@ -251,8 +253,8 @@ google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2 google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.25.1-0.20200805231151-a709e31e5d12/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.35.2 h1:8Ar7bF+apOIoThw1EdZl0p1oWvMqTHmpA2fRTyZO8io= -google.golang.org/protobuf v1.35.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= +google.golang.org/protobuf v1.36.1 h1:yBPeRvTftaleIgM3PZ/WBIZ7XM/eEYAaEyCwvyjq/gk= +google.golang.org/protobuf v1.36.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= diff --git a/tools.go b/tools.go new file mode 100644 index 000000000..25cb85f4a --- /dev/null +++ b/tools.go @@ -0,0 +1,8 @@ +//go:build tools +// +build tools + +package tools + +import ( + _ "github.com/google/addlicense" +)