Repository navigation
|
I'm trying to watch for changes and generate the types but I need to wait until the graphql server is up and running to generate the types otherwise the generation fails, issue is my ts-node-dev is also watching for changes so when I change my schema, the server restarts and graphql-codegen tries to generate the types but because the server has not yet restarted, it fails, any ideas? |
Answered by
ardatan
May 16, 2020
Replies: 1 comment 1 reply
|
I think you point to the URL endpoint as the schema in your codegen.yml file. You can point to your code files instead so codegen can take directly from your code. |
1 reply
Answer selected by
gmencz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you point to the URL endpoint as the schema in your codegen.yml file. You can point to your code files instead so codegen can take directly from your code.