dangcuuson / graphql-schema-typescript

Generate TypeScript from GraphQL's schema type definitions
190 stars 36 forks source link

There can be only one type named "Date". #64

Closed ThePlenkov closed 2 years ago

ThePlenkov commented 2 years ago

Hi! I'm trying to convert Gitlab graphql schema using this CLI.

Here is the output:

npx graphql-schema-typescript generate-ts .     
Message:  null
Error:  Error: Unknown type "ID".
[](url)
Unknown type "ID".

There can be only one type named "Date".

There can be only one type named "User".

Field "User.email" can only be defined once.

Field "User.username" can only be defined once.

Could you please have a look at this file and to tell what's wrong with it? OR may be there is an error in the parser.

schema.zip