Skip to content

AST node type annotations vs. GraphQL spec #98

Closed
@LWprogramming

Description

@LWprogramming

Some AST node types, such as the UnionTypeDefinitionNode and the EnumTypeDefinitionNode, have annotations that say their fields/values are optional. For instance, UnionTypeDefinitionNode has an optional frozenlist for the types that the union contains. However, according to the GraphQL spec, unions have to contain at least one unique member type, so it doesn't seem like the list would ever be None. Is there a case that I've missed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions