def index(conn, %{"user_id" => user_id}) do
%Stipe.Accounts.User{name: name, daily_updates: daily_updates} =
Accounts.get_user!(user_id)
|> Stipe.Repo.preload(:daily_updates)
# daily_updates = Standup.list_daily_updates(%Stipe.Accounts.User{id: user_id})
render(conn, "index.html", user_name: name, daily_updates: daily_updates)
end
Is it ok if I pipe Stipe.Repo.preload
in the controller code? Will that leak persistence concern into the controller layer?