aerogear / create-graphql

Command-line utility to build production-ready servers with GraphQL.
MIT License
440 stars 38 forks source link

update generated files #80

Open sibelius opened 7 years ago

sibelius commented 7 years ago

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

idkjs commented 7 years ago

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 commented 7 years ago

@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 commented 7 years ago

@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 commented 7 years ago

@sibelius how do I use the experimental branch?