dangcuuson / graphql-schema-typescript

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

CLI doesn't take the folderName argument. #35

Closed BYODKM closed 4 years ago

BYODKM commented 4 years ago

I'm following the graphql-schema-typescript generate-ts --help. It says

graphql-schema-typescript generate-ts <folderPath>

But CLI doesn't take the folderName argument.

$ npx graphql-schema-typescript generate-ts graphql
Message:  null
Error:  GraphQLError: Syntax Error: Unexpected Name "gql"

I tried ./graphql or full-path, but nothing changes.

BYODKM commented 4 years ago

npm run graphql-schema-typescript generate-ts graphql worked!

I'm ok with this.