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

update generated files #80

Open
sibelius opened this issue Mar 23, 2017 · 4 comments
Open

update generated files #80

sibelius opened this issue Mar 23, 2017 · 4 comments

Comments

@sibelius
Copy link
Collaborator

if I add one or more fields to my mongoose model, it would great to update the generated GraphQL files

@sibelius sibelius changed the title update generated fields update generated files Mar 23, 2017
@idkjs
Copy link

idkjs commented Apr 24, 2017

So to follow up on this, what exactly do you get with something like a create-graphql generate -tlcm Business --schema Business. I see the generated folders and that the schema is not update. Is the expected behaviour that the files are generated then we manually update the other files like graphql with relay connections etc? Already a big win. Im just trying to understand the expected behaviour. Thank you.

@lucasbento
Copy link
Collaborator

@idkjs: yes, it is!

Currently we don't update any of the generated files.

On the next major version we are going to support plugins (#59) by handling everything through AST with babel-template and babylon so it will be much easier to create and edit files.

@sibelius
Copy link
Collaborator Author

@idkjs the current work on plugins is on this branch https://github.com/lucasbento/create-graphql/tree/experimental

feel free to play against it, and try it out

@idkjs
Copy link

idkjs commented Apr 25, 2017

@sibelius how do I use the experimental branch?

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

No branches or pull requests

3 participants