You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,12 @@ The `graphqlHTTP` function accepts the following options:
118
118
errors produced by fulfilling a GraphQL operation. If no function is
119
119
provided, GraphQL's default spec-compliant [`formatError`][] function will be used.
120
120
121
+
Although the fields on the error provided to this function may vary (based on the error type), they will typically include:
122
+
***message:** the error message
123
+
***locations:** the location(s) in the Javascript code where the error ocurred
124
+
***path:** the path within the returned results where the error occurred (eg. in a schema violation error, the path to the part of the results that violated the schema)
125
+
***result:** the value which was returned by the resolver (if any)
126
+
121
127
-**`customParseFn`**: An optional function which will be used to create a document
0 commit comments