graphdoc
graphdoc copied to clipboard
Comments and Nulls
I have extracted a schema from an API. However, graphdoc fails to parse for 3 reasons;
- there is a "\uFFD" character
- The schema had multi-line comments i.e. see below for example from the schema
"""
The Date
scalar type represents a year, month and day in accordance with the
ISO-8601 standard.
"""
scalar Date
- there are nulls
For the first issue i converted to utf-8 then I replaced all occurences of null with "null" and finally I removed the comments
This worked and graphdoc produces the documentation but it would be great the tool could parse this schema.
I used the npm package get-graphql-schema to produce the schema so unsure if some of these issues are due to that package producing an invalid schema files.
For comments you can see https://github.com/2fd/graphdoc/issues/64#issuecomment-643193063
I have PRed updated dependencies to fix this issue at #259