Skip to content

Empty selections work with printer, but throw a parser error #1092

@brysgo

Description

@brysgo

(Thanks again for writing these awesome tools!)

Expectation: GraphQL printed by printer always parses as valid

Result: If printing GraphQL that has an empty selection, subsequent parsing of the GraphQL throws a parser error.

This doesn't have a huge impact unless you are trying to write tools to manipulate graphql language and reprint it. Hence, probably pretty low priority but I figured I'd point it out.

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