Details
-
Bug
-
Resolution: Duplicate
-
Minor - P4
-
None
-
None
-
2
-
Not Needed
Description
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"
|
]
|