From 864cffdaf459c61109dbede6eae6d00d383d8fc1 Mon Sep 17 00:00:00 2001 From: Rene Brandel Date: Tue, 27 Oct 2020 09:41:51 -0700 Subject: [PATCH 1/3] Added 3rd party @ttl directive --- docs/cli/graphql-transformer/directives.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/cli/graphql-transformer/directives.md b/docs/cli/graphql-transformer/directives.md index b1a0e6a14c1..dfc60294434 100644 --- a/docs/cli/graphql-transformer/directives.md +++ b/docs/cli/graphql-transformer/directives.md @@ -17,4 +17,7 @@ The Amplify CLI provides GraphQL directives to enhance your schema with addition - [`@searchable`: Makes your data searchable by streaming it to Elasticsearch](~/cli/graphql-transformer/searchable.md) - [`@versioned`: Defines the versioning and conflict resolution strategy for an @model type](~/cli/graphql-transformer/versioned.md) +## 3rd party directives +- [`@ttl`: Enable DynamoDB's time-to-live feature to auto-delete old entries in your AWS Amplify API](https://github.com/flogy/graphql-ttl-transformer) + \ No newline at end of file From b391c353de19643460e8066aea58b9da51c34b5a Mon Sep 17 00:00:00 2001 From: Rene Brandel Date: Tue, 27 Oct 2020 09:47:32 -0700 Subject: [PATCH 2/3] moved the custom transformer & directives into a note --- docs/cli/graphql-transformer/directives.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cli/graphql-transformer/directives.md b/docs/cli/graphql-transformer/directives.md index dfc60294434..ccc1ebeb554 100644 --- a/docs/cli/graphql-transformer/directives.md +++ b/docs/cli/graphql-transformer/directives.md @@ -20,4 +20,4 @@ The Amplify CLI provides GraphQL directives to enhance your schema with addition ## 3rd party directives - [`@ttl`: Enable DynamoDB's time-to-live feature to auto-delete old entries in your AWS Amplify API](https://github.com/flogy/graphql-ttl-transformer) - \ No newline at end of file +> Looking to build your own transformers & directives? Check out the guide on [how to author your own transformer & directives](~/cli/plugins/authoring.md#authoring-custom-graphql-transformers--directives). \ No newline at end of file From eae580854846cd91581e5c17e86a14ac754b07f7 Mon Sep 17 00:00:00 2001 From: Rene Brandel Date: Tue, 27 Oct 2020 09:53:58 -0700 Subject: [PATCH 3/3] Also adding the plugin to the 3rd party plugins section --- docs/cli/plugins/plugins.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/cli/plugins/plugins.md b/docs/cli/plugins/plugins.md index 42f445e0513..0b8fc8e3e9c 100644 --- a/docs/cli/plugins/plugins.md +++ b/docs/cli/plugins/plugins.md @@ -26,6 +26,7 @@ Plugins are explicitly managed in the Amplify CLI pluggable platform. Plugins en * [amplify-category-video](https://www.npmjs.com/package/amplify-category-video) * [amplify-category-docs](https://www.npmjs.com/package/amplify-category-docs) +* [graphql-ttl-transformer](https://github.com/flogy/graphql-ttl-transformer) ## Plugin installation