create-graphql icon indicating copy to clipboard operation
create-graphql copied to clipboard

update generated files

Open sibelius opened this issue 7 years ago • 4 comments

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

sibelius avatar Mar 23 '17 17:03 sibelius

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.

idkjs avatar Apr 24 '17 18:04 idkjs

@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.

lucasbento avatar Apr 24 '17 21:04 lucasbento

@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

sibelius avatar Apr 24 '17 21:04 sibelius

@sibelius how do I use the experimental branch?

idkjs avatar Apr 25 '17 07:04 idkjs