Skip to content

Type definition for DefinitionNode appears to be wrong #4012

Closed as not planned
@jacob-orbiit

Description

@jacob-orbiit
Property 'selectionSet' does not exist on type 'DefinitionNode'.
  Property 'selectionSet' does not exist on type 'SchemaDefinitionNode'.ts(2339)

I've inspected parse(op).definitions[0].selectionSet, and it does indeed exist.

I see DefinitionNode includes ExecutableDefinitionNodeOperationDefinitionNode, and OperationDefinitionNode has selectionSet, but the definition doesn't seem to follow that deep.

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