title: How do I reference subdocument array's ObjectId to another model
body: <pre><code>usermodel:
  {
  "_id" : ObjectId("5a2622b0004be35f4baf70e3"),
  "username": "testuser",
  "bankdetails" : [ 
          {
              "_id" : ObjectId("5a294146015da72db1560326"),            
              "bankname" : "bankofamerica"
          }
  ]
  }
  
  
  samplemodel:
  {
      "_id" : ObjectId("5a41f785416d0d3d93794ca9"),   
      "bankid" : ObjectId("5a294146015da72db1560326"),
  }
  
  
  samplemodel.find().populate('bankid').exec(function(err,resData){
      res.json(resData);
  });
  </code></pre>
  
  <p>I have used the above code but not working this code...please give some solution to solve this problem.....</p>