php-giantbomb
php-giantbomb copied to clipboard
Query by relationship
If I want to do a query for games on a specific platform, how would that be?
Hey @PiousVenom,
this library is a simple layer on top of the actual API, so their docs are a good resource for your needs.
For your query, I believe this is the right approach:
$query = DBorsatto\GiantBomb\Query::create()
->addFilterBy('platforms', 'PS4,PS5'); // You might want to experiment with casing, I'm not sure
$games = $client->find('Game', $query);