

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 的 VTL 解析器教程 AWS AppSync
<a name="tutorials"></a>

**注意**  
我们现在主要支持 APPSYNC\_JS 运行时系统及其文档。请考虑使用 APPSYNC\_JS 运行时系统和[此处](https://docs.aws.amazon.com/appsync/latest/devguide/tutorials-js.html)的指南。

数据源和解析器用于翻译 GraphQL 请求并从 AWS 您的资源中获取信息。 AWS AppSync AWS AppSync 支持自动配置和与某些数据源类型的连接。 AWS AppSync 还支持 AWS Lambda Amazon DynamoDB、关系数据库（亚马逊 Aurora Serverless）、 OpenSearch 亚马逊服务和 HTTP 终端节点作为数据源。您可以将 GraphQL API 与现有 AWS 资源一起使用，也可以从头开始构建数据源和解析器。以下各节旨在以教程的形式阐明一些比较常见的 GraphQL 使用案例。

AWS AppSync 使用以 Apache Velocity 模板语言 (VTL) 为解析器编写的*映射*模板。有关使用映射模板的更多信息，请参阅[解析器映射模板参考](resolver-mapping-template-reference.md#aws-appsync-resolver-mapping-template-reference)。有关使用 VTL 的更多信息，请参阅[解析器映射模板编程指南](resolver-mapping-template-reference-programming-guide.md#aws-appsync-resolver-mapping-template-reference-programming-guide)。

AWS AppSync 支持从 GraphQL 架构自动配置 DynamoDB 表，如从架构置备（可选）和启动示例架构中所述。您也可以从现有 DynamoDB 表中导入，从而创建架构并连接解析器。在“从 Amazon DynamoDB 导入”（可选）中简要说明了该内容。

**Topics**
+ [使用 DynamoDB 解析器创建简单的文章应用程序](tutorial-dynamodb-resolvers.md)
+ [使用 AWS Lambda 解析器](tutorial-lambda-resolvers.md)
+ [使用 OpenSearch 服务解析器](tutorial-elasticsearch-resolvers.md)
+ [使用本地解析器](tutorial-local-resolvers.md)
+ [组合使用 GraphQL 解析器](tutorial-combining-graphql-resolvers.md)
+ [执行 DynamoDB 批处理操作](tutorial-dynamodb-batch.md)
+ [执行 DynamoDB 事务](tutorial-dynamodb-transact.md)
+ [使用 HTTP 解析器](tutorial-http-resolvers.md)
+ [使用 Aurora Serverless v2 解析器](tutorial-rds-resolvers.md)
+ [使用管线解析器](tutorial-pipeline-resolvers.md)
+ [对版本控制的数据来源执行增量同步操作](tutorial-delta-sync.md)