-
-
Notifications
You must be signed in to change notification settings - Fork 440
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
Federation entity union is empty during schema introspection #700
Comments
Can you give an example to reproduce this problem? 🙂 |
Yes, sorry for not giving more details: If we run
We should expect:
But we get the following instead
thanks! |
Because this service itself does not contain any entities. You should do it like this: |
You can repeat it with full details: Run the federation product service (no need for a gateway)
Curl the service directly with an introspection query:
Notice the Since the bug was introduced in v2.10.3, if you checkout
You get the correct answer for
I believe the bug was introduced here: async-graphql/src/model/type.rs Line 146 in 4793c36
async-graphql/src/registry/mod.rs Line 506 in 0f1e5a1
I can make a PR if you like. |
Oops, it seems I forgot something, it's my commit: a3b7777 |
I'm working on it. |
Fixed in 3.0 |
Expected Behavior
union _Entity = ... list of entities..
Actual Behavior
union _Entity = empty
Steps to Reproduce the Problem
Create a federated entity and do a schema introspection, union _Entity remain empty.
I believe the bug was introduced in v2.10.3
Specifications
The text was updated successfully, but these errors were encountered: