nicolasdao / graphql-s2s

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

Open ZhongYic00 opened 11 months ago

ZhongYic00 commented 11 months ago

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.