title: how to get all collection names from a specific db in mongo using nodejs
body: <p>Recently I want to get all collection names from a db in mongo. And my develop environment is nodejs + express + mongoose. I tried <em>mongooser.conncetion.db.getCollectionNames(or listCollections or collections)</em>, but any does not work. I guess the it is the version problem, maybe the latest mongoose api does not contain those functions.</p>
  
  <p>Consequently, how to obtain all collection names from a db using mongoose?</p>
  
  <p>Thank you so much for any help!</p>