title: How to do raw mongodb operations in mongoose?
body: <p>I'm asking this because when I write unit tests, I want to drop the test database and insert some initialize data, and also check the data in mongodb in testing. So I need raw operations to mongodb.</p>
  
  <p>How to do this in mongoose? What I can do now is just create the connection, and not find any document in mongoose's official site.</p>
  
  <pre><code> var mongoose = require('mongoose');
   mongoose.connect('mongo://localhost/shuzu_test');
  
   // get the connection
   var conn = mongoose.connection;
  </code></pre>
  
  <p>But how to:</p>
  
  <ol>
  <li>drop the database</li>
  <li>create a collection</li>
  <li>write some data to a collection</li>
  <li>query a collection</li>
  <li>drop a collection</li>
  </ol>