Skip to content

Commit

Permalink
Update plugins-event-reference.mdx (#7739)
Browse files Browse the repository at this point in the history
`requestWillStart` -> `requestDidStart`
(the former is not a real hook)
  • Loading branch information
simpyparveen committed Sep 27, 2023
1 parent cef1fc9 commit 64bb9b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/integrations/plugins-event-reference.mdx
Expand Up @@ -558,7 +558,7 @@ const server = new ApolloServer({

The `unexpectedErrorProcessingRequest` event fires whenever an "unexpected" error is thrown during request execution. "Unexpected" errors don't include common client data errors such as validation, parsing, or GraphQL execution errors. Instead, an unexpected error indicates a _programming_ error, such as a plugin hook throwing unexpectedly or Apollo Server encountering a bug. No matter the cause, Apollo Server masks this type of error from a client.

Note this hook is on the top level of the plugin rather than on the object returned from `requestWillStart`, because this hook triggers if `requestWillStart` throws.
Note this hook is on the top level of the plugin rather than on the object returned from `requestDidStart`, because this hook triggers if `requestDidStart` throws.

#### Example

Expand Down

0 comments on commit 64bb9b0

Please sign in to comment.