Scan Function in DynamoDB with reserved keyword as FilterExpression NodeJS
<p>My scan function : </p>

<pre><code>var tableName = 'faasos_orders',
    filterExp = 'status = :delivered OR status = :void OR status = :bad',
    projectionValues = '',
    expressionAttr = {};    
    expressionAttr[":delivered"] = "delivered";
    expressionAttr[":bad"] = "bad";
    expressionAttr[":void"] = "void"; 
    limit = 10;
  dynamoConnector.getItemUsingScan(tableName, filterExp, projectionValues, expressionAttr, function (err, data) {  ...........} 
</code></pre>

<p>Error on running : </p>

<pre><code>    { [ValidationException: Invalid FilterExpression: Attribute name is a reserved keyword; reserved keyword: status]
  message: 'Invalid FilterExpression: Attribute name is a reserved keyword; reserved keyword: status',
  code: 'ValidationException',
  time: Mon Apr 18 2016 21:57:30 GMT+0530 (IST),
  requestId: 'AV6QFHM7SPQT1QR3D4OO81ED4FVV4KQNSO5AEMVJF66Q9ASUAAJG',
  statusCode: 400,
  retryable: false,
  retryDelay: 0 }
</code></pre>

<p>Now I do get the point I am trying to use a reserved keyword in th
e filterExpression which is illegal. 
But if I run the same function through aws gui it returns data beautifully (check image for details): 
<a href="http://i.stack.imgur.com/DYFsY.png" rel="noreferrer">Scan function on status through gui</a></p>

<p>So the question is how do I add the filter expression through node without having to change the key name ??? </p>