-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty space before second comment #474
Comments
We're working on a fix for indentation issue in #483. To have descriptions instead of comments, you can pass mergeTypes(types, { commentDescriptions: false }); |
Glad to hear that. 👍
I tested with commentDescription mergeTypes(types, { commentDescriptions: true })
// -> SDL string without commentDescription mergeTypes(types, { commentDescriptions: false })
// -> Document Node The reason is below code. However I'm not sure why this happen. In my opinion, it should be same due to option name. graphql-toolkit/packages/schema-merging/src/typedefs-mergers/merge-typedefs.ts Lines 92 to 96 in 5071524
suggestion if (config && config.commentDescriptions) {
result = printWithComments(doc);
} else {
result = print(doc);
} |
@vreality64 This is done on purpose, because |
Available in v0.9.8 !!! |
Hello. I'm using
merge-graphql-schemas
which uses this schema merge. I checked the auto-generated SDL and found the following issues about comment symbol#
.Source
Merged - empty space after the second line
Empty space is look like bug. Is it intended?
graphql-toolkit/packages/schema-merging/src/typedefs-mergers/comments.ts
Lines 66 to 68 in d2fbf64
In the test code, it was removed using the
stripWhitespaces
utility function. Here are playground linkAlso I have another question. Is there option for strip away
#
generation? I only want to keep not comment but description.The text was updated successfully, but these errors were encountered: