Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Graphql-js 16 #66

Open
IngusSkaistkalns opened this issue Nov 26, 2021 · 3 comments
Open

Support for Graphql-js 16 #66

IngusSkaistkalns opened this issue Nov 26, 2021 · 3 comments

Comments

@IngusSkaistkalns
Copy link
Contributor

Hello, seems that library is incompatible with graphql-js 6

node node_modules/.bin/graphql-schema-typescript generate-ts schema.graphql --output app/javascript/graphqlSchema.ts
Message:  null
Error:  Error: Expected undefined to be a GraphQL schema. 
    at assertSchema (.../node_modules/graphql/type/schema.js:35:11)
    at validateSchema (.../node_modules/graphql/type/validate.js:34:28)
    at graphqlImpl (.../node_modules/graphql/graphql.js:52:64)
    at .../node_modules/graphql/graphql.js:21:43
    at new Promise (<anonymous>)
    at Object.graphql (.../node_modules/graphql/graphql.js:21:10)
    at .../node_modules/graphql-schema-typescript/lib/utils.js:58:52
    at step (.../node_modules/graphql-schema-typescript/lib/utils.js:33:23)
    at Object.next (.../wasteapp/node_modules/graphql-schema-typescript/lib/utils.js:14:53)
    at .../node_modules/graphql-schema-typescript/lib/utils.js:8:71
@IngusSkaistkalns
Copy link
Contributor Author

Created PR -> #67

@IngusSkaistkalns
Copy link
Contributor Author

Also created https://github.com/IngusSkaistkalns/graphql-schema-typescript/tree/support-graphql-16-with-lib with lib, so we can actually use package via git repo.

@dangcuuson
Copy link
Owner

Hi all,

Apologize for the extremely late reply. Due to Covid and other unforeseen circumstances, I wasn't able to get a hold of this account for a long time.

Back and merged PR now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants