Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 489 Bytes

File metadata and controls

35 lines (29 loc) · 489 Bytes

GraphQL-TP

Client

Requête cliente pour ajouter un joueur

mutation createPlayer($playerInfos: PlayerInput!) {
  createPlayer(playerInfos: $playerInfos) {
    name
  }
}

Données types pour createPlayer

{
  "playerInfos": {
    "name": "Amelia",
    "attack": 3,
    "defense": 94,
    "teamName": "Blue Team"
  }
}

Requête cliente pour ajouter une équipe

mutation createTeam($teamInfos: TeamInput!) {
  createTeam(teamInfos: $teamInfos) {
    name
  }
}