I am trying to create an SQL Statement in my AWS resolver which uses Values.
For example:
#set( $inserts = [] )
#foreach ( $item in $ctx.args.input.listItems)
$util.qr($inserts.add( ['$item.item_id', '$item.item_name', 'item.item_image_id'] ))
#end
And my SQL Statement is:
#set( $sql = "INSERT INTO items (item_id, item_name, item_image_id) VALUES $inserts" )
However this is not working. I there another way to create this type of SQL Statement? Thanks