Closed iamphoenix310 closed 4 years ago
The following code is working now.
async function main () {
try {
// const where = 'release_dates.platform = (6)'
const where = '(platforms = [6,48] & genres = 13) | (platforms = [130,48] & genres = 12)'
const response = await client
.fields('name')
.limit(20)
.offset(0)
.where(where)
.request('/games')
console.log(response.data)
} catch (error) {
console.log(error)
}
}
main()
Hi,
I am trying to fetch the sample code but it's returning (400 Bad Request) error code. Here's my code: