How to find posts in given List of ids?
This isn\'t working:
posts = Post |> where(id: [1, 2]) |> Repo.all
Example in Rails:
Accepted answer gives undefined function p/0 to me, so I came to this:
undefined function p/0
from(p in Post, where: p.id in [1, 2]) |> Repo.all