I have quite a several level relationship of models in my project. In a controller I have this:
var1 = Repo.get!(Model1, 123) |> Repo.preload([child_items1: :child_items2])
This works fine but I have to go one level deeper.
Namely each child_items2 many child_items3. Now, how can I preload child_items3 for each child_items2?
Repo.get!(Model1, 123) |> Repo.preload([child_items1: [child_items2: :child_items3]), let's see what happens. - NoDisplayName