How to fetch the records from dynamodb from apigateway using mapping template VTL and partiql select statement?

54 views Asked by At

I AM USING VTL TEMPLATE AND PARTIQL TO SELECT THE RECORDS FROM DYNAMODB and testing through POSTMAN.

{

"Statement":"SELECT * from "table" where name = ?",
“Parameters”:[
"S": "$input.path('$.name')"]

} 

From postman I am passing in body and using POST method

{
"name":"polly"
}

I have used http post method to get from dynamodb via apigateway. No lambda in between.

I am using http post method to get the names from the dynamodb.

Please chime in if you know how to query from apigateway VTL TO DYNAMODB

0

There are 0 answers