Merge pull request #21247 from rportugal/graphql_execution_extensions

[GraphQL] Add "extensions" to "ExecutionResult"
This commit is contained in:
Daniel Rosenwasser
2017-11-10 20:41:06 -08:00
committed by GitHub
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -28,11 +28,13 @@ 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 {
data?: { [key: string]: any };
extensions?: { [key: string]: any };
errors?: GraphQLError[];
}
+1
View File
@@ -8,6 +8,7 @@
// Mikhail Novikov <https://github.com/freiksenet>
// Ivan Goncharov <https://github.com/IvanGoncharov>
// Hagai Cohen <https://github.com/DxCx>
// Ricardo Portugal <https://github.com/rportugal>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3