Post
Here is another way for a single query context function, you can basically copy paste this snippet and adapt the filters. elixirforum.com/t/how-to-str...
elixirforum.comHow to structure a large live view app?I am suggesting a technique I learned from the book Absinthe/GraphQL… For example… def list_requests_query(criteria \\ []) do query = from(p in Request) Enum.reduce(criteria, query, fn ...
This is interesting. To me, it feels like a possible improvement over the bespoke query functions I've seen, but it still requires coordination between modules. I think I still prefer to go straight to the source via Ecto.Query.
0 reposts0 likes
No replies yet.