Add GraphQL Schema support for type inheritance, generic typing, metadata decoration. Transpile the enriched GraphQL string schema into the standard string schema understood by graphql.js and the Apollo server client.
Other
187
stars
15
forks
source link
Syntax error in multiple interfaces parsing and output #62
When I tried to utilize this package building my schema, I came across a bug that a type implementing multiple interfaces finally got only one interface in the transformed schema.
I found that your match RegEx and output code is different with what the spec defines:
currently this lib assumes multiple interfaces to be type D implements A, B, C, but according to spec, this ought to be type D implements A & B & C. Below is some reference.
When I tried to utilize this package building my schema, I came across a bug that a type implementing multiple interfaces finally got only one interface in the transformed schema. I found that your match RegEx and output code is different with what the spec defines: currently this lib assumes multiple interfaces to be
type D implements A, B, C
, but according to spec, this ought to betype D implements A & B & C
. Below is some reference.