Checked AWS document but did not find any working example.
Here is my attempt
var params = {
TableName: \"User\",
IndexName:\
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" }, ...
}