Skip to content

AggregationOperations

The different MongoDB operations related to aggregation pipelines.

Inheritors

Properties

context

The full BSON configuration, used by the DSL to generate queries.

For more information, see BsonContext.

Functions

aggregate

Starts an aggregation pipeline on this collection.

Example

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

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

External resources