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 } Course struct { Category 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 CreateCourse func(childComplexity int, input model.NewCourse) int } Query struct { Categories func(childComplexity int) int Courses func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type CourseResolver ¶
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type QueryResolver ¶
type Resolver ¶
func (*Resolver) Category ¶
func (r *Resolver) Category() CategoryResolver
Category returns CategoryResolver implementation.
func (*Resolver) Course ¶
func (r *Resolver) Course() CourseResolver
Course returns CourseResolver implementation.
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() MutationResolver
Mutation returns MutationResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface { Category() CategoryResolver Course() CourseResolver Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.