You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all. This is an amazing repo that is super helpful to start a project with a similar stack.
It is more a question than a bug. I realized that the type files for both TS and GrapqhQL are (re)generated only when a new GraphQL query is executed.
If I look at the examples from nexus repo like this one, I noticed they are using ts-node-dev
Did you find any way to achieve the same behavior using the serverless-offline plugin?
It is quite a big drawback not to have the TS types available without having to run the server first.
Cheers
The text was updated successfully, but these errors were encountered:
Indeed, it only regenerates the nexus files when hitting a request on the endpoint, if you leave the playground open, it should be fine.
An alternative solution could be to use rp in your terminal to replay the last HTTP request and regenerates the nexus files:
Serverless: Offline [HTTP] listening on http://localhost:1337
Serverless: Enter "rp" to replay the last request
It would be ideal to generate the nexus files on save but I'm not sure how to do that yet (probably a webpack configuration thing), any contributions are welcome 👍
Hi,
First of all. This is an amazing repo that is super helpful to start a project with a similar stack.
It is more a question than a bug. I realized that the type files for both TS and GrapqhQL are (re)generated only when a new GraphQL query is executed.
If I look at the examples from nexus repo like this one, I noticed they are using
ts-node-dev
Did you find any way to achieve the same behavior using the
serverless-offline
plugin?It is quite a big drawback not to have the TS types available without having to run the server first.
Cheers
The text was updated successfully, but these errors were encountered: