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 { Mutation struct { RefreshToken func(childComplexity int, token *model.RefreshToken) int Register func(childComplexity int, registerInput *model.RegisterInput) int UserAuth func(childComplexity int, auth *model.Authenticate) int } Query struct { } Token struct { Jwt func(childComplexity int) int } User struct { ID func(childComplexity int) int Username func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type ResolverRoot ¶
type ResolverRoot interface {
Mutation() MutationResolver
}
Click to show internal directories.
Click to hide internal directories.