How to query items where array field contains a specific value?
[categoryId], but I need it to return items where categoryId is one of potentially many elements in the array.Here's my current query:
For example, if I have these items in my database:
When querying for
categoryId: "category1", I want both items to be returned since they both contain "category1" in their categories array.Is there a way to achieve this kind of "contains" functionality for array fields in Convex? I need this to work with pagination too.
Any suggestions would be appreciated!
