Open mstykow opened 3 years ago
I don't see any directives in the reproduction.
@ardatan yes, but there is a comment in the reproduction and that comment is kept as docstring although the plugin docs say that it should be converted: https://www.graphql-code-generator.com/docs/plugins/schema-ast
when you set includeDirections: false
you'll see that the docstring gets correctly converted.
Describe the bug As soon as
includeDirectives
is set to true, the value ofcommentDescriptions
no longer matters: comments will always be generated as docstrings.To Reproduce
Link to Codebox for reproduction: https://codesandbox.io/s/bold-bird-wuf3p?file=/codegen.yml
Expected behavior It is possible to include directives and comment descriptions at the same time.
Schema
Environment: