Skip to content

Commit

Permalink
docs(api): replace the markdown relative link with the website relati…
Browse files Browse the repository at this point in the history
…ve link (#7447)
  • Loading branch information
denis-bel committed Mar 15, 2023
1 parent b444753 commit 654895b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/api/apollo-server.mdx
Expand Up @@ -293,7 +293,7 @@ You can disable this recommended security feature by passing `false` to `csrfPre

Provide this function to transform the structure of error objects before they're sent to a client.

The `formatError` hook receives two arguments: the first is a [`GraphQLFormattedError`](https://github.com/graphql/graphql-js/blob/29bf39faa670effd3c1561a1512ec7767658a63b/src/error/GraphQLError.ts#L215) (to be spent with the response), and the second is the original error [(wrapped in GraphQLError if thrown by a resolver)](/docs/source/data/errors.mdx#for-client-responses). This function should return a [`GraphQLFormattedError`](https://github.com/graphql/graphql-js/blob/29bf39faa670effd3c1561a1512ec7767658a63b/src/error/GraphQLError.ts#L215) object.
The `formatError` hook receives two arguments: the first is a [`GraphQLFormattedError`](https://github.com/graphql/graphql-js/blob/29bf39faa670effd3c1561a1512ec7767658a63b/src/error/GraphQLError.ts#L215) (to be spent with the response), and the second is the original error [(wrapped in GraphQLError if thrown by a resolver)](../data/errors/#for-client-responses). This function should return a [`GraphQLFormattedError`](https://github.com/graphql/graphql-js/blob/29bf39faa670effd3c1561a1512ec7767658a63b/src/error/GraphQLError.ts#L215) object.

</td>
</tr>
Expand Down

0 comments on commit 654895b

Please sign in to comment.