-
Notifications
You must be signed in to change notification settings - Fork 859
Fix comment in generated schema #2047
Comments
Hey @marktani I saw that on previous version on prisma (1.2.x), I don't have this lot of comments inside the GraphQL schema generated. After looking the introspection schema, in my "old" and "new" projects I always see the comments in the result. |
Ok find, the bug seems to be related to the I see a change in the schemaPrinter.js about this here: |
Hi @marktani I made some test locally, and I see the problem here: I print in the console the I will open a issue directly inside the graphql-js repository. |
Please track graphql/graphql-js#1285 for further discussion. |
@johannpinson commented on Thu Mar 08 2018
I have a little bug about the syntax in Visual Studio Code, because one comment isn't generated to the new line:
https://github.com/graphcool/graphql-import/blob/4458d2955d9319ca2527b1a770438104a5f3c092/fixtures/complex/b.graphql#L9152-L9156
This is the actual render in VSC:

It seems that the
"""
comment tag must start in a new line to avoid the IDE to misunderstand the color syntax (see the minimap on the right)It must be like this:

Thanks 😀
(PS: maybe also about the VSC plugin to graphQL syntax because I don't have it for Atom)
The text was updated successfully, but these errors were encountered: