Chess Game API Example

GamesQueryInput [input]

Input for querying games.

Attributes
startedAfter Date

Date [scalar]

A date represented as a string. For example: "2019-01-01T12:00:00Z".

API:
Chess Game GraphQL API

Filter games by the player name.

endedBefore Date

Date [scalar]

A date represented as a string. For example: "2019-01-01T12:00:00Z".

API:
Chess Game GraphQL API

Filter games by the player name.

winnerColor ChessPieceColor

ChessPieceColor [enum]

A color used for chess pieces.

Possible values
WHITE

A white chess piece.

OLD_WHITE

Invalid color to test enum deprecation

Deprecated: Use WHITE instead.
BLACK

A black chess piece.

OLD_BLACK

Invalid color to test enum deprecation

Deprecated: Use BLACK instead.
API:
Chess Game GraphQL API

Filter games by the player name.

winner String

String [scalar]

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

API:
Chess Game GraphQL API

Filter games by the player name.

Deprecated: Use winnerPlayer instead.
winnerPlayer Player

Player [union]

A player.

Union
HumanComputer
API:
Chess Game GraphQL API

Filter games by the player name.

maxMoves Int

Int [scalar]

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

API:
Chess Game GraphQL API

Filter games by the player name.

API:
Chess Game GraphQL API