unnest

fun unnest(arrayField: String, alias: String): Pipeline(source)

One document per element of the array field arrayField, the element under alias.


fun unnest(arrayWithAlias: Selectable): Pipeline(source)

One document per element of the array arrayWithAlias, the element under its alias.


fun unnest(arrayWithAlias: Selectable, options: UnnestOptions): Pipeline(source)

One document per element of the array arrayWithAlias, the element under its alias, with options.


fun unnest(unnestStage: UnnestStage): Pipeline(source)

Appends unnestStage.