Skip to content
Discussion options

You must be logged in to vote

We did some work a while back to separate # comments from descriptions. Hence the Description class versus the Comment class

However we never put in a parser option to say "dont collect" them. In theory you can write an AST transformer that could get rid of them but I think a parser option to never collec them in the first place is better

#2767

If you are using SchemaGenerator for building your schema can set graphql.schema.idl.SchemaGenerator.Options#isUseCommentsAsDescription (which defaults to true) so setting that to false would mean that comments would not come into the "element descriptions" This flag as left as true during the migration from #comments to proper descriptions.

Can I …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@seanf
Comment options

Comment options

You must be logged in to vote
2 replies
@seanf
Comment options

@seanf
Comment options

Answer selected by seanf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants