Phoenix Ecto Preload

[Solved] Phoenix Ecto Preload | Elixir - Code Explorer | yomemimo.com
Question : phoenix ecto preload

Answered by : nguyen-quang-huy

# Use a keyword list to preload nested associations as well
posts = Repo.preload posts, [comments: [:replies, :likes], authors: []]

Source : | Last Update : Thu, 30 Dec 21

Answers related to phoenix ecto preload

Code Explorer Popular Question For Elixir