eq

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()

External resources

See also

Negation of this operator.

Equivalent operator in regular queries.