Chess Game API Example

query games
Game

Get a list of games. Returns an empty list if no games match the query. Returns all games if no query is provided.

Arguments
input GamesQueryInput

GamesQueryInput [input]

Input for querying games.

Attributes
startedAfter Date

Filter games by the player name.

endedBefore Date

Filter games by the player name.

winnerColor ChessPieceColor

Filter games by the player name.

winner String

Filter games by the player name.

Deprecated: Use winnerPlayer instead.
winnerPlayer Player

Filter games by the player name.

maxMoves Int

Filter games by the player name.

API:
Chess Game GraphQL API

Returns
Game []

Game [object]

A chess game.

Attributes
id ID

The ID of the game.

startedAt Date

The date and time when the game started.

endedAt Date

The date and time when the game ended.

white String

The name of the white player.

Deprecated: Use whitePlayer instead.
whitePlayer Player

The white player.

black String

The name of the black player.

Deprecated: Use blackPlayer instead.
blackPlayer Player

The black player.

board ChessBoard

The current state of the chess board.

movesCount Int

The number of moves in the game.

moves String []

Get the last N moves of the game. Returns all moves if no argument is provided.

The winner of the game.

prize Float

The prize of the game.

API:
Chess Game GraphQL API
API:
Chess Game GraphQL API