grt

graphql-retain-transformer

🚨 Prevent losing production data by enabling the retain deletion policy for your AWS Amplify API!

Showing:

Popularity

Downloads/wk

4

GitHub Stars

7

Maintenance

Last Commit

4mos ago

Contributors

1

Package

Dependencies

3

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

🚨 Prevent losing production data by enabling the retain deletion policy for your AWS Amplify API!

graphql-retain-transformer

Pull requests are welcome! npm GitHub license

Installation

npm install --save graphql-retain-transformer

How to use

Setup custom transformer

Edit amplify/backend/api/<YOUR_API>/transform.conf.json and append "graphql-retain-transformer" to the transformers field.

"transformers": [
    "graphql-retain-transformer"
]

Use @retain directive

Append @retain to target types.

type Todo @model @retain {
  id: ID!
  title: String!
  description: String
}

Contribute 🦸

Contributions are more than welcome! I love how AWS Amplify helps us developers building great apps in a short time. That's why I'd like to give back with contributions like this. If you feel the same and would like to join me in this project it would be awesome to get in touch! 😊

Please feel free to create, comment and of course solve some of the issues. To get started you can also go for the easier issues marked with the good first issue label if you like.

Development

  • It is important to always make sure the version of the installed graphql dependency matches the graphql version the graphql-transformer-core depends on.

License

The MIT License

Credits

The graphql-retain-transformer library is maintained and sponsored by the Swiss web and mobile app development company Florian Gyger Software.

If this library saved you some time and money please consider sponsoring me, so I can build more libraries for free and actively maintain them for you. Thank you πŸ™

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100