graphql init is not intializing config properly
wtrocki opened this issue Β· comments
On latest canary when performing init config gets overwritten:
[wtrocki@wtrockigraph generator-example (layered-resolvers β)]$ graphql init
? Select the best option for you I have an existing project using GraphQL and want to add GraphQL CLI (run from project root).
? Do you want to generate the backend code using a data model? Yes
? Where are you going to store your data models? ./models
? Where are you going to store your resolvers? ./server/src/resolvers
? Where are you going to store your schema files? ./server/src/schema
? Where is your schema? ./schema.graphql
? Do you want to use GraphQL Code Generator? Yes
Config file created at /Users/wtrocki/Projects/gsoc/graphback/examples/generator-example/.graphqlrc.yml
π GraphQL CLI project successfully initialized into the folder; /Users/wtrocki/Projects/gsoc/graphback/examples/generator-example
Next Steps:
- Change directory into project folder - cd /Users/wtrocki/Projects/gsoc/graphback/examples/generator-example
- Install yarn install to install dependencies
[wtrocki@wtrockigraph generator-example (layered-resolvers β)]$ cat .graphqlrc.yml
extensions:
generate:
folders:
model: ./models
resolvers: ./server/src/resolvers
schema: ./server/src/schema
codegen: {}
schema: ./schema.graphql
Closing as this is no longer happening. However, working on moving to generate option to the codegen.