This repository was archived by the owner on Mar 20, 2023. It is now read-only.
This repository was archived by the owner on Mar 20, 2023. It is now read-only.
Unhandled errors does not provide mutation or query name #776
Open
Description
I'm trying t catch unhandled errors using
customFormatErrorFn : (err) => {
but it throws only stack like this
0|app | customFormatErrorFn => GraphQLError: Variable "$profile_id" of non-null type "Int!" must not be null.
0|app | at _loop (/var/www/scalify-node-prod/node_modules/graphql/execution/values.js:103:15)
0|app | at coerceVariableValues (/var/www/scalify-node-prod/node_modules/graphql/execution/values.js:119:16)
0|app | at getVariableValues (/var/www/scalify-node-prod/node_modules/graphql/execution/values.js:48:19)
0|app | at buildExecutionContext (/var/www/scalify-node-prod/node_modules/graphql/execution/execute.js:184:61)
0|app | at executeImpl (/var/www/scalify-node-prod/node_modules/graphql/execution/execute.js:89:20)
0|app | at execute (/var/www/scalify-node-prod/node_modules/graphql/execution/execute.js:64:35)
0|app | at /var/www/scalify-node-prod/node_modules/express-graphql/index.js:152:16 {
0|app | locations: [ { line: 2, column: 75 } ]
Is there any ways to get mutation or query name in unhandled errors ?
Thank you
Metadata
Metadata
Assignees
Labels
No labels