2 回答
- 最新
- 投票最多
- 评论最多
0
Are you doing the util.autoId outside the statement block in the following manner? This will generate the id variable that will be set inside the statements.
#set($id=$utils.autoId())
{
"version": "2018-05-29",
"statements": [
"insert into Pets VALUES ('$id', '$ctx.args.input.type', $ctx.args.input.price)",
"select * from Pets WHERE id = '$id'"
]
}
Edited by: Ionut@AWS on Feb 21, 2019 2:08 PM
已回答 6 年前
0
Thank you!
Yup, it's right there in the sample, the darker font in italics made it blend in. Working now :)
已回答 6 年前
相关内容
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前