AWS Dynamodb boto3 batch_get_item ProjectionExpression not working -


with boto3 python library, below code block while using projectionexpression, getting error requested resource not found.

when not use projectionexpression, works brings columns.

sellerdict = dynamodb.batch_get_item(     requestitems={'seller':                    {'keys': vq},                    'projectionexpression': {                    'keys': [{'mobileno': 'n'},                              {'offer': 'n'}]                     }                   } ) 

the projectionexpression should string of attributes. in below example, yearkey number attribute, title string attribute , info map attributes. have projected rating attribute info map.

requestitems={     'movies': {         'keys': [             {                 'yearkey': 2012,                 'title' : 'the big new movie 2012'             },         ],                     'consistentread': true,         'projectionexpression': 'yearkey, title, info.rating'                 } }, 

Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -