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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -