amazon-archives / aws-amplify-serverless-plugin

Plugin for the Serverless Framework to output AWS Amplify configuration files.
Apache License 2.0
124 stars 30 forks source link

Generate GraphQL code for JS/TS #43

Open Gerharddc opened 5 years ago

Gerharddc commented 5 years ago

The GraphQL operations file that can currently be generated using the "graphql" type is not useable with JS/TS as far as I know. When using the codegen feature of the Amplify CLI, three different files (mutations.ts, queries.ts and subscriptions.ts) are generated which contain the same operations as the file that this plugin generates but as strings. It would be great if this plugin could generate those files or at least one file with the operations as strings.