Versions in this module Expand all Collapse all v0 v0.0.2 Nov 9, 2022 Changes in this version + var ErrTypeNotFound = errors.New("type not found") + var ErrUnknownType = errors.New("unknown type") + func NewExecutableSchema(cfg Config) graphql.ExecutableSchema + func NewSchema(client *ent.Client) graphql.ExecutableSchema + type ComplexityRoot struct + Category struct{ ... } + CategoryConfig struct{ ... } + Entity struct{ ... } + Mutation struct{ ... } + PageInfo struct{ ... } + Query struct{ ... } + Todo struct{ ... } + TodoConnection struct{ ... } + TodoEdge struct{ ... } + type Config struct + Complexity ComplexityRoot + Directives DirectiveRoot + Resolvers ResolverRoot + type DirectiveRoot struct + type EntityResolver interface + FindTodoByID func(ctx context.Context, id int) (*ent.Todo, error) + type MutationResolver interface + ClearTodos func(ctx context.Context) (int, error) + CreateTodo func(ctx context.Context, input TodoInput) (*ent.Todo, error) + type QueryResolver interface + Node func(ctx context.Context, id int) (ent.Noder, error) + Nodes func(ctx context.Context, ids []int) ([]ent.Noder, error) + Todos func(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, ...) (*ent.TodoConnection, error) + type Resolver struct + func (r *Resolver) Entity() EntityResolver + func (r *Resolver) Mutation() MutationResolver + func (r *Resolver) Query() QueryResolver + type ResolverRoot interface + Entity func() EntityResolver + Mutation func() MutationResolver + Query func() QueryResolver + type TodoInput struct + CategoryID *int + Parent *int + Priority *int + Status todo.Status + Text string