Runtime values in Filter
I'm trying to achieve the following ecto query in filters
I've been trying, expression, lazy, and MFA without success
4 Replies
how did you fail when trying
lazy
?
What does your current code look like?
Are you trying to modify a read action to have this filter?something similar to this
maybe I didn't understand how lazy works
lazy({m, f, a})
oh
What is Filter.filter(...)
?
So, there are two ways to do it
or (and this is often the simpler approach)
the prepare statement is way less complicated than I expected
thanks