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 {
BookTest struct {
ID func(childComplexity int) int
Title func(childComplexity int) int
}
MutationTest struct {
UpdateUsers func(childComplexity int) int
}
QueryTest struct {
Books func(childComplexity int) int
Users func(childComplexity int) int
}
UserTest struct {
Books func(childComplexity int) int
ID func(childComplexity int) int
Name func(childComplexity int) int
}
}
type Config ¶
type Config struct {
Resolvers ResolverRoot
Directives DirectiveRoot
Complexity ComplexityRoot
}
type DirectiveRoot ¶
type DirectiveRoot struct {
}
type MutationTestResolver ¶
type QueryTestResolver ¶
type ResolverRoot ¶
type ResolverRoot interface {
MutationTest() MutationTestResolver
QueryTest() QueryTestResolver
}
Click to show internal directories.
Click to hide internal directories.