graphdoc icon indicating copy to clipboard operation
graphdoc copied to clipboard

Comments and Nulls

Open garfieldmoore opened this issue 4 years ago • 2 comments

I have extracted a schema from an API. However, graphdoc fails to parse for 3 reasons;

  1. there is a "\uFFD" character
  2. 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

  1. 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.

garfieldmoore avatar Jun 17 '20 18:06 garfieldmoore

For comments you can see https://github.com/2fd/graphdoc/issues/64#issuecomment-643193063

MrOrz avatar Jun 23 '20 09:06 MrOrz

I have PRed updated dependencies to fix this issue at #259

bsmedberg-xometry avatar Dec 04 '20 16:12 bsmedberg-xometry