Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot }
type DirectiveRoot ¶
type MutationResolver ¶
type MutationResolver resolvers
func (*MutationResolver) CreateTodo ¶
func (*MutationResolver) UpdateTodo ¶
type MyMutationResolver ¶
type MyQueryResolver ¶
type QueryResolver ¶
type QueryResolver resolvers
func (*QueryResolver) AuthenticatedTodo ¶
func (*QueryResolver) LastTodo ¶
func (r *QueryResolver) LastTodo(ctx context.Context) (*Todo, error)
type ResolverRoot ¶
type ResolverRoot interface { MyMutation() MyMutationResolver MyQuery() MyQueryResolver }
Click to show internal directories.
Click to hide internal directories.