Update .d.ts when schema.graphql is changed? #328
-
Is there a way to configure Maybe I am asking for solution to "XY problem" but the goal is to have nice developer experience when developing a full-stack feature on monorepo project. E.g. On a monorepo consisting of backend and frontend projects a full-stack developer would modify graphql (backend), this modifies |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I just tested this and it doesn't require me to restart the LSP, the LSP watches the The code can be seen here, maybe there's a bug for the LSP but we'd need a reproduction/... https://github.com/0no-co/GraphQLSP/blob/main/packages/graphqlsp/src/graphql/getSchema.ts#L150-L163 |
Beta Was this translation helpful? Give feedback.
I just tested this and it doesn't require me to restart the LSP, the LSP watches the
.graphql
file correctly for me and regenerates everything. That being said, the programmatic API of our cli-utils should allow you to create this, the CLI at this time does not implement watch.The code can be seen here, maybe there's a bug for the LSP but we'd need a reproduction/... https://github.com/0no-co/GraphQLSP/blob/main/packages/graphqlsp/src/graphql/getSchema.ts#L150-L163