title: Inserting a schema to another schema mongodb (mongoose)
body: <p>I have two schemas that I want to be "connected" in the following way:<br>
  The first one is a <code>User</code> schema which includes the user's email , password and name:<br></p>
  
  <pre><code>var userSchema = new Schema({
      local            : {
          email        : String,
          password     : String,
          name         : String
      }
  });
  </code></pre>
  
  <p>The second one is an apartment (listing) schema which includes details about the apartment, and one of those details is the owner - which is a <code>User</code>:<br></p>
  
  <pre><code>var listingSchema = new Schema({
          street          : String,
          buildingNumber  : Number,
          apartmentNumber : Number,
          price           : Number,
          owner           :{
                  type: Schema.ObjectId,
                  ref: 'User'
          }
  });
  </code></pre>
  
  <p>Usually I would do something like so:<br></p>
  
  <pre><code>db.listings.insert({"street" : "Gordon", "buildingNumber" : 40, "apartmentNumber" : 69, "beds" : 3, "price" : 2000}
  </code></pre>
  
  <p>But what I would like to do now is something like this: <br></p>
  
  <pre><code>db.listings.insert({"street" : "Gordon", "buildingNumber" : 40, "apartmentNumber" : 69, "beds" : 3, "price" : 2000, "owner" : Idos})
  </code></pre>
  
  <p>I tried several approaches to passing this parameter but failed in all of them, how(can) it be achieved?</p>