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 ComplexityRoot ¶
type ComplexityRoot struct { Mutation struct { PurgeAll func(childComplexity int) int PurgeOperation func(childComplexity int, name string) int PurgeQueryRootField func(childComplexity int, field string) int PurgeType func(childComplexity int, typeArg string) int PurgeTypeKey func(childComplexity int, typeArg string, field string, key string) int } Query struct { Dummy func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { PurgeAll(ctx context.Context) (bool, error) PurgeOperation(ctx context.Context, name string) (bool, error) PurgeTypeKey(ctx context.Context, typeArg string, field string, key string) (bool, error) PurgeQueryRootField(ctx context.Context, field string) (bool, error) PurgeType(ctx context.Context, typeArg string) (bool, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.