https://github.com/wichopy/react-codenames-graphqlserver
https://github.com/wichopy/react-codenames-graphqlserver
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/wichopy/react-codenames-graphqlserver
- Owner: wichopy
- Created: 2017-08-13T15:47:37.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-18T12:02:48.000Z (almost 9 years ago)
- Last Synced: 2025-03-15T11:22:51.942Z (over 1 year ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
### To query all cells:
```
{
wordCell {
index
word
type
isEnabled
}
}
```
### To query a single cell:
```
{
wordCell(index: 1) {
index
word
type
isEnabled
}
}
```
## Query the score
```
{
score {
Red
Blue
}
}
```
### To do mutations:
```
mutation {
updateCell(newCell: { index: 24, word: "Bob", type: "Red", isEnabled: false}) {
index
word
type
isEnabled
}
}
mutation {
updateScore(type: "Red") {
Red
Blue
}
}
```