gadelkareem / sails-dynamodb

Amazon DynamoDB adapter for Waterline / Sails.js
http://sailsjs.org
46 stars 22 forks source link

Make sort work in a sensible way #35

Closed ferrants closed 7 years ago

ferrants commented 7 years ago

Related: https://github.com/gadelkareem/sails-dynamodb/issues/34

Description: Have sort work by passing a dictionary containing a key of the index name and the direction as its value.

sort: {indexName: -1}
ferrants commented 7 years ago

bah, I get Uncaught TypeError: query.usingIndex is not a function. I guess it's in scan mode?

ferrants commented 7 years ago

Updated docs instead: https://github.com/gadelkareem/sails-dynamodb/pull/36