From 5d0ec0027d4dd13a476fbcffa12e2d01b96980a3 Mon Sep 17 00:00:00 2001 From: Ricardo Portugal Date: Sat, 4 Nov 2017 18:13:02 +0000 Subject: [PATCH 1/3] add extensions to ExecutionResult --- types/graphql/execution/execute.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/graphql/execution/execute.d.ts b/types/graphql/execution/execute.d.ts index 6d02b82124..d63a7f93a7 100644 --- a/types/graphql/execution/execute.d.ts +++ b/types/graphql/execution/execute.d.ts @@ -33,6 +33,7 @@ export interface ExecutionContext { */ export interface ExecutionResult { data?: { [key: string]: any }; + extensions?: { [key: string]: any }; errors?: GraphQLError[]; } From c15de95e10e559e080dec72698a414c89fbdd6aa Mon Sep 17 00:00:00 2001 From: Ricardo Portugal Date: Sat, 4 Nov 2017 18:22:42 +0000 Subject: [PATCH 2/3] comment --- types/graphql/execution/execute.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/graphql/execution/execute.d.ts b/types/graphql/execution/execute.d.ts index d63a7f93a7..c8ee7d9215 100644 --- a/types/graphql/execution/execute.d.ts +++ b/types/graphql/execution/execute.d.ts @@ -28,7 +28,8 @@ export interface ExecutionContext { /** * The result of execution. `data` is the result of executing the - * query, `errors` is null if no errors occurred, and is a + * query, `extensions` represents additional metadata, `errors` is + * null if no errors occurred, and is a * non-empty array if an error occurred. */ export interface ExecutionResult { From 0e09de1997f1dc5382699c4b01d7bde92435717f Mon Sep 17 00:00:00 2001 From: Ricardo Portugal Date: Sat, 4 Nov 2017 18:29:20 +0000 Subject: [PATCH 3/3] add rportugal to "Definitions by" --- types/graphql/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/graphql/index.d.ts b/types/graphql/index.d.ts index b65245a33e..74d9224242 100644 --- a/types/graphql/index.d.ts +++ b/types/graphql/index.d.ts @@ -8,6 +8,7 @@ // Mikhail Novikov // Ivan Goncharov // Hagai Cohen +// Ricardo Portugal // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3