-
Notifications
You must be signed in to change notification settings - Fork 44
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
prisma.request Promise returns undefined on error #182
Comments
Ok, after fixing fragments (see graffle-js/graffle#86) it began to work. BUT! The issue is still present: the Promise should be rejecting on query error and messaging what was wrong, not just silently return undefined |
Can you provide a reproduction for this behaviour? 🙂 |
@marktani in what form? a repo? is there a sort of template for this? in any case just run |
Awesome, that's already enough. Thanks! 🙂 |
@divyenduz any progress on this? it's a really big problem |
Hey @terion-name, we were focusing on the GraphQL Europe conference lately and haven't started to investigate this yet (the conference was amazing by the way!) Did you consider providing a PR? 🙂 |
@marktani I'd be happy, but I'm not so confident in your source code. As far as I understand you use for this |
Currently, we pluck the data out of response and consume the error. Even showing this error via any will display only the schema side error. There is already a broad proposal to get around this issue that needs further discussion. |
upd
More generalizing the issue — on any error prisma.reqest Promise silently returns undefined and it is simply impossible to debug anything. A huge, huge problem
A resolver:
result
is undefined.I copy from console entire request, run it directly over prisma server and it works:
The text was updated successfully, but these errors were encountered: