Skip to content

Why does ObjectTypeDefinitionNode define fields as optional? #4449

Closed
@magicmark

Description

@magicmark

readonly fields?: ReadonlyArray<FieldDefinitionNode>;

(Is it ever possible to define an Object without any fields? Spec doesn't explicitly state that, but type Foo { } doesn't parse in this implementation.... (should this be clarified in the spec?)

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