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

fix(createRequest): selectionSet overrides fieldNodes #1820

Merged
merged 1 commit into from Jul 28, 2020
Merged

Conversation

yaacovCR
Copy link
Collaborator

selectionSet option is used with bare execution, where fieldNodes is not present, without issue.

with type merging, info.fieldNodes and fieldNodes may be specified, but selectionSet should override, as there may be situation when both appear but selectionSet desired, unlikely for them both to appear but fieldNodes to be desired, as fieldNodes is auto generated, and selectionSet is more likely to be created manually.

TODO:

  • If this PR is a new feature, reference an issue where a consensus about the design was reached (not necessary for small changes)
  • Make sure all of the significant new logic is covered by tests
  • Rebase your changes on master so that they can be merged easily
  • Make sure all tests and linter rules pass

selectionSet option is used with bare execution, where fieldNodes is not present, without issue.

with type merging, info.fieldNodes and fieldNodes may be specified, but selectionSet should override, as there may be situation when both appear but selectionSet desired, unlikely for them both to appear but fieldNodes to be desired, as fieldNodes is auto generated, and selectionSet is more likely to be created manually.
@theguild-bot
Copy link
Collaborator

theguild-bot commented Jul 24, 2020

The latest changes of this PR are available as alpha in npm: 6.0.16-alpha-1025a2cb.0

Quickly update your package.json by running:

npx match-version @graphql-tools 6.0.16-alpha-1025a2cb.0

@yaacovCR
Copy link
Collaborator Author

@ardatan is this a breaking change for mesh in any way?

@yaacovCR
Copy link
Collaborator Author

Does not look like mesh uses selectionSet, perhaps because of this bug, so in theory cannot be breaking change for mesh.

@yaacovCR yaacovCR merged commit 1025a2c into master Jul 28, 2020
@yaacovCR yaacovCR deleted the selectionSet branch July 28, 2020 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants