Skip to content

Commit

Permalink
chore(appsync): Correct VTL for aurora Serverless (aws#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
joedevgee authored and TikiTDO committed Sep 6, 2021
1 parent bf412ef commit 5534d8f
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 5534d8f

Please sign in to comment.