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
{{ message }}
This repository was archived by the owner on Mar 20, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -175,6 +175,9 @@ The `graphqlHTTP` function accepts the following options:
175
175
-**`formatError`**: is deprecated and replaced by `customFormatErrorFn`. It will be
176
176
removed in version 1.0.0.
177
177
178
+
-**`handleRuntimeQueryErrorFn`**: An optional function which can be used to change the headers or status code of the response in case of a runtime query error. By default, the status code is set to `500`.
179
+
To ensure compatibility, make sure to take note of [the GraphQL spec regarding status codes](https://github.com/graphql/graphql-over-http/blob/master/spec/GraphQLOverHTTP.md#status-codes).
180
+
178
181
In addition to an object defining each option, options can also be provided as
179
182
a function (or async function) which returns this options object. This function
180
183
is provided the arguments `(request, response, graphQLParams)` and is called
0 commit comments