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

simplify CollectFields for @defer and @stream #3994

Merged
merged 4 commits into from
Dec 16, 2023
Merged

Conversation

yaacovCR
Copy link
Contributor

@yaacovCR yaacovCR commented Dec 8, 2023

minimizes changes to CollectFields a la #3982 but still creates a single memoized incremental field plan per list item.

@robrichard

Copy link

netlify bot commented Dec 8, 2023

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit 24784b3
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/657bf99e6d0a98000823aee9
😎 Deploy Preview https://deploy-preview-3994--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 added the PR: polish 💅 PR doesn't change public API or any observed behaviour label Dec 8, 2023
Copy link

github-actions bot commented Dec 8, 2023

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
Copy link
Contributor Author

yaacovCR commented Dec 8, 2023

this PR also removes code that supports graphql/graphql-spec#1054 => as noted there, that "feature" is not necessarily desirable, and after feedback from the sub-WG, it seems like we should merge support for that later on in a separate PR.

@yaacovCR yaacovCR changed the title alternative to simplify CollectFIelds for @defer @stream alternative to simplify CollectFields for @defer @stream Dec 8, 2023
minimizes changes to CollectFields a la graphql#3982 but still creates a single memoized incremental field plan per list item.
@yaacovCR
Copy link
Contributor Author

Updated graphql/graphql-spec#1052 to reflect simplification from this PR.

in favor of resolution at runtime

this is a tradeoff of theoretical performance gain vs code simplification
@yaacovCR yaacovCR changed the title alternative to simplify CollectFields for @defer @stream simplify CollectFields for @defer and @stream Dec 16, 2023
@yaacovCR yaacovCR merged commit 2aedf25 into graphql:main Dec 16, 2023
20 checks passed
@yaacovCR yaacovCR deleted the simplify branch December 16, 2023 19:15
yaacovCR added a commit to yaacovCR/graphql-executor that referenced this pull request Dec 16, 2023
minimizes the changes to `CollectFields` required for incremental delivery (inspired by graphql#3982) -- but retains a single memoized incremental field plan per list item.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: polish 💅 PR doesn't change public API or any observed behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants