Aggregates
Functions
Link copied to clipboard
Creates a $densify
pipeline stage, which adds documents to a sequence of documents where certain values in the field
are missing.
Creates a {@code $densify} pipeline stage, which adds documents to a sequence of documents where certain values in the {@code field} are missing.
Link copied to clipboard
fun <TExpression, FROM : Any> graphLookup(from: MongoCollection<FROM>, startWith: TExpression, connectFromField: KProperty1<FROM, Any?>, connectToField: KProperty1<FROM, Any?>, fieldAs: String, options: GraphLookupOptions = GraphLookupOptions()): Bson
fun <TExpression, FROM : Any> graphLookup(from: MongoCollection<FROM>, startWith: TExpression, connectFromField: KProperty1<FROM, Any?>, connectToField: KProperty1<FROM, Any?>, fieldAs: String, options: GraphLookupOptions = GraphLookupOptions()): Bson
Creates a graphLookup pipeline stage for the specified filter
Link copied to clipboard
fun <FROM : Any> lookup(from: MongoCollection<FROM>, localField: KProperty1<out Any, Any?>, foreignField: KProperty1<FROM, Any?>, newAs: String): Bson
fun <FROM : Any> lookup(from: MongoCollection<FROM>, localField: KProperty1<out Any, Any?>, foreignField: KProperty1<FROM, Any?>, newAs: String): Bson
Creates a $lookup pipeline stage, joining the current collection with the one specified in from using the given pipeline. If the first stage in the pipeline is a {@link Aggregates#documents(List) $documents} stage, then the {@code from} collection is ignored.