eq
open infix fun <Context : Any, Result> Value<Context, Result>.eq(other: Value<Context, Result>): Value<Context, Boolean>(source)
Compares two aggregation values and returns true
if they are equivalent.
Example
class Product(
val name: String,
val creationDate: Instant,
val releaseDate: Instant,
)
val releasedOnCreation = collection.aggregate()
.match {
expr {
of(Product::creationDate) eq of(Product::releaseDate)
}
}
.toList()
Content copied to clipboard
External resources
See also
Negation of this operator.
Equivalent operator in regular queries.