@aws-amplify/graphql-predictions-transformer
Version:
Amplify GraphQL @predictions transformer
20 lines (14 loc) • 676 B
Markdown
# GraphQL @predictions Transformer
# Reference Documentation
### @predictions
The `` directive allows you to query an orchestration of AI/ML services such as Amazon Rekognition, Amazon Translate, and/or Amazon Polly.
#### Definition
```graphql
directive (actions: [PredictionsActions!]!) on FIELD_DEFINITION
enum PredictionsActions {
identifyText # uses Amazon Rekognition to detect text
identifyLabels # uses Amazon Rekognition to detect labels
convertTextToSpeech # uses Amazon Polly in a lambda to output a presigned url to synthesized speech
translateText # uses Amazon Translate to translate text from source to target language
}
```