Graphql-code-generator: JSDoc: Comments are missing

Created on 27 May 2020  路  4Comments  路  Source: dotansimha/graphql-code-generator

Describe the bug
Comments are not copied to output with plugin JSDoc.

To Reproduce
Steps to reproduce the behavior:

  1. My GraphQL schema:
type DemoPayload {
  """
  Test 123
  """
  test: String!
}
  1. My codegen.yml config file:
generates:
  schema.js:
    plugins:
      - jsdoc
  1. False Result
/**
 * @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/

  • OS:
  • @graphql-codegen/...:
  • NodeJS:

Additional context

bug plugins waiting-for-release

All 4 comments

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

Was this page helpful?
0 / 5 - 0 ratings