mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Merge pull request #21247 from rportugal/graphql_execution_extensions
[GraphQL] Add "extensions" to "ExecutionResult"
This commit is contained in:
Vendored
+3
-1
@@ -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[];
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user