Skip to content

Bug: UnionType does not allow primitive possible_types #530

@marcintustin

Description

@marcintustin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions