-
Notifications
You must be signed in to change notification settings - Fork 31
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
feature req: add tooling that generates types from schema #107
Comments
Hey @Birowsky The generator ive liked the most is https://github.com/dotansimha/graphql-code-generator |
Hey mister! I couldn't figure out how to do .json -> .d.ts with apollo-codegen. They only document how to accomplish that for clients. The types output file is empty: https://stackoverflow.com/q/45534529/592641 With graphql-typewriter however, all I do is: |
What step would you next take? |
hey @Birowsky |
Holy donkey! I hadn't noticed that you actually recommended a different package:} Trying it asap. |
Sad news. For this schema:
I got these types:
|
Hey @Birowsky, |
We don't need a branch for that.
these are the commands that I run on it:
here's the resulting schema.d.ts:
on the other hand, here's what
the types are way more complete, but they are incorrect (probably because the tool is old) |
Gql file here is not a valid schema.. |
sorry, i guess i was in a rush. edited. |
Could you open an issue with the exact errors in graphql-typewriter? We'd need to know what exactly is wrong. Although the project has not had an update for a while, it is not abandoned... |
@dotansimha can you please help @Birowsky integrating type generation into this example repo? |
Have you checked any of these projects?
Is there one you are leaning towards?
The text was updated successfully, but these errors were encountered: