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 ChatRoomResolver ¶
type ComplexityRoot ¶
type ComplexityRoot struct { ChatRoom struct { ID func(childComplexity int) int MessagesConnection func(childComplexity int, first *int, after *string) int Name func(childComplexity int) int } Message struct { ID func(childComplexity int) int Text func(childComplexity int) int } MessagesConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } MessagesEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } PageInfo struct { EndCursor func(childComplexity int) int HasNextPage func(childComplexity int) int StartCursor func(childComplexity int) int } Query struct { ChatRoom func(childComplexity int, id string) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { ChatRoom() ChatRoomResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.