Skip to content
This repository has been archived by the owner on Dec 20, 2020. It is now read-only.

Latest commit

 

History

History
36 lines (30 loc) · 394 Bytes

HOWTO.md

File metadata and controls

36 lines (30 loc) · 394 Bytes

Mutation:

mutation setGameMutation($scores: [Int], $teamA: [String], $teamB: [String]) {
 setGame(scores: $scores, teamA: $teamA, teamB: $teamB) {
  	id  
	}
}

Variables:

{
  "scores": [5,6],
  "teamA": ["AA", "BB"],
  "teamB": ["CC", "DD"]
}

Query:

query {
  games {
    id
    timestamp
    scores
    teams{
      user_list
    }
  }
}