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 { Eval struct { Result func(childComplexity int) int Snippet func(childComplexity int) int Time func(childComplexity int) int } Mutation struct { EvaluateSnippet func(childComplexity int, input model.EvalInput) int } Query struct { } Subscription struct { GetEvaluatedSnippets func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Subscription() SubscriptionResolver }
Click to show internal directories.
Click to hide internal directories.