Versions in this module Expand all Collapse all v0 v0.1.0 Oct 20, 2024 Changes in this version + func NewExecutableSchema(cfg Config) graphql.ExecutableSchema + type ComplexityRoot struct + Mutation struct{ ... } + Query struct{ ... } + Todo struct{ ... } + User struct{ ... } + type Config struct + Complexity ComplexityRoot + Directives DirectiveRoot + Resolvers ResolverRoot + func New() Config + type DirectiveRoot struct + type MutationResolver interface + CreateTodo func(ctx context.Context, input NewTodo) (*Todo, error) + type NewTodo struct + Text string + UserID string + type QueryResolver interface + Todos func(ctx context.Context) ([]*Todo, error) + type Resolver struct + func (r *Resolver) Mutation() MutationResolver + func (r *Resolver) Query() QueryResolver + func (r *Resolver) Todo() TodoResolver + type ResolverRoot interface + Mutation func() MutationResolver + Query func() QueryResolver + Todo func() TodoResolver + type Todo struct + DatabaseID int + Description string + Done bool + ID string + User *User + type TodoResolver interface + ID func(ctx context.Context, obj *Todo) (string, error) + type User struct + FirstName string + ID string + LastName string + func (user *User) FullName() string