Failing Big with Elixir & LiveView New app template & add-ons framework for Phoenix

Absinthe middleware for tagged union input types

Union input types are not supported by GraphQL spec yet, but you can simulate that behaviour and add automatic validation by using an Absinthe middleware.

https://mkaszubowski.com/2021/05/25/absinthe-middleware-union-input-types.html