Union Types

25 views
Skip to first unread message

Patricio Gorin

unread,
Aug 27, 2017, 10:49:10 AM8/27/17
to sangria-graphql
Hi, I am facing a situation when dealing with Union Types.
I have a polymorphic model when one of the concrete implementation is a "case object".
When I try to implement a union type with one type representing this case object I am forced to spec at least one field, because the union types requires a union of Object Types.

Is there a chance to use case objects and classes as part of the union?

Thanks,
Patricio.
Reply all
Reply to author
Forward
0 new messages