Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a doc how to use union type in sangria? #695

Open
eugkhp opened this issue Jul 7, 2021 · 4 comments
Open

Is there a doc how to use union type in sangria? #695

eugkhp opened this issue Jul 7, 2021 · 4 comments

Comments

@eugkhp
Copy link

eugkhp commented Jul 7, 2021

Can't find any documentation about this, is it supported?

@apadakan-livongo
Copy link

+1 I can't find this either

@ctoomey
Copy link

ctoomey commented Dec 21, 2021

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 .

@apadakan-livongo
Copy link

Found a little gist here that could be helpful https://gist.github.com/BjRo/4155fe0232c8cdb3a9b331a893d43fe0

@yanns
Copy link
Contributor

yanns commented Feb 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants