How to render code-first AppSync GraphQL schema definition to schema string? #14966
-
I'm using the code-first approach for defining the GraphQL schema. This helps me to reuse existing constants and types when defining the schema. However, I also want to run GraphQL Codegen to produce types for other uses cases, such as Lambda specifics and for the frontend clients. What I am missing is a way to render the code-first schema back to a Is that possible? Ping: @BryanPan342 any ideas? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yup! I think this would be a good feature to add and something we mentioned in this issue But I found a way to eject it manually within your own CDK app: |
Beta Was this translation helpful? Give feedback.
Yup! I think this would be a good feature to add and something we mentioned in this issue
But I found a way to eject it manually within your own CDK app:
https://github.com/BryanPan342/starwars-code-first/blob/9efb83798f9127423edc0f02d6a21fd87b8dd0ab/bin/starwars-code-first.ts#L10-L19