Chess Game API Example

ChessPiece [object]

A chess piece.

Attributes
type ChessPieceType

ChessPieceType [enum]

Types of chess pieces.

Possible values
PAWN

A pawn is the weakest piece in the game.

KNIGHT

A knight is a piece that can jump over other pieces.

BISHOP

A bishop is a piece that moves diagonally.

ROOK

A rook is a piece that moves horizontally or vertically.

QUEEN

A queen is the most powerful piece in the game.

KING

A king is the most important piece in the game.

API:
Chess Game GraphQL API

The type of the chess piece.

color 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

The color of the chess piece.

API:
Chess Game GraphQL API