You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. The issue provides a reproduction available on: CodeSandBox
2. A failing test has been provided
3. A local solution has been provided
4. A pull request is pending review
Describe the bug
When creating a merged subscription type that is itself a union, mesh can serve the type fine when the resolvers are defined in additionalResolvers, but when they come from separate subgraph services, it errors out when you make the subscription query. See last line in this image:
In my local I had added more logging to mesh and the type error seems to happen during the processing for the other subgraph if that makes sense? In my example subscription above I see the error for name while the User part of the query is happening.
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
Describe the bug
When creating a merged subscription type that is itself a union, mesh can serve the type fine when the resolvers are defined in additionalResolvers, but when they come from separate subgraph services, it errors out when you make the subscription query. See last line in this image:
To Reproduce Steps to reproduce the behavior:
Repro is here
use this query:
Expected behavior
I would expect mesh to be able to accept the subscription request the way it does when the resolvers are defined in
additionalResolvers
Environment:
All relevant environment is in the codesandbox.
The text was updated successfully, but these errors were encountered: