Skip to content

Commit

Permalink
Merge pull request #2522 from aws-amplify/fix/searchable-warn
Browse files Browse the repository at this point in the history
feat:added warning for searchable
  • Loading branch information
mauerbac authored Oct 23, 2020
2 parents 0945379 + 8b4b268 commit 0bd9f71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/cli/graphql-transformer/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -2099,6 +2099,8 @@ The `@searchable` directive handles streaming the data of an `@model` object typ
> **Migration warning**: You might observe duplicate records on search operations, if you deployed your GraphQL schema using CLI version older than 4.14.1 and have thereafter updated your schema & deployed the changes with a CLI version between 4.14.1 - 4.16.1.
Please use this Python [script](https://github.com/aws-amplify/amplify-cli/blob/master/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) to remove the duplicate records from your Elasticsearch cluster. [This script](https://github.com/aws-amplify/amplify-cli/blob/master/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) indexes data from your DynamoDB Table to your Elasticsearch Cluster. View an example of how to call the script with the following parameters [here](https://aws-amplify.github.io/docs/cli-toolchain/graphql#example-of-calling-the-script).

> **Billing warning**: `@searchable` incurs an additional cost depending on instance size. For more information refer to [ElasticSearch service pricing](https://aws.amazon.com/elasticsearch-service/pricing/)
### Definition

```graphql
Expand Down Expand Up @@ -2732,4 +2734,3 @@ Note that there is no check to ensure that the reference variable (here the post
### Generates

The `@http` transformer will create one HTTP datasource for each identified base URL. For example, if multiple HTTP resolvers are created that interact with the "https://www.example.com" endpoint, only a single datasource is created. Each directive generates one resolver. Depending on the definition, the appropriate `body`, `params`, and `query` input types are created. Note that `@http` transformer does not support calling other AWS services where Signature Version 4 signing process is required.

0 comments on commit 0bd9f71

Please sign in to comment.