KtMongo 0.9.0 with the `$cond` aggregation operato...
# opensavvy
c
KtMongo 0.9.0 with the
$cond
aggregation operator
Copy code
users.aggregate()
    .set {
        Song::releaseDate set cond(
            condition = of(Song::isReleased),
            ifTrue = of(2025),
            ifFalse = of(null)
        )
    }
https://opensavvy.gitlab.io/ktmongo/docs/