-
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
Resolvers not getting merged #2219
Comments
@dotansimha, @ardatan how can I assist you guys in any way in progressing with this issue? |
Hi @nemonemi and thank you for the report Sorry but I'm not adding a lot here but just labeling it according to our new Contribution Guide and issue flow. It seems already got into Now in order to advance to Thank you and sorry that this comment is not a complete solution (yet). |
I would be willing to do it, but due to the lack of time on my part, I'd appreciate a point in the right direction. Which library is responsible, that the tests should be added? |
looks like you should check GraphQL Tools first |
@ardatan Either one resolver gets applied, or the other. |
@nemonemi In Type Merging, you need to do some small definitions. I created an example with alpha versions; |
Hi Arda, |
Hello @ardatan, Thank you for the example. I can confirm that in your codesandbox it works, however, I have tried to map it to my repo without success. The steps applied are just not clear enough to deduce what is important, and the documentation is not much better. Could you please help me out reason about what actually needs to be applied here to make this work? https://codesandbox.io/s/graphql-ensemble-nx-iz6vm p.s. in the Codesandbox' Server control panel open the screen with port 5000 to access the gateway in question. |
I have to say, I am pretty disappointed in how these tickets get addressed, let alone resolved. I have managed to get this to work, but have encountered another issue that is simply not possible to resolve using documentation or existing tickets. Although I have had high hopes for applying graphql-mesh to several places in my company, this kind of inattentiveness caused me to become demoralized to use this library. |
In the example below, only the type gets merged correctly, but not the resolvers. Only one service gets resolved, I believe in a random fashion.
The Authors service defines only the
id
andname
on the Author type:The Books service is extending the Author type with its own model and data:
To Reproduce
query Author
name
property or thebooks
property will be missing.Also, here's the Github repo:
https://github.com/nemonemi/graphql_ensemble/tree/testing-federation-kind-of-approach
Expected behavior
I'm expecting both the types and the resolvers to be merged, and when the Author query is executed that both the
name
and thebooks
properties are resolved.Additional context
I'm not sure if this model workflow should already be supported, or if this is a feature request.
The text was updated successfully, but these errors were encountered: