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

Character @ in comments are not well transpiled #27

Open manuelalcantara-natgeo opened 5 years ago

manuelalcantara-natgeo commented 5 years ago

I have a problem transpiling a schema that contains a @ inside a comment, using version 0.18.1

type Query {
  # @code: Code for foo
  getAccessToken(code: String!): String!
  getLoggedUser(): String!
}

It is transpiled as:

type Query {
  # getAccessToken(code: String!): String!
  getLoggedUser(): String!
}

I do not know if it is a bug or the expected behavior.

Thanks for your help.