Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR ELIXIR

phoenix ecto preload

# Use a keyword list to preload nested associations as well
posts = Repo.preload posts, [comments: [:replies, :likes], authors: []]
 
PREVIOUS NEXT
Tagged: #phoenix #ecto #preload
ADD COMMENT
Topic
Name
7+7 =