Chess Game API Example

mutation move
Player

Move a piece from one square to another.
Returns the new board state.
Returns an error if the move is invalid.

Arguments
from 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

to 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

Returns
ChessBoard

ChessBoard [object]

A chess board.

Attributes
squares ChessPiece [] []

The squares of the chess board. The first square is the top-left corner.

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