I have configured my AppSync API using AWS CDK and have decided not to utilize the Amplify framework. I am currently exploring methods for generating Typescript definitions from my AppSync schema.graphql file without relying on Amplify, meaning I do not have access to the amplify codegen command. After attempting to run it, I realized that Amplify expects certain directory structures which caused it to fail.
Although I considered using https://graphql-code-generator.com, it does not support special types used by AppSync such as AWSDateTime. One workaround suggested is to publish the API and obtain the schema from a GraphQL endpoint, but this solution is less than ideal as I would prefer to generate these types locally without having to publish the full schema.
Is there a way to achieve this without publishing the schema?