unwind

fun <T> unwind(property: KProperty<Iterable<T>?>, unwindOptions: UnwindOptions = UnwindOptions()): Bson

Creates a $unwind pipeline stage for the specified field name, which must be prefixed by a {@code '$'} sign.

Return

the $unwind pipeline stage @mongodb.driver.manual reference/operator/aggregation/unwind/ $unwind

Parameters

property

the data class field name

unwindOptions

options for the unwind pipeline stage