-
Notifications
You must be signed in to change notification settings - Fork 344
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
Passing subscription queries to sources does not work #1472
Comments
@germankrause In Since Mesh uses the new And in your |
@ardatan I've used |
@germankrause I'm facing a similar problem, did you manage to make it work? |
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
I'm trying to use mesh as a gateway, and I want the graphql-subscriptions to work as well as queries. There is a repo with my problem representation: https://github.com/germankrause/mesh-issue.
I'm getting an error:
Cannot read property 'eventtest' of undefined
ingraphql-tools
:generateProxyingResolvers
function. It's trying to resolvepayload[targetFieldName]
, but payload isundefined
. I found out that payload is passedrootValue
, so I've added it, and now I'm just getting null in the response data. Original source resolver is not even calledI've debugged it and have seen that mesh successfully build the schema using stitching algorithm, but in
generateProxyingResolvers
it builds non-working resolvers, so I get errors after the mesh bootstrapped when I try to run the subscription query.The text was updated successfully, but these errors were encountered: