agmen-hu / node-datapumps

Node.js ETL (Extract, Transform, Load) toolkit for easy data import, export or transfer between systems.
MIT License
291 stars 38 forks source link

Apply sort on mongodb #47

Open rafaneri opened 7 years ago

rafaneri commented 7 years ago

Hello,

I'm trying to use the sort method in mongodbmixin, but without success. I did these tests:

pump.find(query).sort({})
// and
pump._mongo.collection.find(query).sort({}).stream()

What is the way to use the sort?

tks!