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?

custom queries? Question: SQL Union? · Issue #1233 · elixir-ecto/ecto · GitHub

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:

yep I’ve then seen your ticket UNION/INTERSECT/EXCEPT support · Issue #1549 · elixir-ecto/ecto · GitHub

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