From 679b1a85036a4f71403e380c486995a048e5837c Mon Sep 17 00:00:00 2001 From: Doggy Date: Fri, 20 Aug 2021 06:38:49 -0500 Subject: [PATCH] chore(appsync): Correct VTL for aurora Serverless (#15874) docs: correct spelling of CHANGELOGThe old vtl will result in "unable to convert to object" ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/@aws-cdk/aws-appsync/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@aws-cdk/aws-appsync/README.md b/packages/@aws-cdk/aws-appsync/README.md index 3dbf2e27a277b..0145beae621f6 100644 --- a/packages/@aws-cdk/aws-appsync/README.md +++ b/packages/@aws-cdk/aws-appsync/README.md @@ -135,7 +135,7 @@ rdsDS.createResolver({ } `), responseMappingTemplate: MappingTemplate.fromString(` - $util.rds.toJsonObject($ctx.result) + $utils.toJson($utils.rds.toJsonObject($ctx.result)[0]) `), }); @@ -157,7 +157,7 @@ rdsDS.createResolver({ } `), responseMappingTemplate: MappingTemplate.fromString(` - $util.rds.toJsonObject($ctx.result) + $utils.toJson($utils.rds.toJsonObject($ctx.result)[1][0]) `), }); ```