0

I'd like to perform Drop Database, Drop Collection Index, getIndex() and e.t. such functions using mongoose, nodeJS.

I was looking around the same issues, but haven't got any solutions yet.

I'll appreciate any help.

Ivan
  • 149
  • 1
  • 2
  • 8

1 Answers1

0
store.collection('sessions',function(err, collection){
   collection.remove({},function(err, removed){
   });
});
vcazan
  • 137
  • 1
  • 1
  • 12