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 { BacklogItem struct { ID func(childComplexity int) int StoryPoint func(childComplexity int) int Summary func(childComplexity int) int Type func(childComplexity int) int } Mutation struct { CreateBacklog func(childComplexity int, input model.NewBacklogItem) int } Query struct { BacklogItems 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 {
CreateBacklog(ctx context.Context, input model.NewBacklogItem) (*model.BacklogItem, error)
}
type QueryResolver ¶
type QueryResolver interface {
BacklogItems(ctx context.Context) ([]*model.BacklogItem, error)
}
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.