@elixir # Use a single atom to preload an association post = post |> Repo.preload(:comments) Ecto.assoc_loaded?(post.comments)
Great, but how about nested associations?
for instance the likes of the comments of the posts
# Use a keyword list to preload nested associations as well posts = Repo.preload posts, [comments: [:replies, :likes], authors:  ] Ecto.assoc_loaded?(posts.comments.likes)
It doesn’t work for me … help!