-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apollo-server-core formatError never called #1439
Comments
I've been looking into this more and I can see that It is ignored when you use Unfortunately you cannot access the express |
Just opened a PR to fix this in #1662 |
I'll close this for the reasons I explained in #1662 (comment). The |
We're using [runHttpQuery] from apollo-server-core on lambda and passing formatError as one of the options.
However this handler never gets called back when exception is raised in resolver...
resolve = (source, args, context, info) => { throw new Error("This is generic error"); }
Is this meant for other types of errors?
Notes: I had a look at runHttpQuery which passes the formatError to runQuery but it looks like runQuery never uses this handler (I'm also using [formatResponse] which gets called without issues)
The text was updated successfully, but these errors were encountered: