Inject from your controller to decouple your contexts in Phoenix.
In this post I will show you a simple pattern to decouple your Phoenix context so that you can specify from your controller how you want to preload your Ecto.Query.
Read next Hex Bob Package Status Page