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

Edits to updates for stop method and related #4914

Merged
merged 1 commit into from
Feb 9, 2021

Conversation

StephenBarlow
Copy link
Contributor

No description provided.

Copy link
Member

@glasser glasser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can handle comments in my branch

This option is used only by the `apollo-server` package. If you're integrating with Node.js middleware via a different package, it's your responsibility to stop your HTTP server in whatever way is appropriate.
**This option is used only by the `apollo-server` package.** If you're integrating with [Node.js middleware](../integrations/middleware/) via a different package, it's your responsibility to stop your HTTP server in whatever way is appropriate.

The default value is `10000` (10 seconds).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably easier to read as 10_000 (a change I should also make in the actual code!)


You provide your `willResolveField` handler in the object returned by your [`executionDidStart`](#executiondidstart) handler.

Your `willResolveField` handler can optionally return an ["end hook"](#end-hooks) function that's invoked with the resolver's result (or the error that it throws). The end hook is called when your resolver has _fully_ resolved (i.e., if the resolver returns a Promise, the hook is called with the Promise's eventual resolved result).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably more of an e.g. than an i.e. as there are other things like "returning a Promise resolving to an array of Promises resolving to lists of Promises"

@glasser glasser merged commit 83d979e into glasser/stop-docs Feb 9, 2021
@glasser glasser deleted the sb/stop-docs-edits branch February 9, 2021 22:17
glasser added a commit that referenced this pull request Feb 9, 2021
…4913)

v2.20 has two changes related to `stop`, so this is a good time to actually
document it!

Fixes #4104.

Includes #4914.

Co-authored-by: Stephen Barlow <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants