KtMongo 0.12.0 adds support for array aggregation ...
# feed
c
KtMongo 0.12.0 adds support for array aggregation operators, allowing us to interact with MongoDB just like regular Kotlin collections.
Copy code
users.aggregate()
    .project {
        include(User::name)
        User::bestPassingGrades set User::grades
            .filter { it gt of(50) }
            .map { it / Grade::value }
            .sortedDescending()
            .take(of(3))
    }
Website#C078Z1QRHL3
K 2