LoginSignup
11
1

from句に含めて書いたり、

Repo.all from p in Post, preload: [:comments]

下記のように書くこともできます。

Post
|> preload(:comments)
|> select([p], p)
11
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
1