-
Type: Improvement
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
Empty show more show less
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 } )