Possible to optionally filter an arg?
I've skimmed thru search.convex.dev but couldnt find any answer. is it possible to optionally filter an arg?
thanks!
3 Replies
maybe sth like the builder pattern from javaland would be cool?
You would write
q.truthy()
as true
Which can be slightly simplified into q => args.dateBegin === "" || q.gte(...))
it worked! thank you 🙂