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 { PageInfo struct { Next func(childComplexity int) int Page func(childComplexity int) int PerPage func(childComplexity int) int Prev func(childComplexity int) int Total func(childComplexity int) int TotalPage func(childComplexity int) int } Query struct { } TagValue struct { Value func(childComplexity int) int } TagValues struct { Key func(childComplexity int) int Values func(childComplexity int) int } ValueOutput struct { Value func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { Validation func(ctx context.Context, obj interface{}, next graphql.Resolver, constraint string) (res interface{}, err error) Warden func(ctx context.Context, obj interface{}, next graphql.Resolver, resource string, action string, resourceKey *string, filterField *string) (res interface{}, err error) }
type ResolverRoot ¶
type ResolverRoot interface { }
Click to show internal directories.
Click to hide internal directories.