php - QueryFilter not working in DynamoDB -


i'm trying query queued notifications of table 'notifications' table in dynamodb.

global secondary indexes: name: idto-time-index hash key: idto (number) range key: time (number) 

why i'm getting results , not ones status=='queued'?

$params = array(     'tablename' => 'notifications',     'indexname' => 'idto-time-index',     'keyconditions' => array(         "idto" => array(             "attributevaluelist" => array(                 array('n' => 1)             ),             "comparisonoperator" => "eq"         )     ),     'scanindexforward' => false,     'queryfilter' => array(         "status" => array(             "attributevaluelist" => array(                 array('s' => (string)"queued")             ),             "comparisonoperator" => "eq"         )     ), );  $response = $dynoclient->query($params); 

i had same problem, solve problem updating asw sdk, reason query filter added recently, in old sdk when execute same query query filter not working.

updating sdk should solve problem 

hope helps


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -