Replies: 1 comment
-
|
Issue ref: #1031 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If my GraphQL schema file contains "private" hash comments (as opposed to docstring descriptions), is there an easy way to have DGS expose the schema without the hash comments?
Unfortunately,
graphql.schema.idl.SchemaGeneratortreats comments as descriptions by default (for historical reasons), which means that they appear in the schema introspection (along with real docstring descriptions). TheSchemaGeneratoroptionuseCommentsAsDescriptions(false)gives the desired behaviour, but I can't find a way to configure theSchemaGeneratorwhich DGS uses.Related: graphql-java/graphql-java#2765 (comment) and https://github.com/apollographql/federation-jvm/blob/7d05eb2ef896f812ad284dc1df0c494c9567e64c/graphql-java-support/src/main/java/com/apollographql/federation/graphqljava/Federation.java#L26-L27
EDIT: See also apollographql/federation-jvm#163
Beta Was this translation helpful? Give feedback.
All reactions