Open MokkeMeguru opened 3 years ago
access localhost:3030
# Write your query or mutation here
query($id:ID){
game_by_id(id:$id) {
description
id
max_players
min_players
name
play_time
summary
}
}
then got
{
"data": {
"game_by_id": {
"description": null,
"id": "1236",
"max_players": 4,
"min_players": 1,
"name": "Tiny Epic Galaxies",
"play_time": null,
"summary": "Fast dice-based sci-fi space game with a bit of chaos"
}
}
}
or url query is ...
curl 'http://localhost:3030/graphql' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: http://localhost:3030' --data-binary '{"query":"# Write your query or mutation here\nquery($id: ID) {\n game_by_id(id: $id) {\n description\n id\n max_players\n min_players\n name\n play_time\n summary\n }\n}\n","variables":{"id":"1236"}}' --compressed
required
optional