title: Mongoose rename collection
body: <p>I am trying to make <a href="https://docs.mongodb.com/manual/reference/method/db.collection.renameCollection/" rel="nofollow noreferrer">db.collection.renameCollection</a> with mongoose, but i can't find that function anywhere. Did they miss to add it or i am looking at wrong place?<br>
  As quick example of what i am doing is:</p>
  
  <pre><code>var conn = mongoose.createConnection('localhost',"dbname");
  var Collection = conn.model(collectionName, Schema, collectionName);
  console.log(typeof Collection.renameCollection);
  </code></pre>
  
  <p>Which show undefined.</p>
  
  <pre><code>var con = mongoose.createConnection('localhost',"dbname");
  con.once('open', function() {
      console.log(typeof con.db[obj.name]);
  });
  </code></pre>
  
  <p>This give also undefined.</p>