title: Removing the reference through the loop
body: <p>Field 'attributeMetaDataList' has reference like</p>
  
  <pre><code>, "path" : "Health &amp; Personal Care &gt; Health &gt; Health Aids &gt; Bathroom Aids &amp; Safety &gt; Bathtub Rails", "attributeMetaDataList" : [    {
          "$ref" : "AttributeMetadata",
          "$id" : ObjectId("50726bd4e4b0adf08145e4f1")
      },  {
          "$ref" : "AttributeMetadata",
          "$id" : ObjectId("50726bd4e4b0adf08145e4f2")
      },  {
          "$ref" : "AttributeMetadata",
          "$id" : ObjectId("50726bd4e4b0adf08145e4f3")
      },  {
          "$ref" : "AttributeMetadata",
          "$id" : ObjectId("50726bd4e4b0adf08145e4f4")
      },  {
          "$ref" : "AttributeMetadata",
          "$id" : ObjectId("50726bd4e4b0adf08145e4f5")
      } ]
  </code></pre>
  
  <p>i want to remove this reference through the loop.</p>
  
  <p>I have used,</p>
  
  <pre><code>db.Category.find({"path": /Health &amp; Personal Care/}).forEach(function(x){
    x.attributeMetaDataList=$unset
   }
  )
  </code></pre>
  
  <p>this is not working for me. Any Help?</p>