If you stringify the event you will notice that the queryStringParameters is actually an object rather than an array. So in order to get all queryStrings params passed in an API Gateway request you can simply make a for each key value pair in the object like this:
var element = {}; for (var key in event.queryStringParameters) { element[key] = event.queryStringParameters[key]; }
Comments
Post a Comment