Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add coordinate field to schema element definitions #3808

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Nov 6, 2024

  1. Schema Coordinates

    Implements graphql/graphql-spec#794
    
    Adds:
    
    * DOT punctuator in lexer
    * Improvements to lexer errors around misuse of `.`
    * Minor improvement to parser core which simplified this addition
    * `SchemaCoordinate` node and `isSchemaCoodinate()` predicate
    * Support in `print()` and `visit()`
    * Added function `parseSchemaCoordinate()` since it is a parser entry point.
    * Added function `resolveSchemaCoordinate()` and `resolveASTSchemaCoordinate()` which implement the semantics (name mirrored from `buildASTSchema`) as well as the return type `ResolvedSchemaElement`
    leebyron authored and yaacovCR committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    9fc6c0b View commit details
    Browse the repository at this point in the history
  2. Add coordinate field to schema element definitions

    * Defines a `GraphQLSchemaElement` base class which defines a `.coordinate` property and `toString`/`toJSON` methods.
    * Adds base class to types, fields, arguments, input fields, enum values, and directives.
    * Uses this in validation error printing string templates.
    leebyron authored and yaacovCR committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    163918f View commit details
    Browse the repository at this point in the history