Library of custom GraphQL transformers that extent AWS Amplify functionality.
| Packages | Description |
|---|---|
| Create Model Transformer | Creates a model on trigger event (ex. Cognito Conf) |
| Send Email Transformer | Sends an email on DynamoDB mutation |
| Process Image Transformer | Transforms images in S3 |
| Blog Plugin | Adds blog functionality to your Amplify project |
- This project uses workspaces. To install dependencies run
npm install -wsfrom the root directory. - To build transformers and to zip the lambda functions
npm run compile -ws - To execute tests
npm test
To run and example project from the examples directory:
cd examples/create-model-post-conf/- From the example root directory run
npm install - Have amplify-cli installed globally and run
amplify initin the example root directory - Import the transformer with the absolute path in the
examples/<example-project-name>/amplify/backend/api/<api-name>/transform.conf.jsonfor example:
{
"Version": 5,
"ElasticsearchWarning": true,
"transformers": [
"file:///Users/ollie/Work/amplifiers/packages/amplify-graphql-create-model-transformer/dist/index.js"
]
}- Make changes to the transformer and compile.
- To verify the stack before pushin run
amplify api gql-compilefrom the example root directory - To test remotely deploy the changes with
amplify pushfrom the example root directory
Contributions are more than welcome! Please feel free to open an issue or a pull request.
The amplifiers library is maintained by
- OllieTheDev OllieTheDev