-
Notifications
You must be signed in to change notification settings - Fork 59
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
[object Object] is returned from a binding when resolver throws an error #173
Comments
Hi, it's still happening with the latest version. There's no way how to find out what went wrong. I tried to inspect the error but there's nothing helpful.
|
I found a workaround at ardatan/graphql-tools#480 (comment). For anyone interested:
|
Hey @almostprogrammer 👋, Thank you for filling the issue. Could you provide me with a small reproduction repository or CodeSandbox? That way I can find the bug a lot more quickly. |
Hi @maticzav here's the reproduction https://github.com/almostprogrammer/graphql-binding-173-reproduction/tree/master |
Hey @almostprogrammer 👋, It seems like this issue stems from Hope you understand 🙂 |
You could consider switching within graphql-binding to graphql-tools-fork, where this bug has been fixed. |
@yaacovCR why is the fork not merged into the official |
Not for me to say, would love it! |
Is there an open PR? |
I stopped submitting PRs as they were not reviewed. I have not seen the maintainers give input on any issues in quite a while. That is why I created the fork. You could almost say that the project was abandoned, however there was a recent PR, possibly from someone internal to Apollo, that was submitted and merged within about a day. All kind of mysterious. Probably has something to do with Apollo's move from schema stitching to federation, but I think that there would be no downside to fixing some of these bugs... |
Could you try opening a PR nevertheless? |
I do not feel that it would be worth it, as I do not sense the upstream repository maintainers are interested. The code is public, though, so if you feel differently, please fork my fork and submit. Most of the work for the PR would probably involve making sure the changelog is up to date with the bugs fixed in the expected format. From what I have kept track, the fork addresses graphql-tools issues 454, 480, 819, 862, 997, 1048, 1056, 1061, 1074, 1075, 1121, 1147, 1159, and 1171. |
Anyways: |
Thank you for reporting. In the last few months, since the transition of many libraries under The Guild's leadership, We've reviewed and released many improvements and versions to graphql-cli, graphql-config and graphql-import. We've reviewed What we've found is that the new GraphQL Mesh library is covering not only all the current capabilities of GraphQL Binding, but also the future ideas that were introduced in the original GraphQL Binding blog post and haven't come to life yet. And the best thing - GraphQL Mesh gives you all those capabilities, even if your source is not a GraphQL service at all! Just like GraphQL Binding, you get a fully typed SDK (thanks to the protocols SDKs and the GraphQL Code Generator), but from any source, and that SDK can run anywhere, as a connector or as a full blown gateway. If you think that we've missed anything from GraphQL Binding that is not supported in a better way in GraphQL Mesh, please let us know! In the context of that particular issue - thanks to the awesome work of @yaacovCR , GraphQL Mesh uses the new schema stitching introduced in GraphQL Tools v6. We're looking forward for your feedback of how we can make your experience even better! |
I've noticed that when a query/mutation is executed via a graphql binding an [Object object] error is returned. This behaviour is observed when an error is thrown in resolver as a part of a business logic.
organisation
query throws an Apollo error when organisation is not found by id.Funny enough the cause is an old version of graphql-tools and the PR for it was already made: #161
When will it be merged?
The text was updated successfully, but these errors were encountered: