graphql-kit / graphql-faker

🎲 Mock or extend your GraphQL API with faked data. No coding required.
MIT License
2.69k stars 225 forks source link

Support block comments in IDL #64

Closed ghost closed 5 years ago

ghost commented 5 years ago

I'm mocking a schema from Prisma which includes block comments like:

  """
  The subscription event gets only dispatched when all of the field names included in this list have been updated
  """
  updatedFields_contains_every: [String!]

but graphql-faker seems to dislike the """ format comments, complaining:

Syntax Error GraphQL (147:3) Expected Name, found String 146: 147: """ ^ 148: The subscription event gets only dispatched when all of the field names included in this list have been updated

Would it be possible to support schemas with this style of comments, so I can easily deploy graphql-faker using only the schema from my repo?

ghost commented 5 years ago

Just realized I missed this: #41

This is a duplicate