mongo aggregate unset if code example
Example: mongodb aggregate remove field
{ $project: { "<field1>": 0, "<field2>": 0, ... } } // Return all but the specified fields
{ $project: { "<field1>": 0, "<field2>": 0, ... } } // Return all but the specified fields