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?
No description
3 Replies
erquhart
erquhart2y ago
You can't index on array values, but you can use plain js filtering in your query.
lee
lee2y ago
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
Fernando Macacão
Thanks

Did you find this page helpful?