Ecto `union`

I’m still not able to find any mention of union in the Ecto docs, how do people perform a SQL UNION in Ecto currently?

1 Like

custom queries? https://github.com/elixir-ecto/ecto/issues/1233

1 Like

I already know about custom queries, but I really hate losing the type safety that ecto affords, was wondering if there was a type-safe method. :wink:

1 Like

yep I’ve then seen your ticket https://github.com/elixir-ecto/ecto/issues/1549

someone might share the current state of things there but there seem to be no other way at the moment

2 Likes