densify

fun <T> densify(property: KProperty<T>, range: DensifyRange): Bson

Creates a $densify pipeline stage, which adds documents to a sequence of documents where certain values in the field are missing.

Return

The requested pipeline stage. @mongodb.driver.manual reference/operator/aggregation/densify/ $densify @mongodb.driver.manual core/document/#dot-notation Dot notation @mongodb.server.release 5.1

Parameters

field

The field to densify.

range

The range.


fun <T> densify(property: KProperty<T>, range: DensifyRange, options: DensifyOptions): Bson

Creates a {@code $densify} pipeline stage, which adds documents to a sequence of documents where certain values in the {@code field} are missing.

Return

The requested pipeline stage. @mongodb.driver.manual reference/operator/aggregation/densify/ $densify @mongodb.driver.manual core/document/#dot-notation Dot notation @mongodb.server.release 5.1

Parameters

field

The field to densify.

range

The range.

options

The densify options. Specifying {@link DensifyOptions#densifyOptions()} is equivalent to calling {@link #densify(String, DensifyRange)}.