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
erquhart12mo ago
You can't index on array values, but you can use plain js filtering in your query.
lee
lee12mo 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
Fernando MacacãoOP12mo ago
Thanks

Did you find this page helpful?