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

feat: pass abortSignal to resolvers #4261

Merged
merged 3 commits into from
Oct 28, 2024
Merged

Conversation

yaacovCR
Copy link
Contributor

@yaacovCR yaacovCR commented Oct 27, 2024

this allows e.g. passing the signal to fetch

Note: the abortSignal is now the fifth argument to a GraphQLFieldResolverFn. If no resolver if provided, and the parent is an object with a key for the field name with a value that is a function, the abortSignal will be the fourth argument, as in the included test, with the parent accessible via the this keyword.

this allows e.g. passing the signal to fetch
@yaacovCR yaacovCR requested a review from a team as a code owner October 27, 2024 19:15
Copy link

netlify bot commented Oct 27, 2024

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit 2e0ce19
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/671f71d42ac6a10007571eb3
😎 Deploy Preview https://deploy-preview-4261--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.

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 marked this pull request as draft October 27, 2024 19:16
@yaacovCR yaacovCR added the PR: feature 🚀 requires increase of "minor" version number label Oct 28, 2024
@yaacovCR yaacovCR marked this pull request as ready for review October 28, 2024 11:10
@yaacovCR yaacovCR merged commit 12a5ec9 into main Oct 28, 2024
35 checks passed
@yaacovCR yaacovCR deleted the pass-abort-signal-to-resolver branch October 28, 2024 11:17
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
PR: feature 🚀 requires increase of "minor" version number
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants