Query based on array values
Is it possible to query for teams which have the userId passed as argument? Like something similar to firebase array-contains?

3 Replies
You can't index on array values, but you can use plain js filtering in your query.
yes, i'm about to publish an article with all the possible solutions for this pattern. here's a preview https://stack.convex.dev/complex-filters-in-convex/preview
Thanks