Open shubhambattoo opened 1 year ago
How to achieve writing Multi-Query?
did you discovered how to write it?
How to achieve writing Multi-Query?
did you discovered how to write it?
just discovered how to do it. For example if you want to include genres in your game request you can do it like this:
const gamesQuery = igdb().query('games', 'games-with-genre').fields(['name', 'genres.name']).where(
id = ${id}); //here we create a query like every other query except that we dont add the .request const res = await igdb().multi([gamesQuery]).request('/multiquery'); //and here we use the query we have created passing it inside an array to multi() function.
How to achieve writing Multi-Query?