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 ¶ added in v0.5.0
type ComplexityRoot struct { Chatroom struct { Name func(childComplexity int) int Messages func(childComplexity int) int } Message struct { Id func(childComplexity int) int Text func(childComplexity int) int CreatedBy func(childComplexity int) int CreatedAt func(childComplexity int) int } Mutation struct { Post func(childComplexity int, text string, username string, roomName string) int } Query struct { Room func(childComplexity int, name string) int } Subscription struct { MessageAdded func(childComplexity int, roomName string) int } }
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 Subscription() SubscriptionResolver }
Click to show internal directories.
Click to hide internal directories.