title: How to find all the collections from mongoose
body: <p>I am supposed to find all the collections stored in the a mongo database.</p>
  
  <pre><code>require('../app/models/schemas'); //loading application schemas
  mongoose.connect('mongodb://localhost/test');
  var db = mongoose.connection;
  db.on('error', console.error.bind(console, 'connection error:'));
  var collections = db.collections();
  console.log(collections);
  </code></pre>
  
  <p>Here collections prints a combined <code>'json'</code> data of all the schemas.</p>
  
  <p>But i want to find all the collections stored in the mongo test database.
  How to achieve it with mongoose?</p>