title: Query condition missed key schema element : Validation Error
body: <p>I am trying to query <code>dynamodb</code> using the following code:</p>
  
  <pre><code>const AWS = require('aws-sdk');
  
  let dynamo = new AWS.DynamoDB.DocumentClient({
    service: new AWS.DynamoDB(
      {
        apiVersion: "2012-08-10",
        region: "us-east-1"
      }),
    convertEmptyValues: true
  });
  
  dynamo.query({
    TableName: "Jobs",
    KeyConditionExpression: 'sstatus = :st',
    ExpressionAttributeValues: {
      ':st': 'processing'
    }
  }, (err, resp) =&gt; {
    console.log(err, resp);
  });
  </code></pre>
  
  <p>When I run this, I get an error saying:</p>
  
  <pre><code>ValidationException: Query condition missed key schema element: id
  </code></pre>
  
  <p>I do not understand this. I have defined <code>id</code> as the partition key for the <code>jobs</code> table and need to find all the jobs that are in <code>processing</code> status.</p>