From a3b8b9e394ae4050a2100de2720f8b3ded0a3e41 Mon Sep 17 00:00:00 2001 From: David Welch Date: Thu, 17 Mar 2022 21:58:15 -0600 Subject: [PATCH] Update documentation on deprecated formatError(..) --- src/error/GraphQLError.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error/GraphQLError.ts b/src/error/GraphQLError.ts index c859f59e46..dc8bb60575 100644 --- a/src/error/GraphQLError.ts +++ b/src/error/GraphQLError.ts @@ -290,7 +290,7 @@ export function printError(error: GraphQLError): string { * Given a GraphQLError, format it according to the rules described by the * Response Format, Errors section of the GraphQL Specification. * - * @deprecated Please use `error.toString` instead. Will be removed in v17 + * @deprecated Please use `error.toJSON` instead. Will be removed in v17 */ export function formatError(error: GraphQLError): GraphQLFormattedError { return error.toJSON();