Using TypeScript to Write Complex Query ...
https://stack.convex.dev/complex-filters-in-convex (also i recommend #ask-ai or #support-community )
Using TypeScript to Write Complex Query Filters
There’s a new Convex helper to perform generic TypeScript filters, with the same performance as built-in Convex filters, and unlimited potential.
3 Replies
Ok but what if you have a paginated query? How would you filter in js when the end result of the query is to paginate?
you can paginate the filtered query https://stack.convex.dev/complex-filters-in-convex#escape-hatch-pagination
Using TypeScript to Write Complex Query Filters
There’s a new Convex helper to perform generic TypeScript filters, with the same performance as built-in Convex filters, and unlimited potential.
Although if you want it to be efficient you may need to restructure your data with more tables and/or indexes