Versions in this module Expand all Collapse all v0 v0.0.2 Apr 13, 2023 v0.0.1 Apr 13, 2023 Changes in this version + func NewExecutableSchema(cfg Config) graphql.ExecutableSchema + func NewSchema(client *ent.Client) graphql.ExecutableSchema + type ComplexityRoot struct + BillProduct struct{ ... } + Category struct{ ... } + CategoryConfig struct{ ... } + CategoryConnection struct{ ... } + CategoryEdge struct{ ... } + Custom struct{ ... } + Friendship struct{ ... } + FriendshipConnection struct{ ... } + FriendshipEdge struct{ ... } + Group struct{ ... } + GroupConnection struct{ ... } + GroupEdge struct{ ... } + Mutation struct{ ... } + PageInfo struct{ ... } + Query struct{ ... } + Todo struct{ ... } + TodoConnection struct{ ... } + TodoEdge struct{ ... } + User struct{ ... } + UserConnection struct{ ... } + UserEdge struct{ ... } + type Config struct + Complexity ComplexityRoot + Directives DirectiveRoot + Resolvers ResolverRoot + type CreateCategoryInputResolver interface + CreateTodos func(ctx context.Context, obj *ent.CreateCategoryInput, data []*ent.CreateTodoInput) error + type CreateTodoInputResolver interface + Status func(ctx context.Context, obj *ent.CreateTodoInput, data todo.Status) error + type CreateUserInputResolver interface + Username func(ctx context.Context, obj *ent.CreateUserInput, data *string) error + type DirectiveRoot struct + HasPermissions func(ctx context.Context, obj interface{}, next graphql.Resolver, ...) (res interface{}, err error) + type MutationResolver interface + ClearTodos func(ctx context.Context) (int, error) + CreateCategory func(ctx context.Context, input ent.CreateCategoryInput) (*ent.Category, error) + CreateTodo func(ctx context.Context, input ent.CreateTodoInput) (*ent.Todo, error) + UpdateFriendship func(ctx context.Context, id uuid.UUID, input UpdateFriendshipInput) (*ent.Friendship, error) + UpdateTodo func(ctx context.Context, id uuid.UUID, input ent.UpdateTodoInput) (*ent.Todo, error) + type QueryResolver interface + BillProducts func(ctx context.Context) ([]*ent.BillProduct, error) + Categories func(ctx context.Context, after *entgql.Cursor[uuid.UUID], first *int, ...) (*ent.CategoryConnection, error) + Groups func(ctx context.Context, after *entgql.Cursor[uuid.UUID], first *int, ...) (*ent.GroupConnection, error) + Node func(ctx context.Context, id uuid.UUID) (ent.Noder, error) + Nodes func(ctx context.Context, ids []uuid.UUID) ([]ent.Noder, error) + Ping func(ctx context.Context) (string, error) + Todos func(ctx context.Context, after *entgql.Cursor[uuid.UUID], first *int, ...) (*ent.TodoConnection, error) + Users func(ctx context.Context, after *entgql.Cursor[uuid.UUID], first *int, ...) (*ent.UserConnection, error) + type Resolver struct + func (r *Resolver) CreateCategoryInput() CreateCategoryInputResolver + func (r *Resolver) CreateTodoInput() CreateTodoInputResolver + func (r *Resolver) CreateUserInput() CreateUserInputResolver + func (r *Resolver) Mutation() MutationResolver + func (r *Resolver) Query() QueryResolver + func (r *Resolver) Todo() TodoResolver + func (r *Resolver) TodoWhereInput() TodoWhereInputResolver + func (r *Resolver) UpdateTodoInput() UpdateTodoInputResolver + func (r *Resolver) UpdateUserInput() UpdateUserInputResolver + func (r *Resolver) User() UserResolver + func (r *Resolver) UserWhereInput() UserWhereInputResolver + type ResolverRoot interface + CreateCategoryInput func() CreateCategoryInputResolver + CreateTodoInput func() CreateTodoInputResolver + CreateUserInput func() CreateUserInputResolver + Mutation func() MutationResolver + Query func() QueryResolver + Todo func() TodoResolver + TodoWhereInput func() TodoWhereInputResolver + UpdateTodoInput func() UpdateTodoInputResolver + UpdateUserInput func() UpdateUserInputResolver + User func() UserResolver + UserWhereInput func() UserWhereInputResolver + type TodoResolver interface + Status func(ctx context.Context, obj *ent.Todo) (todo.Status, error) + type TodoWhereInputResolver interface + CreatedToday func(ctx context.Context, obj *ent.TodoWhereInput, data *bool) error + Status func(ctx context.Context, obj *ent.TodoWhereInput, data *todo.Status) error + StatusIn func(ctx context.Context, obj *ent.TodoWhereInput, data []todo.Status) error + StatusNeq func(ctx context.Context, obj *ent.TodoWhereInput, data *todo.Status) error + StatusNotIn func(ctx context.Context, obj *ent.TodoWhereInput, data []todo.Status) error + type UpdateFriendshipInput struct + CreatedAt *time.Time + FriendID *uuid.UUID + UserID *uuid.UUID + type UpdateTodoInputResolver interface + Status func(ctx context.Context, obj *ent.UpdateTodoInput, data *todo.Status) error + type UpdateUserInputResolver interface + Username func(ctx context.Context, obj *ent.UpdateUserInput, data *string) error + type UserResolver interface + Friends func(ctx context.Context, obj *ent.User, after *entgql.Cursor[uuid.UUID], ...) (*ent.UserConnection, error) + Friendships func(ctx context.Context, obj *ent.User, after *entgql.Cursor[uuid.UUID], ...) (*ent.FriendshipConnection, error) + Username func(ctx context.Context, obj *ent.User) (string, error) + type UserWhereInputResolver interface + Username func(ctx context.Context, obj *ent.UserWhereInput, data *string) error + UsernameGt func(ctx context.Context, obj *ent.UserWhereInput, data *string) error + UsernameGte func(ctx context.Context, obj *ent.UserWhereInput, data *string) error + UsernameIn func(ctx context.Context, obj *ent.UserWhereInput, data []string) error + UsernameLt func(ctx context.Context, obj *ent.UserWhereInput, data *string) error + UsernameLte func(ctx context.Context, obj *ent.UserWhereInput, data *string) error + UsernameNeq func(ctx context.Context, obj *ent.UserWhereInput, data *string) error + UsernameNotIn func(ctx context.Context, obj *ent.UserWhereInput, data []string) error