-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: Aggregation pipeline
-
None
-
2
-
Not Needed
-
None
When adding an $unset stage, you are provided with the following template:
/** * fields: The field name(s). */ { field }
However, $unset expects an array of strings, not an object. So it should be:
/** * fields: The field name(s). */ [ "field1", "field2" ]