You should be able to use the dynamic
macro to build all of the OR expressions and then interpolate it into the query at once: https://hexdocs.pm/ecto/Ecto.Query.html#dynamic/2
7 Likes
You should be able to use the dynamic
macro to build all of the OR expressions and then interpolate it into the query at once: https://hexdocs.pm/ecto/Ecto.Query.html#dynamic/2