Skip to content

Commit

Permalink
chore(appsync): Correct VTL for aurora Serverless (#15874)
Browse files Browse the repository at this point in the history
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*
  • Loading branch information
liuqiaowei512 authored Aug 20, 2021
1 parent cb3b7ea commit 683ed7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-appsync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ rdsDS.createResolver({
}
`),
responseMappingTemplate: MappingTemplate.fromString(`
$util.rds.toJsonObject($ctx.result)
$utils.toJson($utils.rds.toJsonObject($ctx.result)[0])
`),
});

Expand All @@ -157,7 +157,7 @@ rdsDS.createResolver({
}
`),
responseMappingTemplate: MappingTemplate.fromString(`
$util.rds.toJsonObject($ctx.result)
$utils.toJson($utils.rds.toJsonObject($ctx.result)[1][0])
`),
});
```
Expand Down

0 comments on commit 683ed7e

Please sign in to comment.