Skip to content

Conversation

@cbumstead
Copy link
Owner

Due to BREAKING CHANGES in the GraphQL spec about how comments are treated means using a number sign to indicate a comment in GraphQL schema files is no longer visible in the metadata that represents that schema. graphql/graphql-js#927 The new recommendation is to use three quotes to indicate a comment block.

NO LONGER SUPPORTED

  # Examples:
  # pl1: playlist(id: "{{summerPlaylist.id}}") @sla(maxResponseTime: "1s")
  # pl2: playlist(id: "{{fallPlaylist.id}}") @ensureMinimum(nItems: 2, inArrays:["pl2.tracks"])
  playlist(id: ID!): Playlist

MUST USE THIS STYLE

  """
  Examples:
  pl1: playlist(id: "{{summerPlaylist.id}}") @sla(maxResponseTime: "1s")
  pl2: playlist(id: "{{fallPlaylist.id}}") @ensureMinimum(nItems: 2, inArrays:["pl2.tracks"])
  """
  playlist(id: ID!): Playlist

@cbumstead cbumstead requested a review from dillon-shf January 21, 2022 02:58
@cbumstead cbumstead self-assigned this Jan 21, 2022
@cbumstead cbumstead linked an issue Jan 21, 2022 that may be closed by this pull request
@dillon-shf dillon-shf merged commit f6007af into master Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop support for # comments in favor of """

3 participants