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 { CollectionItem struct { Collection func(childComplexity int) int ID func(childComplexity int) int Title func(childComplexity int) int } Episodes struct { ImportTimedMetadata func(childComplexity int, episodeID string) int } MediaItems struct { ImportTimedMetadata func(childComplexity int, mediaItemID string) int } Preview struct { Asset func(childComplexity int, id string) int Collection func(childComplexity int, filter string) int } PreviewAsset struct { Type func(childComplexity int) int URL func(childComplexity int) int } PreviewCollection struct { Items func(childComplexity int) int } ProgressByOrg struct { Name func(childComplexity int) int Progress func(childComplexity int) int } QueryRoot struct { Episodes func(childComplexity int) int MediaItems func(childComplexity int) int Preview func(childComplexity int) int Statistics func(childComplexity int) int } Statistics struct { LessonProgressGroupedByOrg func(childComplexity int, lessonID string, ageGroups []string, orgMaxSize *int, orgMinSize *int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type EpisodesResolver ¶
type MediaItemsResolver ¶
type PreviewResolver ¶
type QueryRootResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Episodes() EpisodesResolver MediaItems() MediaItemsResolver Preview() PreviewResolver QueryRoot() QueryRootResolver Statistics() StatisticsResolver }
type StatisticsResolver ¶
Click to show internal directories.
Click to hide internal directories.