Ecto Query Ellipsis in Elixir
We can use ...
in Ecto Query when using positional bindings queries so we don't need to specify all the schema references in the query. Check this out:
Comment
|> join(:inner, [c], p in Post, on: p.id == c.post_id)
|> join(:inner, [..., p], u in User, on: u.id == p.user_id)
Tweet