title: Filtering by non-key field in DynamoDB (aws-cli)
body: <p>​i'm trying to query a number field in DynamoDB through aws-cli. 
  It forces me to set the key (userId) to be something, although I want to retrieve all the users where the queriedField equals to 0. this is the syntax:
  ​</p>
  
  <pre><code>aws dynamodb query
  --table-name TableName
  --key-condition-expression "userId = :userid" 
  --filter-expression "mapAttr.queriedField = :num"
  --expression-attribute-values '{ ":userid": { "S": "&lt;AccountID&gt;" }, ":num" : { "N": "0" }}' 
  </code></pre>
  
  <p>​</p>