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 CategoryResolver ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Category struct { Courses func(childComplexity int) int Description func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int } Chapter struct { Category func(childComplexity int) int Course func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int } Course struct { Category func(childComplexity int) int Chapters func(childComplexity int) int Description func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int } Mutation struct { CreateCategory func(childComplexity int, input model.NewCategory) int CreateChapter func(childComplexity int, input model.NewChapter) int CreateCourse func(childComplexity int, input model.NewCourse) int } Query struct { Categories func(childComplexity int) int Chapters func(childComplexity int) int Courses func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type CourseResolver ¶
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Category() CategoryResolver Course() CourseResolver Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.