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

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

c# - Avoiding duplicate methods for Task and Task<T> -

javascript - Which segment of a polyline was clicked? -