Skip to content

AggregationOperations

Interface grouping MongoDB operations relating to aggregation pipelines

Inheritors

Properties

context

@LowLevelApi



abstract val context: BsonContext

Functions

aggregate

Start an aggregation pipeline.

Example
class User(
    val name: String,
    val age: Int,
)

users.aggregate()
    .match { User::age gt 18 }
    .toList()
External resources