[go: up one dir, main page]

Array handling aggregation operators and more

```kotlin
users.aggregate()
    .project {
        include(User::name)
        User::bestPassingGrades set User::grades
            .filter { it gt of(50) }
            .map { it / Grade::value }
            .sortedDescending()
            .take(3)
    }
```

### DSL

- Added the `$filter` aggregation operator (59740316, !46)
- Added the `$map` aggregation operator (5c903096, !46)
- Added the `$firstN` and `$lastN` aggregation operators (721b1b07, 721b1b07, !46)
- Added the `$sortArray` aggregation operator (f736c402, a607fcce, !46)
- Added the `$getField` aggregation operator (28946504, !46)
- Added the `$ceil` aggregation operator (7481c6ab, !42)
- Added the `$floor` aggregation operator (d04f4b7f, !42)
- Added the `$count` aggregation stage (f14132bd, !45)
- Fixed incorrect type parameters for `$degreesToRadians` and `$radiansToDegrees` (fb01397c, !43)

### Documentation

- Renamed the DSL module from 'Query DSL' to 'Request DSL' (859f3737, !42)
- Added an example to `SortOptionDsl` (91c044ac, !43)

### Dependencies

- KotlinX.Coroutines 1.10.1
- KotlinX.Serialization 1.8.0
- MongoDB Kotlin driver 5.3.1
- BSON JS 6.10.3