Mongoose rename collection
问题 I am trying to make db.collection.renameCollection with mongoose, but i can't find that function anywhere. Did they miss to add it or i am looking at wrong place? As quick example of what i am doing is: var conn = mongoose.createConnection('localhost',"dbname"); var Collection = conn.model(collectionName, Schema, collectionName); console.log(typeof Collection.renameCollection); Which show undefined. var con = mongoose.createConnection('localhost',"dbname"); con.once('open', function() {