allenA
Convex Community3y ago
15 replies
allen

conditional filter

Is there a way to conditionally filter a query? It doesn't seem possible to break up the chaining conditionally, and it also doesn't seem possible to exit early from the
.filter(...)
function. Id rather not write out the entire query chain multiple times for each condition, as this is the only part of the query that changes.
Was this page helpful?