From efd3b5e7695657510aacb0ef514ac6cfdac1f492 Mon Sep 17 00:00:00 2001 From: Steve Coffman Date: Tue, 31 Dec 2024 15:15:56 -0500 Subject: [PATCH] Update gqlgen to v0.17.62 Signed-off-by: Steve Coffman --- entgql/internal/todo/generated.go | 558 ++++-------------------- entgql/internal/todofed/generated.go | 78 +--- entgql/internal/todogotype/generated.go | 558 ++++-------------------- entgql/internal/todopulid/generated.go | 558 ++++-------------------- entgql/internal/todouuid/generated.go | 558 ++++-------------------- go.mod | 4 +- go.sum | 8 +- 7 files changed, 391 insertions(+), 1931 deletions(-) diff --git a/entgql/internal/todo/generated.go b/entgql/internal/todo/generated.go index 63ce24f79..24d9cafd4 100644 --- a/entgql/internal/todo/generated.go +++ b/entgql/internal/todo/generated.go @@ -1312,11 +1312,7 @@ func (ec *executionContext) dir_hasPermissions_argsPermissions( ctx context.Context, 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 } @@ -1369,11 +1365,7 @@ func (ec *executionContext) field_Category_subCategories_argsAfter( ctx context.Context, 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 } @@ -1391,11 +1383,7 @@ func (ec *executionContext) field_Category_subCategories_argsFirst( ctx context.Context, 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 } @@ -1413,11 +1401,7 @@ func (ec *executionContext) field_Category_subCategories_argsBefore( ctx context.Context, 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 } @@ -1435,11 +1419,7 @@ func (ec *executionContext) field_Category_subCategories_argsLast( ctx context.Context, 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 } @@ -1457,11 +1437,7 @@ func (ec *executionContext) field_Category_subCategories_argsOrderBy( ctx context.Context, 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 } @@ -1479,11 +1455,7 @@ func (ec *executionContext) field_Category_subCategories_argsWhere( ctx context.Context, 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 } @@ -1536,11 +1508,7 @@ func (ec *executionContext) field_Category_todos_argsAfter( ctx context.Context, 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 } @@ -1558,11 +1526,7 @@ func (ec *executionContext) field_Category_todos_argsFirst( ctx context.Context, 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 } @@ -1580,11 +1544,7 @@ func (ec *executionContext) field_Category_todos_argsBefore( ctx context.Context, 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 } @@ -1602,11 +1562,7 @@ func (ec *executionContext) field_Category_todos_argsLast( ctx context.Context, 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 } @@ -1624,11 +1580,7 @@ func (ec *executionContext) field_Category_todos_argsOrderBy( ctx context.Context, 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 } @@ -1646,11 +1598,7 @@ func (ec *executionContext) field_Category_todos_argsWhere( ctx context.Context, 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 } @@ -1703,11 +1651,7 @@ func (ec *executionContext) field_Group_users_argsAfter( ctx context.Context, 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 } @@ -1725,11 +1669,7 @@ func (ec *executionContext) field_Group_users_argsFirst( ctx context.Context, 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 } @@ -1747,11 +1687,7 @@ func (ec *executionContext) field_Group_users_argsBefore( ctx context.Context, 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 } @@ -1769,11 +1705,7 @@ func (ec *executionContext) field_Group_users_argsLast( ctx context.Context, 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 } @@ -1791,11 +1723,7 @@ func (ec *executionContext) field_Group_users_argsOrderBy( ctx context.Context, 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 } @@ -1813,11 +1741,7 @@ func (ec *executionContext) field_Group_users_argsWhere( ctx context.Context, 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 } @@ -1845,11 +1769,7 @@ func (ec *executionContext) field_Mutation_createCategory_argsInput( ctx context.Context, 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 } @@ -1877,11 +1797,7 @@ func (ec *executionContext) field_Mutation_createTodo_argsInput( ctx context.Context, 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 } @@ -1914,11 +1830,7 @@ func (ec *executionContext) field_Mutation_updateFriendship_argsID( ctx context.Context, 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 } @@ -1936,11 +1848,7 @@ func (ec *executionContext) field_Mutation_updateFriendship_argsInput( ctx context.Context, 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 } @@ -1973,11 +1881,7 @@ func (ec *executionContext) field_Mutation_updateTodo_argsID( ctx context.Context, 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 } @@ -1995,11 +1899,7 @@ func (ec *executionContext) field_Mutation_updateTodo_argsInput( ctx context.Context, 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 } @@ -2052,11 +1952,7 @@ func (ec *executionContext) field_Project_todos_argsAfter( ctx context.Context, 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 } @@ -2074,11 +1970,7 @@ func (ec *executionContext) field_Project_todos_argsFirst( ctx context.Context, 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 } @@ -2096,11 +1988,7 @@ func (ec *executionContext) field_Project_todos_argsBefore( ctx context.Context, 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 } @@ -2118,11 +2006,7 @@ func (ec *executionContext) field_Project_todos_argsLast( ctx context.Context, 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 } @@ -2140,11 +2024,7 @@ func (ec *executionContext) field_Project_todos_argsOrderBy( ctx context.Context, 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 } @@ -2162,11 +2042,7 @@ func (ec *executionContext) field_Project_todos_argsWhere( ctx context.Context, 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 } @@ -2194,11 +2070,7 @@ func (ec *executionContext) field_Query___type_argsName( ctx context.Context, 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 } @@ -2251,11 +2123,7 @@ func (ec *executionContext) field_Query_categories_argsAfter( ctx context.Context, 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 } @@ -2273,11 +2141,7 @@ func (ec *executionContext) field_Query_categories_argsFirst( ctx context.Context, 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 } @@ -2295,11 +2159,7 @@ func (ec *executionContext) field_Query_categories_argsBefore( ctx context.Context, 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 } @@ -2317,11 +2177,7 @@ func (ec *executionContext) field_Query_categories_argsLast( ctx context.Context, 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 } @@ -2339,11 +2195,7 @@ func (ec *executionContext) field_Query_categories_argsOrderBy( ctx context.Context, 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 } @@ -2361,11 +2213,7 @@ func (ec *executionContext) field_Query_categories_argsWhere( ctx context.Context, 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 } @@ -2413,11 +2261,7 @@ func (ec *executionContext) field_Query_groups_argsAfter( ctx context.Context, 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 } @@ -2435,11 +2279,7 @@ func (ec *executionContext) field_Query_groups_argsFirst( ctx context.Context, 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 } @@ -2457,11 +2297,7 @@ func (ec *executionContext) field_Query_groups_argsBefore( ctx context.Context, 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 } @@ -2479,11 +2315,7 @@ func (ec *executionContext) field_Query_groups_argsLast( ctx context.Context, 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 } @@ -2501,11 +2333,7 @@ func (ec *executionContext) field_Query_groups_argsWhere( ctx context.Context, 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 } @@ -2533,11 +2361,7 @@ func (ec *executionContext) field_Query_node_argsID( ctx context.Context, 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 } @@ -2565,11 +2389,7 @@ func (ec *executionContext) field_Query_nodes_argsIds( ctx context.Context, 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 } @@ -2622,11 +2442,7 @@ func (ec *executionContext) field_Query_oneToMany_argsAfter( ctx context.Context, 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 } @@ -2644,11 +2460,7 @@ func (ec *executionContext) field_Query_oneToMany_argsFirst( ctx context.Context, 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 } @@ -2666,11 +2478,7 @@ func (ec *executionContext) field_Query_oneToMany_argsBefore( ctx context.Context, 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 } @@ -2688,11 +2496,7 @@ func (ec *executionContext) field_Query_oneToMany_argsLast( ctx context.Context, 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 } @@ -2710,11 +2514,7 @@ func (ec *executionContext) field_Query_oneToMany_argsOrderBy( ctx context.Context, 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 } @@ -2732,11 +2532,7 @@ func (ec *executionContext) field_Query_oneToMany_argsWhere( ctx context.Context, 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 } @@ -2789,11 +2585,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsAfter( ctx context.Context, 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 } @@ -2811,11 +2603,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsFirst( ctx context.Context, 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 } @@ -2833,11 +2621,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsBefore( ctx context.Context, 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 } @@ -2855,11 +2639,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsLast( ctx context.Context, 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 } @@ -2877,11 +2657,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsOrderBy( ctx context.Context, 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 } @@ -2899,11 +2675,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsWhere( ctx context.Context, 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 } @@ -2956,11 +2728,7 @@ func (ec *executionContext) field_Query_todos_argsAfter( ctx context.Context, 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 } @@ -2978,11 +2746,7 @@ func (ec *executionContext) field_Query_todos_argsFirst( ctx context.Context, 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 } @@ -3000,11 +2764,7 @@ func (ec *executionContext) field_Query_todos_argsBefore( ctx context.Context, 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 } @@ -3022,11 +2782,7 @@ func (ec *executionContext) field_Query_todos_argsLast( ctx context.Context, 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 } @@ -3044,11 +2800,7 @@ func (ec *executionContext) field_Query_todos_argsOrderBy( ctx context.Context, 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 } @@ -3066,11 +2818,7 @@ func (ec *executionContext) field_Query_todos_argsWhere( ctx context.Context, 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 } @@ -3123,11 +2871,7 @@ func (ec *executionContext) field_Query_users_argsAfter( ctx context.Context, 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 } @@ -3145,11 +2889,7 @@ func (ec *executionContext) field_Query_users_argsFirst( ctx context.Context, 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 } @@ -3167,11 +2907,7 @@ func (ec *executionContext) field_Query_users_argsBefore( ctx context.Context, 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 } @@ -3189,11 +2925,7 @@ func (ec *executionContext) field_Query_users_argsLast( ctx context.Context, 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 } @@ -3211,11 +2943,7 @@ func (ec *executionContext) field_Query_users_argsOrderBy( ctx context.Context, 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 } @@ -3233,11 +2961,7 @@ func (ec *executionContext) field_Query_users_argsWhere( ctx context.Context, 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 } @@ -3290,11 +3014,7 @@ func (ec *executionContext) field_Todo_children_argsAfter( ctx context.Context, 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 } @@ -3312,11 +3032,7 @@ func (ec *executionContext) field_Todo_children_argsFirst( ctx context.Context, 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 } @@ -3334,11 +3050,7 @@ func (ec *executionContext) field_Todo_children_argsBefore( ctx context.Context, 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 } @@ -3356,11 +3068,7 @@ func (ec *executionContext) field_Todo_children_argsLast( ctx context.Context, 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 } @@ -3378,11 +3086,7 @@ func (ec *executionContext) field_Todo_children_argsOrderBy( ctx context.Context, 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 } @@ -3400,11 +3104,7 @@ func (ec *executionContext) field_Todo_children_argsWhere( ctx context.Context, 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 } @@ -3457,11 +3157,7 @@ func (ec *executionContext) field_User_friends_argsAfter( ctx context.Context, 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 } @@ -3479,11 +3175,7 @@ func (ec *executionContext) field_User_friends_argsFirst( ctx context.Context, 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 } @@ -3501,11 +3193,7 @@ func (ec *executionContext) field_User_friends_argsBefore( ctx context.Context, 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 } @@ -3523,11 +3211,7 @@ func (ec *executionContext) field_User_friends_argsLast( ctx context.Context, 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 } @@ -3545,11 +3229,7 @@ func (ec *executionContext) field_User_friends_argsOrderBy( ctx context.Context, 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 } @@ -3567,11 +3247,7 @@ func (ec *executionContext) field_User_friends_argsWhere( ctx context.Context, 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 } @@ -3619,11 +3295,7 @@ func (ec *executionContext) field_User_friendships_argsAfter( ctx context.Context, 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 } @@ -3641,11 +3313,7 @@ func (ec *executionContext) field_User_friendships_argsFirst( ctx context.Context, 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,11 +3331,7 @@ func (ec *executionContext) field_User_friendships_argsBefore( ctx context.Context, 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 } @@ -3685,11 +3349,7 @@ func (ec *executionContext) field_User_friendships_argsLast( ctx context.Context, 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,11 +3367,7 @@ func (ec *executionContext) field_User_friendships_argsWhere( ctx context.Context, 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 } @@ -3759,11 +3415,7 @@ func (ec *executionContext) field_User_groups_argsAfter( ctx context.Context, 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 } @@ -3781,11 +3433,7 @@ func (ec *executionContext) field_User_groups_argsFirst( ctx context.Context, 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 } @@ -3803,11 +3451,7 @@ func (ec *executionContext) field_User_groups_argsBefore( ctx context.Context, 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 } @@ -3825,11 +3469,7 @@ func (ec *executionContext) field_User_groups_argsLast( ctx context.Context, 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 } @@ -3847,11 +3487,7 @@ func (ec *executionContext) field_User_groups_argsWhere( ctx context.Context, 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 } @@ -3879,11 +3515,7 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, 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 } @@ -3911,11 +3543,7 @@ func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, 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 } diff --git a/entgql/internal/todofed/generated.go b/entgql/internal/todofed/generated.go index 7ac145ff7..ef8579864 100644 --- a/entgql/internal/todofed/generated.go +++ b/entgql/internal/todofed/generated.go @@ -554,11 +554,7 @@ func (ec *executionContext) field_Entity_findTodoByID_argsID( ctx context.Context, 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 } @@ -586,11 +582,7 @@ func (ec *executionContext) field_Mutation_createTodo_argsInput( ctx context.Context, 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 } @@ -618,11 +610,7 @@ func (ec *executionContext) field_Query___type_argsName( ctx context.Context, 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 } @@ -650,11 +638,7 @@ func (ec *executionContext) field_Query__entities_argsRepresentations( ctx context.Context, rawArgs map[string]any, ) ([]map[string]any, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["representations"] - if !ok { + if _, ok := rawArgs["representations"]; !ok { var zeroVal []map[string]any return zeroVal, nil } @@ -682,11 +666,7 @@ func (ec *executionContext) field_Query_node_argsID( ctx context.Context, 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 } @@ -714,11 +694,7 @@ func (ec *executionContext) field_Query_nodes_argsIds( ctx context.Context, 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 } @@ -766,11 +742,7 @@ func (ec *executionContext) field_Query_todos_argsAfter( ctx context.Context, 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 } @@ -788,11 +760,7 @@ func (ec *executionContext) field_Query_todos_argsFirst( ctx context.Context, 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 } @@ -810,11 +778,7 @@ func (ec *executionContext) field_Query_todos_argsBefore( ctx context.Context, 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 } @@ -832,11 +796,7 @@ func (ec *executionContext) field_Query_todos_argsLast( ctx context.Context, 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 } @@ -854,11 +814,7 @@ func (ec *executionContext) field_Query_todos_argsOrderBy( ctx context.Context, 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 } @@ -886,11 +842,7 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, 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 } @@ -918,11 +870,7 @@ func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, 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 } diff --git a/entgql/internal/todogotype/generated.go b/entgql/internal/todogotype/generated.go index dd27c9320..76712c91a 100644 --- a/entgql/internal/todogotype/generated.go +++ b/entgql/internal/todogotype/generated.go @@ -2881,11 +2881,7 @@ func (ec *executionContext) dir_hasPermissions_argsPermissions( ctx context.Context, 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 } @@ -2938,11 +2934,7 @@ func (ec *executionContext) field_Category_subCategories_argsAfter( ctx context.Context, 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 } @@ -2960,11 +2952,7 @@ func (ec *executionContext) field_Category_subCategories_argsFirst( ctx context.Context, 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 } @@ -2982,11 +2970,7 @@ func (ec *executionContext) field_Category_subCategories_argsBefore( ctx context.Context, 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 } @@ -3004,11 +2988,7 @@ func (ec *executionContext) field_Category_subCategories_argsLast( ctx context.Context, 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 } @@ -3026,11 +3006,7 @@ func (ec *executionContext) field_Category_subCategories_argsOrderBy( ctx context.Context, 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 } @@ -3048,11 +3024,7 @@ func (ec *executionContext) field_Category_subCategories_argsWhere( ctx context.Context, 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 } @@ -3105,11 +3077,7 @@ func (ec *executionContext) field_Category_todos_argsAfter( ctx context.Context, 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 } @@ -3127,11 +3095,7 @@ func (ec *executionContext) field_Category_todos_argsFirst( ctx context.Context, 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 } @@ -3149,11 +3113,7 @@ func (ec *executionContext) field_Category_todos_argsBefore( ctx context.Context, 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 } @@ -3171,11 +3131,7 @@ func (ec *executionContext) field_Category_todos_argsLast( ctx context.Context, 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 } @@ -3193,11 +3149,7 @@ func (ec *executionContext) field_Category_todos_argsOrderBy( ctx context.Context, 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 } @@ -3215,11 +3167,7 @@ func (ec *executionContext) field_Category_todos_argsWhere( ctx context.Context, 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 } @@ -3272,11 +3220,7 @@ func (ec *executionContext) field_Group_users_argsAfter( ctx context.Context, 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 } @@ -3294,11 +3238,7 @@ func (ec *executionContext) field_Group_users_argsFirst( ctx context.Context, 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 } @@ -3316,11 +3256,7 @@ func (ec *executionContext) field_Group_users_argsBefore( ctx context.Context, 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 } @@ -3338,11 +3274,7 @@ func (ec *executionContext) field_Group_users_argsLast( ctx context.Context, 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 } @@ -3360,11 +3292,7 @@ func (ec *executionContext) field_Group_users_argsOrderBy( ctx context.Context, 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 } @@ -3382,11 +3310,7 @@ func (ec *executionContext) field_Group_users_argsWhere( ctx context.Context, 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 } @@ -3414,11 +3338,7 @@ func (ec *executionContext) field_Mutation_createCategory_argsInput( ctx context.Context, 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 } @@ -3446,11 +3366,7 @@ func (ec *executionContext) field_Mutation_createTodo_argsInput( ctx context.Context, 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 } @@ -3483,11 +3399,7 @@ func (ec *executionContext) field_Mutation_updateFriendship_argsID( ctx context.Context, 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 } @@ -3505,11 +3417,7 @@ func (ec *executionContext) field_Mutation_updateFriendship_argsInput( ctx context.Context, 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 } @@ -3542,11 +3450,7 @@ func (ec *executionContext) field_Mutation_updateTodo_argsID( ctx context.Context, 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 } @@ -3564,11 +3468,7 @@ func (ec *executionContext) field_Mutation_updateTodo_argsInput( ctx context.Context, 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 } @@ -3621,11 +3521,7 @@ func (ec *executionContext) field_Project_todos_argsAfter( ctx context.Context, 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 } @@ -3643,11 +3539,7 @@ func (ec *executionContext) field_Project_todos_argsFirst( ctx context.Context, 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 } @@ -3665,11 +3557,7 @@ func (ec *executionContext) field_Project_todos_argsBefore( ctx context.Context, 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 } @@ -3687,11 +3575,7 @@ func (ec *executionContext) field_Project_todos_argsLast( ctx context.Context, 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 } @@ -3709,11 +3593,7 @@ func (ec *executionContext) field_Project_todos_argsOrderBy( ctx context.Context, 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 } @@ -3731,11 +3611,7 @@ func (ec *executionContext) field_Project_todos_argsWhere( ctx context.Context, 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 } @@ -3763,11 +3639,7 @@ func (ec *executionContext) field_Query___type_argsName( ctx context.Context, 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 } @@ -3820,11 +3692,7 @@ func (ec *executionContext) field_Query_categories_argsAfter( ctx context.Context, 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 } @@ -3842,11 +3710,7 @@ func (ec *executionContext) field_Query_categories_argsFirst( ctx context.Context, 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 } @@ -3864,11 +3728,7 @@ func (ec *executionContext) field_Query_categories_argsBefore( ctx context.Context, 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 } @@ -3886,11 +3746,7 @@ func (ec *executionContext) field_Query_categories_argsLast( ctx context.Context, 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 } @@ -3908,11 +3764,7 @@ func (ec *executionContext) field_Query_categories_argsOrderBy( ctx context.Context, 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 } @@ -3930,11 +3782,7 @@ func (ec *executionContext) field_Query_categories_argsWhere( ctx context.Context, 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 } @@ -3982,11 +3830,7 @@ func (ec *executionContext) field_Query_groups_argsAfter( ctx context.Context, 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 } @@ -4004,11 +3848,7 @@ func (ec *executionContext) field_Query_groups_argsFirst( ctx context.Context, 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 } @@ -4026,11 +3866,7 @@ func (ec *executionContext) field_Query_groups_argsBefore( ctx context.Context, 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 } @@ -4048,11 +3884,7 @@ func (ec *executionContext) field_Query_groups_argsLast( ctx context.Context, 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 } @@ -4070,11 +3902,7 @@ func (ec *executionContext) field_Query_groups_argsWhere( ctx context.Context, 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 } @@ -4102,11 +3930,7 @@ func (ec *executionContext) field_Query_node_argsID( ctx context.Context, 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 } @@ -4134,11 +3958,7 @@ func (ec *executionContext) field_Query_nodes_argsIds( ctx context.Context, 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 } @@ -4191,11 +4011,7 @@ func (ec *executionContext) field_Query_oneToMany_argsAfter( ctx context.Context, 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 } @@ -4213,11 +4029,7 @@ func (ec *executionContext) field_Query_oneToMany_argsFirst( ctx context.Context, 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 } @@ -4235,11 +4047,7 @@ func (ec *executionContext) field_Query_oneToMany_argsBefore( ctx context.Context, 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 } @@ -4257,11 +4065,7 @@ func (ec *executionContext) field_Query_oneToMany_argsLast( ctx context.Context, 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 } @@ -4279,11 +4083,7 @@ func (ec *executionContext) field_Query_oneToMany_argsOrderBy( ctx context.Context, 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 } @@ -4301,11 +4101,7 @@ func (ec *executionContext) field_Query_oneToMany_argsWhere( ctx context.Context, 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 } @@ -4358,11 +4154,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsAfter( ctx context.Context, 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 } @@ -4380,11 +4172,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsFirst( ctx context.Context, 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 } @@ -4402,11 +4190,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsBefore( ctx context.Context, 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 } @@ -4424,11 +4208,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsLast( ctx context.Context, 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 } @@ -4446,11 +4226,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsOrderBy( ctx context.Context, 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 } @@ -4468,11 +4244,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsWhere( ctx context.Context, 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 } @@ -4525,11 +4297,7 @@ func (ec *executionContext) field_Query_todos_argsAfter( ctx context.Context, 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 } @@ -4547,11 +4315,7 @@ func (ec *executionContext) field_Query_todos_argsFirst( ctx context.Context, 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 } @@ -4569,11 +4333,7 @@ func (ec *executionContext) field_Query_todos_argsBefore( ctx context.Context, 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 } @@ -4591,11 +4351,7 @@ func (ec *executionContext) field_Query_todos_argsLast( ctx context.Context, 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 } @@ -4613,11 +4369,7 @@ func (ec *executionContext) field_Query_todos_argsOrderBy( ctx context.Context, 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 } @@ -4635,11 +4387,7 @@ func (ec *executionContext) field_Query_todos_argsWhere( ctx context.Context, 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 } @@ -4692,11 +4440,7 @@ func (ec *executionContext) field_Query_users_argsAfter( ctx context.Context, 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 } @@ -4714,11 +4458,7 @@ func (ec *executionContext) field_Query_users_argsFirst( ctx context.Context, 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 } @@ -4736,11 +4476,7 @@ func (ec *executionContext) field_Query_users_argsBefore( ctx context.Context, 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 } @@ -4758,11 +4494,7 @@ func (ec *executionContext) field_Query_users_argsLast( ctx context.Context, 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 } @@ -4780,11 +4512,7 @@ func (ec *executionContext) field_Query_users_argsOrderBy( ctx context.Context, 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 } @@ -4802,11 +4530,7 @@ func (ec *executionContext) field_Query_users_argsWhere( ctx context.Context, 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 } @@ -4859,11 +4583,7 @@ func (ec *executionContext) field_Todo_children_argsAfter( ctx context.Context, 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 } @@ -4881,11 +4601,7 @@ func (ec *executionContext) field_Todo_children_argsFirst( ctx context.Context, 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 } @@ -4903,11 +4619,7 @@ func (ec *executionContext) field_Todo_children_argsBefore( ctx context.Context, 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 } @@ -4925,11 +4637,7 @@ func (ec *executionContext) field_Todo_children_argsLast( ctx context.Context, 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 } @@ -4947,11 +4655,7 @@ func (ec *executionContext) field_Todo_children_argsOrderBy( ctx context.Context, 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 } @@ -4969,11 +4673,7 @@ func (ec *executionContext) field_Todo_children_argsWhere( ctx context.Context, 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 } @@ -5026,11 +4726,7 @@ func (ec *executionContext) field_User_friends_argsAfter( ctx context.Context, 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 } @@ -5048,11 +4744,7 @@ func (ec *executionContext) field_User_friends_argsFirst( ctx context.Context, 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 } @@ -5070,11 +4762,7 @@ func (ec *executionContext) field_User_friends_argsBefore( ctx context.Context, 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 } @@ -5092,11 +4780,7 @@ func (ec *executionContext) field_User_friends_argsLast( ctx context.Context, 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 } @@ -5114,11 +4798,7 @@ func (ec *executionContext) field_User_friends_argsOrderBy( ctx context.Context, 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 } @@ -5136,11 +4816,7 @@ func (ec *executionContext) field_User_friends_argsWhere( ctx context.Context, 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 } @@ -5188,11 +4864,7 @@ func (ec *executionContext) field_User_friendships_argsAfter( ctx context.Context, 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 } @@ -5210,11 +4882,7 @@ func (ec *executionContext) field_User_friendships_argsFirst( ctx context.Context, 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 } @@ -5232,11 +4900,7 @@ func (ec *executionContext) field_User_friendships_argsBefore( ctx context.Context, 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 } @@ -5254,11 +4918,7 @@ func (ec *executionContext) field_User_friendships_argsLast( ctx context.Context, 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 } @@ -5276,11 +4936,7 @@ func (ec *executionContext) field_User_friendships_argsWhere( ctx context.Context, 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 } @@ -5328,11 +4984,7 @@ func (ec *executionContext) field_User_groups_argsAfter( ctx context.Context, 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 } @@ -5350,11 +5002,7 @@ func (ec *executionContext) field_User_groups_argsFirst( ctx context.Context, 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 } @@ -5372,11 +5020,7 @@ func (ec *executionContext) field_User_groups_argsBefore( ctx context.Context, 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 } @@ -5394,11 +5038,7 @@ func (ec *executionContext) field_User_groups_argsLast( ctx context.Context, 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 } @@ -5416,11 +5056,7 @@ func (ec *executionContext) field_User_groups_argsWhere( ctx context.Context, 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 } @@ -5448,11 +5084,7 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, 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 } @@ -5480,11 +5112,7 @@ func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, 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 } diff --git a/entgql/internal/todopulid/generated.go b/entgql/internal/todopulid/generated.go index c50b20cf8..b11bab937 100644 --- a/entgql/internal/todopulid/generated.go +++ b/entgql/internal/todopulid/generated.go @@ -2887,11 +2887,7 @@ func (ec *executionContext) dir_hasPermissions_argsPermissions( ctx context.Context, 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 } @@ -2944,11 +2940,7 @@ func (ec *executionContext) field_Category_subCategories_argsAfter( ctx context.Context, 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 } @@ -2966,11 +2958,7 @@ func (ec *executionContext) field_Category_subCategories_argsFirst( ctx context.Context, 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 } @@ -2988,11 +2976,7 @@ func (ec *executionContext) field_Category_subCategories_argsBefore( ctx context.Context, 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 } @@ -3010,11 +2994,7 @@ func (ec *executionContext) field_Category_subCategories_argsLast( ctx context.Context, 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 } @@ -3032,11 +3012,7 @@ func (ec *executionContext) field_Category_subCategories_argsOrderBy( ctx context.Context, 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 } @@ -3054,11 +3030,7 @@ func (ec *executionContext) field_Category_subCategories_argsWhere( ctx context.Context, 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 } @@ -3111,11 +3083,7 @@ func (ec *executionContext) field_Category_todos_argsAfter( ctx context.Context, 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 } @@ -3133,11 +3101,7 @@ func (ec *executionContext) field_Category_todos_argsFirst( ctx context.Context, 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 } @@ -3155,11 +3119,7 @@ func (ec *executionContext) field_Category_todos_argsBefore( ctx context.Context, 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 } @@ -3177,11 +3137,7 @@ func (ec *executionContext) field_Category_todos_argsLast( ctx context.Context, 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 } @@ -3199,11 +3155,7 @@ func (ec *executionContext) field_Category_todos_argsOrderBy( ctx context.Context, 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 } @@ -3221,11 +3173,7 @@ func (ec *executionContext) field_Category_todos_argsWhere( ctx context.Context, 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 } @@ -3278,11 +3226,7 @@ func (ec *executionContext) field_Group_users_argsAfter( ctx context.Context, 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 } @@ -3300,11 +3244,7 @@ func (ec *executionContext) field_Group_users_argsFirst( ctx context.Context, 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 } @@ -3322,11 +3262,7 @@ func (ec *executionContext) field_Group_users_argsBefore( ctx context.Context, 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 } @@ -3344,11 +3280,7 @@ func (ec *executionContext) field_Group_users_argsLast( ctx context.Context, 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 } @@ -3366,11 +3298,7 @@ func (ec *executionContext) field_Group_users_argsOrderBy( ctx context.Context, 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 } @@ -3388,11 +3316,7 @@ func (ec *executionContext) field_Group_users_argsWhere( ctx context.Context, 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 } @@ -3420,11 +3344,7 @@ func (ec *executionContext) field_Mutation_createCategory_argsInput( ctx context.Context, 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 } @@ -3452,11 +3372,7 @@ func (ec *executionContext) field_Mutation_createTodo_argsInput( ctx context.Context, 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 } @@ -3489,11 +3405,7 @@ func (ec *executionContext) field_Mutation_updateFriendship_argsID( ctx context.Context, 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 } @@ -3511,11 +3423,7 @@ func (ec *executionContext) field_Mutation_updateFriendship_argsInput( ctx context.Context, 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 } @@ -3548,11 +3456,7 @@ func (ec *executionContext) field_Mutation_updateTodo_argsID( ctx context.Context, 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 } @@ -3570,11 +3474,7 @@ func (ec *executionContext) field_Mutation_updateTodo_argsInput( ctx context.Context, 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 } @@ -3627,11 +3527,7 @@ func (ec *executionContext) field_Project_todos_argsAfter( ctx context.Context, 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 } @@ -3649,11 +3545,7 @@ func (ec *executionContext) field_Project_todos_argsFirst( ctx context.Context, 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 } @@ -3671,11 +3563,7 @@ func (ec *executionContext) field_Project_todos_argsBefore( ctx context.Context, 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 } @@ -3693,11 +3581,7 @@ func (ec *executionContext) field_Project_todos_argsLast( ctx context.Context, 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 } @@ -3715,11 +3599,7 @@ func (ec *executionContext) field_Project_todos_argsOrderBy( ctx context.Context, 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 } @@ -3737,11 +3617,7 @@ func (ec *executionContext) field_Project_todos_argsWhere( ctx context.Context, 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 } @@ -3769,11 +3645,7 @@ func (ec *executionContext) field_Query___type_argsName( ctx context.Context, 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 } @@ -3826,11 +3698,7 @@ func (ec *executionContext) field_Query_categories_argsAfter( ctx context.Context, 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 } @@ -3848,11 +3716,7 @@ func (ec *executionContext) field_Query_categories_argsFirst( ctx context.Context, 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 } @@ -3870,11 +3734,7 @@ func (ec *executionContext) field_Query_categories_argsBefore( ctx context.Context, 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 } @@ -3892,11 +3752,7 @@ func (ec *executionContext) field_Query_categories_argsLast( ctx context.Context, 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 } @@ -3914,11 +3770,7 @@ func (ec *executionContext) field_Query_categories_argsOrderBy( ctx context.Context, 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 } @@ -3936,11 +3788,7 @@ func (ec *executionContext) field_Query_categories_argsWhere( ctx context.Context, 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 } @@ -3988,11 +3836,7 @@ func (ec *executionContext) field_Query_groups_argsAfter( ctx context.Context, 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 } @@ -4010,11 +3854,7 @@ func (ec *executionContext) field_Query_groups_argsFirst( ctx context.Context, 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 } @@ -4032,11 +3872,7 @@ func (ec *executionContext) field_Query_groups_argsBefore( ctx context.Context, 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 } @@ -4054,11 +3890,7 @@ func (ec *executionContext) field_Query_groups_argsLast( ctx context.Context, 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 } @@ -4076,11 +3908,7 @@ func (ec *executionContext) field_Query_groups_argsWhere( ctx context.Context, 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 } @@ -4108,11 +3936,7 @@ func (ec *executionContext) field_Query_node_argsID( ctx context.Context, 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 } @@ -4140,11 +3964,7 @@ func (ec *executionContext) field_Query_nodes_argsIds( ctx context.Context, 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 } @@ -4197,11 +4017,7 @@ func (ec *executionContext) field_Query_oneToMany_argsAfter( ctx context.Context, 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 } @@ -4219,11 +4035,7 @@ func (ec *executionContext) field_Query_oneToMany_argsFirst( ctx context.Context, 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 } @@ -4241,11 +4053,7 @@ func (ec *executionContext) field_Query_oneToMany_argsBefore( ctx context.Context, 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 } @@ -4263,11 +4071,7 @@ func (ec *executionContext) field_Query_oneToMany_argsLast( ctx context.Context, 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 } @@ -4285,11 +4089,7 @@ func (ec *executionContext) field_Query_oneToMany_argsOrderBy( ctx context.Context, 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 } @@ -4307,11 +4107,7 @@ func (ec *executionContext) field_Query_oneToMany_argsWhere( ctx context.Context, 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 } @@ -4364,11 +4160,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsAfter( ctx context.Context, 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 } @@ -4386,11 +4178,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsFirst( ctx context.Context, 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 } @@ -4408,11 +4196,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsBefore( ctx context.Context, 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 } @@ -4430,11 +4214,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsLast( ctx context.Context, 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 } @@ -4452,11 +4232,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsOrderBy( ctx context.Context, 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 } @@ -4474,11 +4250,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsWhere( ctx context.Context, 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 } @@ -4531,11 +4303,7 @@ func (ec *executionContext) field_Query_todos_argsAfter( ctx context.Context, 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 } @@ -4553,11 +4321,7 @@ func (ec *executionContext) field_Query_todos_argsFirst( ctx context.Context, 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 } @@ -4575,11 +4339,7 @@ func (ec *executionContext) field_Query_todos_argsBefore( ctx context.Context, 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 } @@ -4597,11 +4357,7 @@ func (ec *executionContext) field_Query_todos_argsLast( ctx context.Context, 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 } @@ -4619,11 +4375,7 @@ func (ec *executionContext) field_Query_todos_argsOrderBy( ctx context.Context, 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 } @@ -4641,11 +4393,7 @@ func (ec *executionContext) field_Query_todos_argsWhere( ctx context.Context, 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 } @@ -4698,11 +4446,7 @@ func (ec *executionContext) field_Query_users_argsAfter( ctx context.Context, 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 } @@ -4720,11 +4464,7 @@ func (ec *executionContext) field_Query_users_argsFirst( ctx context.Context, 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 } @@ -4742,11 +4482,7 @@ func (ec *executionContext) field_Query_users_argsBefore( ctx context.Context, 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 } @@ -4764,11 +4500,7 @@ func (ec *executionContext) field_Query_users_argsLast( ctx context.Context, 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 } @@ -4786,11 +4518,7 @@ func (ec *executionContext) field_Query_users_argsOrderBy( ctx context.Context, 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 } @@ -4808,11 +4536,7 @@ func (ec *executionContext) field_Query_users_argsWhere( ctx context.Context, 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 } @@ -4865,11 +4589,7 @@ func (ec *executionContext) field_Todo_children_argsAfter( ctx context.Context, 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 } @@ -4887,11 +4607,7 @@ func (ec *executionContext) field_Todo_children_argsFirst( ctx context.Context, 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 } @@ -4909,11 +4625,7 @@ func (ec *executionContext) field_Todo_children_argsBefore( ctx context.Context, 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 } @@ -4931,11 +4643,7 @@ func (ec *executionContext) field_Todo_children_argsLast( ctx context.Context, 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 } @@ -4953,11 +4661,7 @@ func (ec *executionContext) field_Todo_children_argsOrderBy( ctx context.Context, 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 } @@ -4975,11 +4679,7 @@ func (ec *executionContext) field_Todo_children_argsWhere( ctx context.Context, 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 } @@ -5032,11 +4732,7 @@ func (ec *executionContext) field_User_friends_argsAfter( ctx context.Context, 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 } @@ -5054,11 +4750,7 @@ func (ec *executionContext) field_User_friends_argsFirst( ctx context.Context, 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 } @@ -5076,11 +4768,7 @@ func (ec *executionContext) field_User_friends_argsBefore( ctx context.Context, 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 } @@ -5098,11 +4786,7 @@ func (ec *executionContext) field_User_friends_argsLast( ctx context.Context, 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 } @@ -5120,11 +4804,7 @@ func (ec *executionContext) field_User_friends_argsOrderBy( ctx context.Context, 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 } @@ -5142,11 +4822,7 @@ func (ec *executionContext) field_User_friends_argsWhere( ctx context.Context, 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 } @@ -5194,11 +4870,7 @@ func (ec *executionContext) field_User_friendships_argsAfter( ctx context.Context, 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 } @@ -5216,11 +4888,7 @@ func (ec *executionContext) field_User_friendships_argsFirst( ctx context.Context, 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 } @@ -5238,11 +4906,7 @@ func (ec *executionContext) field_User_friendships_argsBefore( ctx context.Context, 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 } @@ -5260,11 +4924,7 @@ func (ec *executionContext) field_User_friendships_argsLast( ctx context.Context, 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 } @@ -5282,11 +4942,7 @@ func (ec *executionContext) field_User_friendships_argsWhere( ctx context.Context, 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 } @@ -5334,11 +4990,7 @@ func (ec *executionContext) field_User_groups_argsAfter( ctx context.Context, 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 } @@ -5356,11 +5008,7 @@ func (ec *executionContext) field_User_groups_argsFirst( ctx context.Context, 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 } @@ -5378,11 +5026,7 @@ func (ec *executionContext) field_User_groups_argsBefore( ctx context.Context, 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 } @@ -5400,11 +5044,7 @@ func (ec *executionContext) field_User_groups_argsLast( ctx context.Context, 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 } @@ -5422,11 +5062,7 @@ func (ec *executionContext) field_User_groups_argsWhere( ctx context.Context, 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 } @@ -5454,11 +5090,7 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, 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 } @@ -5486,11 +5118,7 @@ func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, 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 } diff --git a/entgql/internal/todouuid/generated.go b/entgql/internal/todouuid/generated.go index da167868e..e4dce2f05 100644 --- a/entgql/internal/todouuid/generated.go +++ b/entgql/internal/todouuid/generated.go @@ -2888,11 +2888,7 @@ func (ec *executionContext) dir_hasPermissions_argsPermissions( ctx context.Context, 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 } @@ -2945,11 +2941,7 @@ func (ec *executionContext) field_Category_subCategories_argsAfter( ctx context.Context, 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 } @@ -2967,11 +2959,7 @@ func (ec *executionContext) field_Category_subCategories_argsFirst( ctx context.Context, 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 } @@ -2989,11 +2977,7 @@ func (ec *executionContext) field_Category_subCategories_argsBefore( ctx context.Context, 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 } @@ -3011,11 +2995,7 @@ func (ec *executionContext) field_Category_subCategories_argsLast( ctx context.Context, 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 } @@ -3033,11 +3013,7 @@ func (ec *executionContext) field_Category_subCategories_argsOrderBy( ctx context.Context, 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 } @@ -3055,11 +3031,7 @@ func (ec *executionContext) field_Category_subCategories_argsWhere( ctx context.Context, 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 } @@ -3112,11 +3084,7 @@ func (ec *executionContext) field_Category_todos_argsAfter( ctx context.Context, 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 } @@ -3134,11 +3102,7 @@ func (ec *executionContext) field_Category_todos_argsFirst( ctx context.Context, 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 } @@ -3156,11 +3120,7 @@ func (ec *executionContext) field_Category_todos_argsBefore( ctx context.Context, 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 } @@ -3178,11 +3138,7 @@ func (ec *executionContext) field_Category_todos_argsLast( ctx context.Context, 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 } @@ -3200,11 +3156,7 @@ func (ec *executionContext) field_Category_todos_argsOrderBy( ctx context.Context, 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 } @@ -3222,11 +3174,7 @@ func (ec *executionContext) field_Category_todos_argsWhere( ctx context.Context, 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 } @@ -3279,11 +3227,7 @@ func (ec *executionContext) field_Group_users_argsAfter( ctx context.Context, 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 } @@ -3301,11 +3245,7 @@ func (ec *executionContext) field_Group_users_argsFirst( ctx context.Context, 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 } @@ -3323,11 +3263,7 @@ func (ec *executionContext) field_Group_users_argsBefore( ctx context.Context, 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 } @@ -3345,11 +3281,7 @@ func (ec *executionContext) field_Group_users_argsLast( ctx context.Context, 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 } @@ -3367,11 +3299,7 @@ func (ec *executionContext) field_Group_users_argsOrderBy( ctx context.Context, 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 } @@ -3389,11 +3317,7 @@ func (ec *executionContext) field_Group_users_argsWhere( ctx context.Context, 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 } @@ -3421,11 +3345,7 @@ func (ec *executionContext) field_Mutation_createCategory_argsInput( ctx context.Context, 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 } @@ -3453,11 +3373,7 @@ func (ec *executionContext) field_Mutation_createTodo_argsInput( ctx context.Context, 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 } @@ -3490,11 +3406,7 @@ func (ec *executionContext) field_Mutation_updateFriendship_argsID( ctx context.Context, 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 } @@ -3512,11 +3424,7 @@ func (ec *executionContext) field_Mutation_updateFriendship_argsInput( ctx context.Context, 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 } @@ -3549,11 +3457,7 @@ func (ec *executionContext) field_Mutation_updateTodo_argsID( ctx context.Context, 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 } @@ -3571,11 +3475,7 @@ func (ec *executionContext) field_Mutation_updateTodo_argsInput( ctx context.Context, 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 } @@ -3628,11 +3528,7 @@ func (ec *executionContext) field_Project_todos_argsAfter( ctx context.Context, 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 } @@ -3650,11 +3546,7 @@ func (ec *executionContext) field_Project_todos_argsFirst( ctx context.Context, 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 } @@ -3672,11 +3564,7 @@ func (ec *executionContext) field_Project_todos_argsBefore( ctx context.Context, 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 } @@ -3694,11 +3582,7 @@ func (ec *executionContext) field_Project_todos_argsLast( ctx context.Context, 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 } @@ -3716,11 +3600,7 @@ func (ec *executionContext) field_Project_todos_argsOrderBy( ctx context.Context, 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 } @@ -3738,11 +3618,7 @@ func (ec *executionContext) field_Project_todos_argsWhere( ctx context.Context, 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 } @@ -3770,11 +3646,7 @@ func (ec *executionContext) field_Query___type_argsName( ctx context.Context, 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 } @@ -3827,11 +3699,7 @@ func (ec *executionContext) field_Query_categories_argsAfter( ctx context.Context, 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 } @@ -3849,11 +3717,7 @@ func (ec *executionContext) field_Query_categories_argsFirst( ctx context.Context, 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 } @@ -3871,11 +3735,7 @@ func (ec *executionContext) field_Query_categories_argsBefore( ctx context.Context, 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 } @@ -3893,11 +3753,7 @@ func (ec *executionContext) field_Query_categories_argsLast( ctx context.Context, 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 } @@ -3915,11 +3771,7 @@ func (ec *executionContext) field_Query_categories_argsOrderBy( ctx context.Context, 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 } @@ -3937,11 +3789,7 @@ func (ec *executionContext) field_Query_categories_argsWhere( ctx context.Context, 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 } @@ -3989,11 +3837,7 @@ func (ec *executionContext) field_Query_groups_argsAfter( ctx context.Context, 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 } @@ -4011,11 +3855,7 @@ func (ec *executionContext) field_Query_groups_argsFirst( ctx context.Context, 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 } @@ -4033,11 +3873,7 @@ func (ec *executionContext) field_Query_groups_argsBefore( ctx context.Context, 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 } @@ -4055,11 +3891,7 @@ func (ec *executionContext) field_Query_groups_argsLast( ctx context.Context, 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 } @@ -4077,11 +3909,7 @@ func (ec *executionContext) field_Query_groups_argsWhere( ctx context.Context, 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 } @@ -4109,11 +3937,7 @@ func (ec *executionContext) field_Query_node_argsID( ctx context.Context, 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 } @@ -4141,11 +3965,7 @@ func (ec *executionContext) field_Query_nodes_argsIds( ctx context.Context, 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 } @@ -4198,11 +4018,7 @@ func (ec *executionContext) field_Query_oneToMany_argsAfter( ctx context.Context, 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 } @@ -4220,11 +4036,7 @@ func (ec *executionContext) field_Query_oneToMany_argsFirst( ctx context.Context, 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 } @@ -4242,11 +4054,7 @@ func (ec *executionContext) field_Query_oneToMany_argsBefore( ctx context.Context, 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 } @@ -4264,11 +4072,7 @@ func (ec *executionContext) field_Query_oneToMany_argsLast( ctx context.Context, 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 } @@ -4286,11 +4090,7 @@ func (ec *executionContext) field_Query_oneToMany_argsOrderBy( ctx context.Context, 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 } @@ -4308,11 +4108,7 @@ func (ec *executionContext) field_Query_oneToMany_argsWhere( ctx context.Context, 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 } @@ -4365,11 +4161,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsAfter( ctx context.Context, 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 } @@ -4387,11 +4179,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsFirst( ctx context.Context, 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 } @@ -4409,11 +4197,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsBefore( ctx context.Context, 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 } @@ -4431,11 +4215,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsLast( ctx context.Context, 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 } @@ -4453,11 +4233,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsOrderBy( ctx context.Context, 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 } @@ -4475,11 +4251,7 @@ func (ec *executionContext) field_Query_todosWithJoins_argsWhere( ctx context.Context, 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 } @@ -4532,11 +4304,7 @@ func (ec *executionContext) field_Query_todos_argsAfter( ctx context.Context, 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 } @@ -4554,11 +4322,7 @@ func (ec *executionContext) field_Query_todos_argsFirst( ctx context.Context, 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 } @@ -4576,11 +4340,7 @@ func (ec *executionContext) field_Query_todos_argsBefore( ctx context.Context, 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 } @@ -4598,11 +4358,7 @@ func (ec *executionContext) field_Query_todos_argsLast( ctx context.Context, 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 } @@ -4620,11 +4376,7 @@ func (ec *executionContext) field_Query_todos_argsOrderBy( ctx context.Context, 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 } @@ -4642,11 +4394,7 @@ func (ec *executionContext) field_Query_todos_argsWhere( ctx context.Context, 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 } @@ -4699,11 +4447,7 @@ func (ec *executionContext) field_Query_users_argsAfter( ctx context.Context, 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 } @@ -4721,11 +4465,7 @@ func (ec *executionContext) field_Query_users_argsFirst( ctx context.Context, 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 } @@ -4743,11 +4483,7 @@ func (ec *executionContext) field_Query_users_argsBefore( ctx context.Context, 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 } @@ -4765,11 +4501,7 @@ func (ec *executionContext) field_Query_users_argsLast( ctx context.Context, 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 } @@ -4787,11 +4519,7 @@ func (ec *executionContext) field_Query_users_argsOrderBy( ctx context.Context, 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 } @@ -4809,11 +4537,7 @@ func (ec *executionContext) field_Query_users_argsWhere( ctx context.Context, 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 } @@ -4866,11 +4590,7 @@ func (ec *executionContext) field_Todo_children_argsAfter( ctx context.Context, 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 } @@ -4888,11 +4608,7 @@ func (ec *executionContext) field_Todo_children_argsFirst( ctx context.Context, 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 } @@ -4910,11 +4626,7 @@ func (ec *executionContext) field_Todo_children_argsBefore( ctx context.Context, 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 } @@ -4932,11 +4644,7 @@ func (ec *executionContext) field_Todo_children_argsLast( ctx context.Context, 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 } @@ -4954,11 +4662,7 @@ func (ec *executionContext) field_Todo_children_argsOrderBy( ctx context.Context, 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 } @@ -4976,11 +4680,7 @@ func (ec *executionContext) field_Todo_children_argsWhere( ctx context.Context, 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 } @@ -5033,11 +4733,7 @@ func (ec *executionContext) field_User_friends_argsAfter( ctx context.Context, 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 } @@ -5055,11 +4751,7 @@ func (ec *executionContext) field_User_friends_argsFirst( ctx context.Context, 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 } @@ -5077,11 +4769,7 @@ func (ec *executionContext) field_User_friends_argsBefore( ctx context.Context, 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 } @@ -5099,11 +4787,7 @@ func (ec *executionContext) field_User_friends_argsLast( ctx context.Context, 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 } @@ -5121,11 +4805,7 @@ func (ec *executionContext) field_User_friends_argsOrderBy( ctx context.Context, 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 } @@ -5143,11 +4823,7 @@ func (ec *executionContext) field_User_friends_argsWhere( ctx context.Context, 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 } @@ -5195,11 +4871,7 @@ func (ec *executionContext) field_User_friendships_argsAfter( ctx context.Context, 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 } @@ -5217,11 +4889,7 @@ func (ec *executionContext) field_User_friendships_argsFirst( ctx context.Context, 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 } @@ -5239,11 +4907,7 @@ func (ec *executionContext) field_User_friendships_argsBefore( ctx context.Context, 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 } @@ -5261,11 +4925,7 @@ func (ec *executionContext) field_User_friendships_argsLast( ctx context.Context, 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 } @@ -5283,11 +4943,7 @@ func (ec *executionContext) field_User_friendships_argsWhere( ctx context.Context, 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 } @@ -5335,11 +4991,7 @@ func (ec *executionContext) field_User_groups_argsAfter( ctx context.Context, 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 } @@ -5357,11 +5009,7 @@ func (ec *executionContext) field_User_groups_argsFirst( ctx context.Context, 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 } @@ -5379,11 +5027,7 @@ func (ec *executionContext) field_User_groups_argsBefore( ctx context.Context, 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 } @@ -5401,11 +5045,7 @@ func (ec *executionContext) field_User_groups_argsLast( ctx context.Context, 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 } @@ -5423,11 +5063,7 @@ func (ec *executionContext) field_User_groups_argsWhere( ctx context.Context, 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 } @@ -5455,11 +5091,7 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( ctx context.Context, 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 } @@ -5487,11 +5119,7 @@ func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( ctx context.Context, 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 } diff --git a/go.mod b/go.mod index ec718c3b9..0b0c9c6c4 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.23.4 require ( entgo.io/ent v0.13.2-0.20240717044502-34158f2c129b - github.com/99designs/gqlgen v0.17.61 // 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 @@ -25,7 +25,7 @@ require ( 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 diff --git a/go.sum b/go.sum index 3fde260ed..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.61 h1:vE7xLRC066n9wehgjeplILOWtwz75zbzcV2/Iv9i3pw= -github.com/99designs/gqlgen v0.17.61/go.mod h1:rFU1T3lhv/tPeAlww/DJ4ol2YxT/pPpue+xxPbkd3r4= +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= @@ -253,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=