suessflorian / gqlfetch

Generates a graphql server schema using introspection.
MIT License
16 stars 12 forks source link

Double quotes in comments cause errors #11

Closed Draiken closed 7 months ago

Draiken commented 1 year ago

If a field comment ends with double quotes, it causes issues.

type {
"""Comment with "double quotes""""
  id: ID
}

This was automatically generated fetching a public schema. I believe we need to use """ as proper multi-lines to make this work

etareduction commented 1 year ago

Yeah, I've also encountered this error. We just need to escape the inner quotes with \ like that:

"""Comment with \"double quotes\""""