Closed alexthewilde closed 6 years ago
Turns out that throwing errors with custom props like HTTP status codes isn't quite possible yet with graphql-js (other than express-graphql which has the formatError option). So we include the error code in the error message and parse it later.
graphql-js
express-graphql
formatError
81
Turns out that throwing errors with custom props like HTTP status codes isn't quite possible yet with
graphql-js
(other thanexpress-graphql
which has theformatError
option). So we include the error code in the error message and parse it later.