KtMongo 0.7.0 is out, with the `$expr` operator to...
# feed
c
KtMongo 0.7.0 is out, with the
$expr
operator to compare fields in a document. This operator is particularly useful to find incoherent data, for examples entities that were modified before their creation:
Copy code
collection.find {
    expr {
        of(Entity::modificationDate) lt of(Entity::creationDate)
    }
}
For now, the supported operators are: •
$eq
,
$ne
$gt
,
$gte
,
$lt
,
$lte
$literal
https://opensavvy.gitlab.io/ktmongo/docs/