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 App ¶
func (*App) Book ¶
func (a *App) Book() BookResolver
func (*App) Chapter ¶
func (a *App) Chapter() ChapterResolver
func (*App) Mutation ¶
func (a *App) Mutation() MutationResolver
func (*App) Query ¶
func (a *App) Query() QueryResolver
type BookResolver ¶
type ChapterResolver ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Book struct { Authors func(childComplexity int) int Chapters func(childComplexity int) int ISBN func(childComplexity int) int ImageURLTemplate func(childComplexity int) int Slug func(childComplexity int) int Title func(childComplexity int) int URL func(childComplexity int) int } Chapter struct { FirstPage func(childComplexity int) int ID func(childComplexity int) int LastPage func(childComplexity int) int Number func(childComplexity int) int Pages func(childComplexity int) int Subtitle func(childComplexity int) int Title func(childComplexity int) int } Mutation struct { CreateBook func(childComplexity int, slug string, book BookInput) int UpdateBook func(childComplexity int, slug string, book BookInput) int } Page struct { ActualNumber func(childComplexity int) int ID func(childComplexity int) int VisibleNumber func(childComplexity int) int } Query struct { Book func(childComplexity int, slug string) int Books func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Book() BookResolver Chapter() ChapterResolver Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.