title: How to remove a field from an array using aggregate on MongoDB?
body: <pre><code>    {Crs:{[
         {Cr: {
              "_id" : ObjectId("5a75baada0f20bd4e612d480"),
              "Number" : 400,
              "Page" : 24,
              "DC" : "NE",
          }},
         {Cr: {
              "_id" : ObjectId("5a75baada0f20bd4e612d489"),
              "Number" : 300,
              "Page" : 14,
              "DC" : "100",
          }},
   ]}}
  </code></pre>
  
  <p>I have this data that i model using aggregate and I would like to know how can i remove "DC" field from all elements of the array using aggregate.</p>
  
  <pre><code>  &gt;db.crs.aggregate(
      [
          {$group : {_id : null, crs : {$push : {cr : "$$ROOT"}}}},
          {$project : {_id : 0}}
      ]
  )
  </code></pre>
  
  <p>This is what did to model that data.
  I think its something related with $project.</p>