I'm trying to query a list of objects having array of IDs. Something similar to following SQL query:
SELECT name FROM events WHERE id IN(1,2,3,...);
How do I achieve this in GraphQL?
I'm trying to query a list of objects having array of IDs. Something similar to following SQL query:
SELECT name FROM events WHERE id IN(1,2,3,...);
How do I achieve this in GraphQL?
You can definitely query with an array of values! Here's what the query itself would look like:
And the type would look something like:
If you wanted to parameterize this query, here's an example of that: