add collections to game query

This commit is contained in:
Gamebrary 2021-03-04 10:14:02 -07:00
parent 28a3d8e534
commit a001e62102

View file

@ -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 };`;