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 { Game struct { Board func(childComplexity int) int ID func(childComplexity int) int } GamesConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } GamesEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } Mutation struct { CreateGame func(childComplexity int, board []string) int CreatePlayer func(childComplexity int, name string) int CreateWord func(childComplexity int, gameID string, path []model.Point) int } PageInfo struct { EndCursor func(childComplexity int) int HasNextPage func(childComplexity int) int StartCursor func(childComplexity int) int } Player struct { ID func(childComplexity int) int Name func(childComplexity int) int Words func(childComplexity int) int } PlayersConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } PlayersEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } Query struct { Game func(childComplexity int, id string) int Games func(childComplexity int, first *int, after *string) int Player func(childComplexity int, id string) int Players func(childComplexity int, first *int, after *string) int Words func(childComplexity int, gameID *string, playerID *string, first *int, after *string) int } Word struct { Game func(childComplexity int) int ID func(childComplexity int) int Path func(childComplexity int) int Players func(childComplexity int) int } WordsConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } WordsEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type GameResolver ¶
type MutationResolver ¶
type PlayerResolver ¶
type QueryResolver ¶
type QueryResolver interface { Player(ctx context.Context, id string) (*model.Player, error) Players(ctx context.Context, first *int, after *string) (*model.PlayersConnection, error) Game(ctx context.Context, id string) (*model.Game, error) Games(ctx context.Context, first *int, after *string) (*model.GamesConnection, error) Words(ctx context.Context, gameID *string, playerID *string, first *int, after *string) (*model.WordsConnection, error) }
type ResolverRoot ¶
type ResolverRoot interface { Game() GameResolver Mutation() MutationResolver Player() PlayerResolver Query() QueryResolver Word() WordResolver }
Click to show internal directories.
Click to hide internal directories.