title: How to get collection name from a Mongoose model object
body: <p>I have a mongoose model like so:</p>
  
  <pre><code>var mongoose = require("mongoose");
  var Schema = mongoose.Schema;
  
  let schema = new Schema({
      test: String
  }, {
      collection: "test"
  });
  
  let model = mongoose.model("TestModel", schema);
  </code></pre>
  
  <p>How do I retrieve the collection name if in a callback I only have access to the "model" reference.</p>
  
  <p>Expecting something like:</p>
  
  <pre><code>model.getCollectionName();
  </code></pre>