Describe the bug
Comments are not copied to output with plugin JSDoc.
To Reproduce
Steps to reproduce the behavior:
type DemoPayload {
"""
Test 123
"""
test: String!
}
codegen.yml config file:generates:
schema.js:
plugins:
- jsdoc
/**
* @typedef {Object} DemoPayload
* @property {string} test
*/
Expected behavior
Comments are copied to the schema.js
/**
* @typedef {Object} DemoPayload
* @property {string} test Test 123
*/
Environment:
Used: https://graphql-code-generator.com/
@graphql-codegen/...: Additional context
Could you create a reproduction using the template below?
https://codesandbox.io/s/github/dotansimha/graphql-code-generator-issue-sandbox-template
@ardatan Done: https://codesandbox.io/s/keen-star-crfuq?file=/schema.js
Look at schema.js to see that the comments are missing.
Fixed in v1.15.2