Chess Game API Example

IPlayer [interface]

A player.

Attributes
name 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

The name of the player.

type PlayerType

PlayerType [enum]

Player types.

Possible values
HUMAN

A human player. How about aliens?

COMPUTER

A computer player.

API:
Chess Game GraphQL API

The type of the player.

rank PlayerRank

PlayerRank [enum]

Player ranks.

Possible values
BEGINNER

A beginner player.

INTERMEDIATE

An intermediate player.

ADVANCED

An advanced player.

API:
Chess Game GraphQL API

The rank of the player.

API:
Chess Game GraphQL API