title: DyanmoDB shows Item Count = 0, not being populated, and not working in Appsync query
body: <p>I have added an index to my DynamoDB table in order to order the results but it doesn't appear to be doing anything. In the DyanmoDB dashboard it shows with 0 size and 0 item count.</p>
  
  <p><a href="https://i.stack.imgur.com/Ckwkq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ckwkq.png" alt="enter image description here"></a></p>
  
  <p>There are several hundred items in the table and they all have an id (the primary key) and a created value. I didn't set a range property when I created the table. The items in the picture below are in the correct order but the response via appsync is not.</p>
  
  <p><a href="https://i.stack.imgur.com/xs12N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xs12N.png" alt="enter image description here"></a></p>
  
  <p>I have added the index to the query which returns all the items and it does not seem to do anything, the order of the items is the same with or without the index:</p>
  
  <pre><code>"version" : "2017-02-28",
  "operation" : "Scan",
  "index" : "id-created-index",
  "limit": $util.defaultIfNull(${ctx.args.limit}, 20),
  "nextToken": $util.toJson($util.defaultIfNullOrBlank($ctx.args.nextToken, null))
  </code></pre>
  
  <p>What am I missing? Has the index not been built or is there something else I need to do to use it in a query?</p>
  
  <p>Update:
  The index now shows the correct item_count although it is still not ordering the results:</p>
  
  <p><a href="https://i.stack.imgur.com/KG0r9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KG0r9.png" alt="enter image description here"></a></p>