From bf400346f7019e5485446455a2afa973f4a6f353 Mon Sep 17 00:00:00 2001 From: Emmanuel S Date: Tue, 30 Aug 2022 13:52:12 -0400 Subject: [PATCH] Update types.ts --- src/core/types.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/types.ts b/src/core/types.ts index a058098e248..d5356a64b76 100644 --- a/src/core/types.ts +++ b/src/core/types.ts @@ -135,11 +135,12 @@ export type OperationVariables = Record; export type ApolloQueryResult = { data: T; /** - * A list of all the GraphQLErrors that may have occured in a resposne. + * A list of all the GraphQLErrors that may have occured in a response. */ errors?: ReadonlyArray; /** - * The single Error object that is passed to onError, useQuery hooks, etc. This will contain both NetworkErrors and GraphQLErrors. + * The single Error object that is passed to onError, useQuery hooks, etc. This will contain both a NetworkError and any GraphQLErrors. + * See https://www.apollographql.com/docs/react/data/error-handling/ for more information. */ error?: ApolloError; loading: boolean;