-
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:
![capture d ecran 2018-03-08 a 17 29 40](https://user-images.githubusercontent.com/2202989/37162735-53c34f96-22f6-11e8-9f7d-1075c2230385.png)
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:
![capture d ecran 2018-03-08 a 17 29 34](https://user-images.githubusercontent.com/2202989/37162842-95327574-22f6-11e8-85bc-11c9aae3301c.png)
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: