#Querying specific item from an array field?

3 messages · Page 1 of 1 (latest)

patent temple
#

Using the generated APIs, when I need a single item from an array based on some variable, I currently need to fetch the entire array and do client-side filtering.

What’s the best way to go about fetching a specific item from an array field, based on a request?

I use GraphQL, so if there’s a way to add a custom field resolver that could work. If there’s a way to generate this even better. I only saw docs about making custom queries, not fields.

patent temple
#

Querying specific item from an array field?