Skip to content
New issue

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

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

Already on GitHub? # to your account

RFC: Schema Coordinates #3807

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yaacovCR
Copy link
Contributor

@yaacovCR yaacovCR commented Dec 29, 2022

#3044 rebased on main.

@leebyron comments from original PR:

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 resolveASTSchemeCoordinate() which implement the semantics (name mirrored from buildASTSchema) as well as the return type GraphQLSchemaElement

@netlify
Copy link

netlify bot commented Dec 29, 2022

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit 9fc6c0b
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/672b539c841d760008735195
😎 Deploy Preview https://deploy-preview-3807--compassionate-pike-271cb3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@yaacovCR yaacovCR requested a review from leebyron December 29, 2022 20:18
@github-actions
Copy link

Hi @yaacovCR, I'm @github-actions bot happy to help you with this PR 👋

Supported commands

Please post this commands in separate comments and only one per comment:

  • @github-actions run-benchmark - Run benchmark comparing base and merge commits for this PR
  • @github-actions publish-pr-on-npm - Build package from this PR and publish it on NPM

@yaacovCR yaacovCR force-pushed the schema-coordinates-rebased branch from 08e459e to 3945604 Compare December 29, 2022 20:25
@yaacovCR yaacovCR added spec RFC Implementation of a proposed change to the GraphQL specification PR: feature 🚀 requires increase of "minor" version number labels Dec 29, 2022
@yaacovCR yaacovCR changed the title Schema Coordinates RFC: Schema Coordinates Jan 2, 2023
@yaacovCR yaacovCR force-pushed the schema-coordinates-rebased branch 3 times, most recently from 33c5916 to 1dafb51 Compare February 6, 2023 12:33
@yaacovCR yaacovCR force-pushed the schema-coordinates-rebased branch 2 times, most recently from e5ad1de to 75b9bd1 Compare May 31, 2023 11:06
@yaacovCR yaacovCR force-pushed the schema-coordinates-rebased branch from 75b9bd1 to 0b41718 Compare March 20, 2024 10:00
@yaacovCR yaacovCR force-pushed the schema-coordinates-rebased branch from 0b41718 to 934a631 Compare August 22, 2024 19:13
@yaacovCR yaacovCR requested a review from a team as a code owner August 22, 2024 19:13
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Aug 22, 2024
yaacovCR added a commit that referenced this pull request Sep 4, 2024
extracted from @leebyron 's excellent #3807

will reduce that diff
@yaacovCR yaacovCR force-pushed the schema-coordinates-rebased branch 3 times, most recently from 2c3466e to 923f6d3 Compare September 11, 2024 15:16
@yaacovCR yaacovCR force-pushed the schema-coordinates-rebased branch from 923f6d3 to 8745736 Compare November 6, 2024 10:34
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`
@yaacovCR yaacovCR force-pushed the schema-coordinates-rebased branch from 8745736 to 9fc6c0b Compare November 6, 2024 11:31
yaacovCR added a commit that referenced this pull request Dec 1, 2024
…QLEnumValue (#4288)

this extracts logic from #3044 and #3145 (later rebased as #3807 and
#3808) to implement more informative error messages without implementing
[the full schema coordinate
RFC](graphql/graphql-spec#794)

This is a BREAKING CHANGE because these schema elements are now longer
plain objects and function differently in various scenarios, for example
with `String(<schemaElement>` `JSON.stringifu(<schemaElement>` and
`.toString()` and `.toJSON()`

---------

Co-authored-by: Jovi De Croock <decroockjovi@gmail.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
PR: feature 🚀 requires increase of "minor" version number spec RFC Implementation of a proposed change to the GraphQL specification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants