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

Please show how each of the examples are translated to a JSON model #3

Open
kristianmandrup opened this issue Jun 15, 2019 · 4 comments

Comments

@kristianmandrup
Copy link
Contributor

Especially interested in Array types, such as [Book] for Author

author.graphql

Please add input model -> output model examples for both and preferably add tests for these two as well. Cheers!

@kristianmandrup
Copy link
Contributor Author

I'm in the process of creating a schema-converter for use with various schema based tools, such as schema-to-yup

Thanks.

@jjwtay
Copy link
Owner

jjwtay commented Jun 15, 2019

I will be adding tests once I finish the update I'm in the middle of with the typeorm converter. As for examples I will double check the output but when I first re did the readme the schemas (input model) were checked into the examples folder and the output is already in the readme. The typings for the output model are in the npm repo or can be cloned and built.

@jjwtay
Copy link
Owner

jjwtay commented Jun 15, 2019

I just noticed that as far as the directive parsing goes it's not 100% up to date with the examples since I pulledout some of those directives in the folder examples to move into the other repo. Will update examples slightly to match but more of less it is currently correct.

@jjwtay
Copy link
Owner

jjwtay commented Jun 15, 2019

Ok I updated the example graphql files to remove the references to the other library. I also checked in the outputs of me running it once for each output type (ts, js, json). Updated readme to point to that.

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