Skip to content

Bug: UnionType does not allow primitive possible_types #530

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

Closed
marcintustin opened this issue Feb 9, 2017 · 1 comment
Closed

Bug: UnionType does not allow primitive possible_types #530

marcintustin opened this issue Feb 9, 2017 · 1 comment

Comments

@marcintustin
Copy link

UnionType by design only allows object types as possible_types. The graphql spec places no such limit on unions:

Note that members of a union type need to be concrete object types; you can't create a union type out of interfaces or other unions.

http://graphql.org/learn/schema/#union-types

It's clear that it's only meant to outlaw those types and other types that can't have a value that is solely of that type.

@marcintustin
Copy link
Author

Apparently I'm reading the spec wrong. I'll take it up here: graphql/graphql-spec#215

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

No branches or pull requests

1 participant