-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Currently, the unwind method only support to pass the unwind path. The mongodb API is support two more options to pass.
Current
collection
.aggregate()
.unwind(
// only support field name here
)
Improvement
collection
.aggregate()
.unwind(
// support passing object
{
path: path, // field name
includeArrayIndex: 'string',
preserveNullAndEmptyArrays: boolean
}
)