Queries for Genres
genre
Returns a single genre.
genre(id) {
/* Genre fields */
}
Arguments
id
Int! -- required
id
Int! -- requiredThe ID of the Genre to return.
Response
Genre.*
Genre
Genre.*
GenreAny requested field from the Genre object.
Example
Request
query {
genre(id: 11) {
id
name
}
}
Response
{
"data": {
"genre": {
"id": 11,
"name": "MOBA"
}
}
}
genres
Returns all available genres.
genres {
/* Genre fields */
}
Arguments
None
Response
Genre.*
[Genre!]
Genre.*
[Genre!]A list of Genre objects returning any requested fields from the Genre object.
Example
Request
query {
genres {
id
name
}
}
Response
{
"data": {
"genres": [
{
"id": 1,
"name": "Social"
},
{
"id": 3,
"name": "2D"
},
{
"id": 4,
"name": "3D"
},
{
"id": 5,
"name": "Gaming"
},
{
"id": 6,
"name": "VR"
},
{
"id": 7,
"name": "AR"
},
{
"id": 8,
"name": "Commerce"
},
{
"id": 9,
"name": "Voxel"
},
{
"id": 11,
"name": "MOBA"
},
{
"id": 12,
"name": "Autobattler"
},
{
"id": 13,
"name": "RTS"
},
{
"id": 14,
"name": "Turn-Based"
},
{
"id": 15,
"name": "FPS"
},
{
"id": 16,
"name": "Virtual World"
},
{
"id": 17,
"name": "Strategy"
},
{
"id": 10,
"name": "MMO"
},
{
"id": 18,
"name": "RPG"
},
{
"id": 2,
"name": "Creator First"
},
{
"id": 19,
"name": "Racing"
}
]
}
}