MongoDB request DSL • opensavvy.ktmongo.dsl.aggregation.operators • ComparisonValueOperators • ne
ne¶
Compares two aggregation values and returns true
if they are not equivalent.
Example¶
class Product(
val name: String,
val creationDate: Instant,
val releaseDate: Instant,
)
val notReleasedOnCreation = collection.aggregate()
.match {
expr {
of(Product::creationDate) eq of(Product::releaseDate)
}
}
.toList()
External resources¶
See also¶
-
ComparisonValueOperators.eq
Negation of this operator. -
FilterQuery.ne
Equivalent operator in regular queries.