How to use “IN” statement in FilterExpression using array - dynamodb

前端 未结 6 2066
猫巷女王i
猫巷女王i 2020-12-08 15:58

Checked AWS document but did not find any working example.

Here is my attempt

var params = {
            TableName: \"User\",
            IndexName:\         


        
6条回答
  •  悲哀的现实
    2020-12-08 16:25

    You could also use notionquest's approach and simply insert your other attribute values inside the titleObject{}. e.g.

    var titleObject = { ": country": "USA", ":status": 1, }; 
    

    Note: You might have to add schema like "S" if you're not using DocumentClient

         var titleObject = { 
          ":country": { "S":"USA" }, ...
    
    }
    

提交回复
热议问题