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