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 {
Planets struct {
Climate func(childComplexity int) int
Diameter func(childComplexity int) int
Gravity func(childComplexity int) int
Name func(childComplexity int) int
OrbitalPeriod func(childComplexity int) int
Population func(childComplexity int) int
Residents func(childComplexity int) int
RotationPeriod func(childComplexity int) int
SurfaceWater func(childComplexity int) int
Terrain func(childComplexity int) int
Url func(childComplexity int) int
}
Query struct {
GetPlanets func(childComplexity int) int
}
}
type Config ¶
type Config struct {
Resolvers ResolverRoot
Directives DirectiveRoot
Complexity ComplexityRoot
}
type DirectiveRoot ¶
type DirectiveRoot struct {
}
type QueryResolver ¶
type Resolver ¶
type Resolver struct{}
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
}
Click to show internal directories.
Click to hide internal directories.