title: How to set Alias name in Mongoose
body: <p>For reducing the MongoDB's document size in mongoose, I want to use the alias feature. But I don't know how to set that for  <strong>location</strong>?</p>
  
  <pre><code>const questionSchema = new Schema({
      location: {
          country:  { type: String },
          province: { type: String },
          town:     { type: String },
      });
  
  </code></pre>
  
  <pre><code>const questionSchema = new Schema({
      l: { //alias: 'location', &lt;--  **HOW CAN I SET ALIAS FOR LOCATION ???**
          c: { type: String, alias: 'country'  },
          p: { type: String, alias: 'province' },
          t: { type: String, alias: 'town'     },
      });
  </code></pre>