-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
shared schemas with @external/@extends dont work #22
Comments
Thanks for reporting! I currently do not have much time to diagnose this but I'm happy to review any PRs. |
Thanks for your quick reply. Then I will try another variant in the meantime and when I have time I will take a closer look. But maybe someone else has an idea what it is. |
Hi @HashDot Have you looked at the gateway example which includes @extends cross service and works as expected? The test extends-directive also implements extends cross service. Please detail if there's a scenario not being covered by the existing tests. |
Hi @alex-parra thanks for your response. I've tried to fill in the services without the vault and the result is the same. I try to build a better and less complex example of my problem for better debugging. |
@HashDot sounds good! |
Hi, first of all thanks for this great project.
I am in the process of switching from Apollo Federation to Mercurius and am running into a few problems. Everything I describe here works with Apollo Federation and I would like to continue doing the same. Here's the problem:
I am using the same schemas in different services such as meta information, person, address, etc. These basic schemas are in a separate service. These schemas are then used in another service via @extends/@external and extended if necessary. Unfortunately this does not work and I always get the following feedback from the gateway:
"message": "Cannot return null for non-nullable field Meta.status."
Query:
If I do the query directly on the respective service it works. Therefore I think it is the gateway or the merging of the schemas. I have created an example repo. Can someone help me?
Example Repo: https://github.com/HashDot/federation-example
The text was updated successfully, but these errors were encountered: