What's the best way to dynamically filter a query? #3781
Unanswered
JamesSingleton
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To give some background context, I have a set of filters that all default to "All"

I have a huge function that queries my DB
My schemas for these tables looks like
A couple of issues I am running into is the
status
filter when it's "All" errors as it's not a proper enum which makes sense. Also, I am running into a type error doing thequery = query.where
Also any advise on querying better (if there is a way) would be great as well!
Beta Was this translation helpful? Give feedback.
All reactions