I’m wondering how people handle the concern of paginating results in ecto and phoenix context. In my opinion the contexts should not really be concerned with how pagination, but if the Repo.…
are part of the context something in the context still needs to have some way to manipulate the query before the Repo is called.
In a layered architecture this would be the concern a level above the business logic, but I’m not sure how things would be passed around in that case. E.g. passing around ecto queries would somehow make everything aware of ecto.