Array of original graphql errors
Optional
operationName: stringThe operation name that was executed in case the request contained more than one operation. Found in req.body.operationName
.
Optional
customizeFields: ((error, originalError?) => undefined | { Override error fields message, exception code, and add extensions fields with your custom values. Extension fields are added to the extensions object and cannot use existing field names.
Optional
log: ((error, originalError?, operations?) => void)allows you to log the error with parts of the GraphQL request data
Optional
originalError: null | ErrorOptional
operations: GraphQlOperation[]Removes any suggestions in cases where the query is sent with typos.
Generated using TypeDoc
Default graphql error handler. Extracts information to return as an error response (timestamp, message, code and path parameters) and logs error and response information using provided logger.