-
Notifications
You must be signed in to change notification settings - Fork 38
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
Read existing 'schema.json' to serve querys/mutations #12
Comments
maybe this could be useful: https://gist.github.com/voodooattack/ce5f0afb5515ab5a153e535ac20698da |
@femesq: awesome idea, was just thinking about using it also for front-end development, creating mutations from scratch is still a pain in the ass. |
How do you guys suggest that we identify if the CLI is running on a front-end or back-end project? We may use the |
this one could be helpful: https://github.com/apollostack/apollo-codegen |
Add.js.template - simple screen with a form with all input fields of the mutation from schema.json, it commit mutation onSubmit AddMutation.js.template - simple add mutation template Edit.js.template - simple screen with a form to edit a graphql object type EditMutation.js.template - simple edit mutation template List.js.template - list of objects from relay View.js.template - tabbed detail view of graphql object type WIP of #12
Add.js.template - simple screen with a form with all input fields of the mutation from schema.json, it commit mutation onSubmit AddMutation.js.template - simple add mutation template Edit.js.template - simple screen with a form to edit a graphql object type EditMutation.js.template - simple edit mutation template List.js.template - list of objects from relay View.js.template - tabbed detail view of graphql object type WIP of #12
Add.js.template - simple screen with a form with all input fields of the mutation from schema.json, it commit mutation onSubmit AddMutation.js.template - simple add mutation template Edit.js.template - simple screen with a form to edit a graphql object type EditMutation.js.template - simple edit mutation template List.js.template - list of objects from relay View.js.template - tabbed detail view of graphql object type WIP of #12
Add.js.template - simple screen with a form with all input fields of the mutation from schema.json, it commit mutation onSubmit AddMutation.js.template - simple add mutation template Edit.js.template - simple screen with a form to edit a graphql object type EditMutation.js.template - simple edit mutation template List.js.template - list of objects from relay View.js.template - tabbed detail view of graphql object type WIP of #12
If we could read an existing
schema.json
file, for creating the types, queries and mutations allowed by the server, it would be great for frontend development...Another improvement would be generating "Loren Ipsun"-style data for each type.
This is specially useful for other backend languages/frameworks (Flask, Django, Rails, etc) that generates
schema.json
file.The text was updated successfully, but these errors were encountered: