Skip to content

Commit 3b5b3f1

Browse files
ericapisanileebyron
authored andcommitted
Update GraphQLError constructor docs (graphql#494)
* Update GraphQLError constructor in the docs to include the 'originalError' and 'extensions' properties. * Remove package-lock.json file that I accidentally committed. * Add commas.
1 parent a85a6ae commit 3b5b3f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

site/graphql-js/APIReference-Errors.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ class GraphQLError extends Error {
5555
nodes?: Array<any>,
5656
stack?: ?string,
5757
source?: Source,
58-
positions?: Array<number>
58+
positions?: Array<number>,
59+
originalError?: ?Error,
60+
extensions?: ?{ [key: string]: mixed }
5961
)
6062
}
6163
```

0 commit comments

Comments
 (0)