From 8bddf9e6d4c99e6646dbacab6e3604f1380bc4ee Mon Sep 17 00:00:00 2001 From: Doggy Date: Tue, 3 Aug 2021 13:30:36 -0500 Subject: [PATCH] Correct VTL for aurora Serverless The old vtl will result in "unable to convert to object" --- 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 32e0558ccd4f8..dd6fc26d0fe75 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]) `), }); ```