we have create a serverless application an we are using appSync service with mySQL Aurora database and we don't get respose.

0

we are using this request VTL code.

{ "version": "2018-05-29", "statements": [ "INSERT INTO company1.companies(name) VALUES (:name)", "SELECT LAST_INSERT_ID() AS id, name FROM company1.companies WHERE id = LAST_INSERT_ID()" ], "variableMap": { ":name": $util.toJson($ctx.args.name) } } and { "version": "2018-05-29", "statements": [ "INSERT INTO company1.companies(name) VALUES (:name)", "SELECT id, name FROM company1.companies WHERE name= :name" ], "variableMap": { ":name": $util.toJson($ctx.args.name) } }

both but we don't get response.

and response VTL code.

$util.toJson($ctx.result)

please give me suggestion

没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则