Is there a doc how to use union type in sangria?
eugkhp opened this issue · 4 comments
Can't find any documentation about this, is it supported?
+1 I can't find this either
Don't see any documentation but does seem to be supported via UnionType
: https://github.com/sangria-graphql/sangria/blob/v2.1.6/modules/core/src/main/scala/sangria/schema/Schema.scala#L496 .
Found a little gist here that could be helpful https://gist.github.com/BjRo/4155fe0232c8cdb3a9b331a893d43fe0
Maybe the tests can help you: https://github.com/sangria-graphql/sangria/blob/main/modules/core/src/test/scala/sangria/execution/UnionInterfaceSpec.scala ?
If you learn how to use it, it'd be great if you could add some documentation about it.
The source code for the documentation is in https://github.com/sangria-graphql/sangria-graphql.github.io