amplify-codegen
amplify-codegen copied to clipboard
Ability to setup codegen to output to a function
Is this feature request related to a new or existing Amplify category?
function, api
Is this related to another service?
codegen
Describe the feature you'd like to request
Ability to configure and output codegen to multiple locations (specifically functions) from amplify codegen configure
Describe the solution you'd like
I'd like the ability to do: amplify codegen configure
- add ability to add additional output locations (specifically a specific lambda function or layer)
- ability to set output format (ts, js, etc)
- codegen would then output files to multiple locations when run
The use case is ensuring that functions are up to date with the latest graphql, and simplifying the process of getting up and running with queries/mutations in functions.
Describe alternatives you've considered
The manual process sucks...lots of errors over time...hard to keep things in sync.
Additional context
No response
Is this something that you'd be interested in working on?
- [ ] 👋 I may be able to implement this feature request
Would this feature include a breaking change?
- [ ] ⚠️ This feature might incur a breaking change
Hey, 👋 thanks for raising this! I'm going to transfer this over to our codegen repository for better assistance 🙂
@ykethan - I believe this actually should be in the CLI because codegen can already do this via the config files as described here:
https://github.com/aws-amplify/amplify-codegen/issues/49
The issue is that there is no way to do this from the CLI - you have to hack the config file...
What I am looking for is something either in "amplify codegen configure" that will set this up, or something in "amplify function update" that will set this up...