amazon web services - dynamodb - scan items by value inside array -


i'm doing table scan. table has array 1 of fields, "apps" field (apps not key of kind). want select rows, apps array contains value "myapp". tried of kind, syntax incorrect:

    comparisonoperator = "#apps contains :v",     expressionattributenames = {         '#apps': 'apps'     },     expressionattributevalues = {         ":v": "myapp"     } 

thanks.

the documentation condition expressions states appropiate syntax is:

contains(#apps, :v) 

the correct request be:

filterexpression: "contains(#apps, :v)", expressionattributenames: { "#apps": "apps" }, expressionattributevalues: { ":v": "myapp" } 

Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

formula - R: how to pass in a reference to the variable in glm or lm? -