You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I understood it (and got stung) comments were not supported in GQL unless explicitly enabled because they chose to formalize a string literal @desc instead.
It got me in trouble because IDEs didn't update to reflect the default removal of comments, and that caused the schema to fail validation in some of my early GQL work with PWA Studio.
I'd love to get comments back because it's a pain not being able to comment out code in the schema while trying things out.
I haven't found any standardized format for naming and describing queries (like DocBlock), but I wrote up some of our naming practices here (which is influenced a lot by PWA Studio's schemas): https://manuals.gravitydept.com/code/graphql/schemas
GraphQL supports the
#
character for comments in a GraphQL query.We should document our queries just like we document our JavaScript functions, including:
The text was updated successfully, but these errors were encountered: