Right syntax for multiple input event params in AWS Lambda NodeJS
问题 Can anyone help me correct with this code in Lambda Nodejs with multiple input event params. I've tried already the following but no luck! ABC = ? WHERE XYZ = ?;', event['ABC', 'XYZ'], function (error, results, fields) ABC = ? WHERE XYZ = ?;', event['ABC']['XYZ'], function (error, results, fields) ABC = ? WHERE XYZ = ?;', event['ABC'], event['XYZ'], function (error, results, fields) 回答1: The correct syntax that you should be using is below. By doing this you're providing them as a list. event