Skip to content

Parse with linecol offset #1018

@trevor-scheer

Description

@trevor-scheer

Hello! GraphQL documents are very commonly extracted from other source code, most notably (but not limited to) TS/JS for web client projects.

In order to provide accurate diagnostic locations, it would be a nice addition to be able to specify an initial linecol offset when parsing a document. Currently this can be accomplished in userland by padding the source with newlines and spaces before parsing, and I suspect the internal implementation would look similar.

Would you be open to a PR that introduces this functionality? Thanks for considering!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions