-
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? |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.