Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownType = errors.New("unknown type") ErrTypeNotFound = errors.New("type not found") )
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Contact struct { Active func(childComplexity int) int ContactType func(childComplexity int) int ContactValue func(childComplexity int) int Flavour func(childComplexity int) int ID func(childComplexity int) int UserID func(childComplexity int) int } Mutation struct { SendOtp func(childComplexity int, phoneNumber string, flavour enums.Flavour) int } Query struct { SearchUser func(childComplexity int, searchTerm string) int // contains filtered or unexported fields } User struct { Active func(childComplexity int) int FirstName func(childComplexity int) int Flavour func(childComplexity int) int ID func(childComplexity int) int LastName func(childComplexity int) int MiddleName func(childComplexity int) int UserContact func(childComplexity int) int UserName func(childComplexity int) int UserType func(childComplexity int) int } // contains filtered or unexported fields }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver User() UserResolver }
Click to show internal directories.
Click to hide internal directories.