title: DynamoDB scan leaves valid item out
body: <p>In a DynamoDB table, I have an item with the following scheme:</p>
  
  <pre><code>{
      id: 427,
      type: 'page',
      ...other_data
  }
  </code></pre>
  
  <p>When querying on primary index (id), I get the item returned as expected.</p>
  
  <p>With a <code>scan</code> operation inside AWS DynamoDB web app to get all items with type <code>page</code>, 188 items including this missing item are returned. However, performing this scan operation inside Lambda with the AWS SDK, only 162 items are returned. Part of the code looks like:</p>
  
  <pre><code>const params = { 
      TableName: &lt;my-table-name&gt;,
      FilterExpression: '#type = :type',
      ExpressionAttributeNames: { '#type': 'type' },
      ExpressionAttributeValues: { ':type': 'page' }
  };
  
  dynamodb.scan(params, (error, result) =&gt; {
      if (error) {
        console.log('error', error);
      } else {
        console.log(result.Items); // 162 items
      }
  });
  </code></pre>
  
  <p>What is missing here?</p>