mirror of
https://github.com/romancm/gamebrary
synced 2024-11-24 04:03:06 +00:00
add collections to game query
This commit is contained in:
parent
28a3d8e534
commit
a001e62102
1 changed files with 20 additions and 21 deletions
|
@ -203,33 +203,32 @@ exports.game = functions.https.onRequest((req, res) => {
|
||||||
res.status(400).send('missing gameId');
|
res.status(400).send('missing gameId');
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: add collection
|
|
||||||
// collection.*,
|
|
||||||
// collection.games.*,
|
|
||||||
const data = `fields
|
const data = `fields
|
||||||
name,
|
age_ratings.*,
|
||||||
summary,
|
alternative_names.*,
|
||||||
|
bundles.*,
|
||||||
|
collection.*,
|
||||||
|
collection.games.*,
|
||||||
cover.image_id,
|
cover.image_id,
|
||||||
screenshots.image_id,
|
external_games.*,
|
||||||
player_perspectives.name,
|
game_modes.name,
|
||||||
|
genres.name,
|
||||||
involved_companies.company.name,
|
involved_companies.company.name,
|
||||||
involved_companies.developer,
|
involved_companies.developer,
|
||||||
involved_companies.publisher,
|
involved_companies.publisher,
|
||||||
release_dates.platform,
|
name,
|
||||||
release_dates.date,
|
|
||||||
websites.category,
|
|
||||||
websites.url,
|
|
||||||
bundles.*,
|
|
||||||
alternative_names.*,
|
|
||||||
age_ratings.*,
|
|
||||||
videos.video_id,
|
|
||||||
external_games.*,
|
|
||||||
similar_games,
|
|
||||||
rating,
|
|
||||||
genres.name,
|
|
||||||
platforms.name,
|
|
||||||
platforms.id,
|
platforms.id,
|
||||||
game_modes.name;
|
platforms.name,
|
||||||
|
player_perspectives.name,
|
||||||
|
rating,
|
||||||
|
release_dates.date,
|
||||||
|
release_dates.platform,
|
||||||
|
screenshots.image_id,
|
||||||
|
similar_games,
|
||||||
|
summary,
|
||||||
|
videos.video_id,
|
||||||
|
websites.category,
|
||||||
|
websites.url;
|
||||||
|
|
||||||
where id = ${ gameId };`;
|
where id = ${ gameId };`;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue