Chess Game API Example

Computer [object]

A computer player.

Implements
IPlayer

IPlayer [interface]

A player.

Attributes
name String

The name of the player.

type PlayerType

The type of the player.

rank PlayerRank

The rank of the player.

API:
Chess Game GraphQL API
IComputer

IComputer [interface]

A computer player.

Attributes
cpu String

The CPU of the computer.

API:
Chess Game GraphQL API
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 computer.

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.

cpu 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 CPU of the computer.

API:
Chess Game GraphQL API