-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Gateway and/or federated schema disregard description strings #2808
Comments
@mandiwise oh no! Thank you for this issue! We will take a look! |
Thanks @jbaxleyiii for looking into this. I've been doing further development and have just discovered that the issue with federation/gateway support for description strings in a service schema is a bit broader than what I originally reported. Beyond simply ignoring description strings at the gateway level, it seems if you add a description string in front of an As soon as you remove the description string before the Here's an example of the code that doesn't work:
But this code works:
I can see how it may be tricky to merge descriptions for types and external extensions of those types at the gateway level. But if this is something that won't be possible, it may help if it's documented. It took quite a while to track down the real cause of the syntax error. I'm happy to create a separate issue for this if that's preferred. |
Hey @mandiwise, thanks for diving into this a bit further! That looks to me like an issue with the parser rather than the original issue of not federating descriptions... but they might end up being the same thing in the end. I've created a seperate issue for now though. |
Issue still persists when using |
@firaskafri would you please open a separate issue with a runnable reproduction? Linking back to this issue may be helpful for context. Thank you! |
Still persist at 2.15.1 |
Fixes apollographql/apollo-server#2808. Apollo-Orig-Commit-AS: apollographql/apollo-server@2e1f1a0
Packages versions:
@apollo/[email protected]
@apollo/[email protected]
[email protected]
Expected behaviour:
Description strings (BlockString-style) will be rendered in GraphQL Playground.
Actual behaviour:
Description strings do not render.
However, when I add this schema to a standard Apollo server (no gateway/federation), the description strings appear in GraphQL Playground with their types/fields as expected.
Here's a sample of the documentation I've written for my schema:
The text was updated successfully, but these errors were encountered: