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 { Episode struct { ID func(childComplexity int) int Image func(childComplexity int) int Index func(childComplexity int) int Number func(childComplexity int) int Season func(childComplexity int) int Title func(childComplexity int) int } QueryRoot struct { Episode func(childComplexity int, id string) int Season func(childComplexity int, id string) int Show func(childComplexity int, id string) int Version func(childComplexity int) int } Season struct { ID func(childComplexity int) int Image func(childComplexity int) int Number func(childComplexity int) int Show func(childComplexity int) int Title func(childComplexity int) int } Show struct { ID func(childComplexity int) int Image func(childComplexity int) int Title func(childComplexity int) int } Version struct { BuildSha func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type EpisodeResolver ¶
type QueryRootResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Episode() EpisodeResolver QueryRoot() QueryRootResolver Season() SeasonResolver }
Click to show internal directories.
Click to hide internal directories.