Use panic to abort in an un-reachable case.
Use panic to abort in an un-reachable case.

If we reach this branch we have an internal error because it's not
possible to define a Union that doesn't contain Objects.

jml/graphql-api