fun unwind(fieldName: String, unwindOptions: UnwindOptions = UnwindOptions()): Bson
(source)
Creates a $unwind pipeline stage for the specified field name, which must be prefixed by a '$'
sign.
fieldName
- the field name, prefixed by a '$' sign
unwindOptions
- options for the unwind pipeline stage
Return
the $unwind pipeline stage
Mongodb
.driver.manual reference/operator/aggregation/unwind/ $unwind