Skip to content

2025

0.12.0 • Array handling aggregation operators and more

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

DSL

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

0.11.0 • Aggregation stages $unset, $project, $sort and $unionWith, sorting in find(), $concat aggregation operator

DSL

Kotlin BSON

  • Various documentation improvements and clarifications (#e17b899e, !41)

0.10.0 • $add, $abs and trigonometry operators

DSL

  • Add the $add aggregation operator (#7, #4c8eedbe, !33)
  • Add the $abs aggregation operator (#7, #056da623, !35)
  • Add trigonometry aggregation operators $cos, $cosh, $acos, $acosh, $sin, $sinh, $asin, $asinh, $tan, $tanh, $atan, $atanh (#7, !35)
  • Move the aggregation conversion functions (of()) higher in the ValueDsl hierarchy (#224c601a, !33)
  • Rename ConditionalOperators to ConditionalValueOperators (#edf69970, !33)
  • Rename SetOperators to SetStageOperators (#bc343596, !33)

Documentation

  • Add a 'news' section to the website with changelogs (!34)
  • Add the BSON module in the API reference (!36)

0.7.0 • $expr and the first aggregation stages

Kotlin BSON

  • Fixed bug where arrays were generated incorrectly (#9d0cbea3, !20)

MongoDB DSL

  • Create the aggregation Value (#bec086c1)
  • Create the $expr filter operator (#22b9d97e)
  • Add the $match aggregation stage (#44ea7bf3)
  • Add the $sample aggregation stage (#fc34f2b5)
  • Add the $skip aggregation stage (#3239a479)
  • Add the $limit aggregation stage (#4cc84722)
  • Add the $set aggregation stage (#81b7f8b4)
  • Implement the $literal aggregation operator (#49e1d564)
  • Implement the $eq, $ne, $gt, $lt, $gte, $lte aggregation operators (#22b9d97e)