Versions in this module Expand all Collapse all v0 v0.4.4 Aug 21, 2018 Changes in this version + func NewExecutableSchema(cfg Config) graphql.ExecutableSchema + type Config struct + 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 + func UnmarshalNewTodo(v interface{}) (NewTodo, error) + 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