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
Empty type Query {\n}
in the sdl response
#23
Comments
To work around this issue, you can include the trivial
|
I believe this should be fixed by 2d7cc26 — can you check you are still having this problem on the latest version? |
I still observed the issue of |
Thanks for letting us know, @yuhanz ! We'll look into this issue more, and get back to you by March 9th. |
@yuhanz It turns out there's a bug in type Query {
} should really be type Query This is why Apollo Gateway is giving you the error |
Great to know. Thanks for keep tracking. Looking forward to see a new build of graphql-java. |
@yuhanz I'll close out this issue, but let me know if you still experience similar issues and I can reopen. |
I encountered this issue when Apollo-Gateway has trouble recognizing sdl from a graphql service served from federation-jvm. The schema is copied from Apollo-Gateway sample for the inventory service, with a little modification by removing the
extend
keyword in the front and adding@extends
directive:This schema works well in the NodeJs version of graphql federation. However, with the same schema copied to the side of federation-jvm, Apollo-Gateway stopped to recognize the schema. The following message showed in the Apollo-Gateway log:
Looking at the response body of sdl query from federation-jvm, the @extends was pulled in front of @Keyword and there is an empty
type Query {\n}
.The order of the
@extends
directive seemed to have no negative effect, as verified in by switching the order of@extends
and@keyword
in the NodeJS graphql federation. The emptytype Query {}
is probably the cause.The text was updated successfully, but these errors were encountered: