plus
open operator fun <Context : Any, Result> Value<Context, Result>.plus(other: Value<Context, Result>): Value<Context, Result>(source)
Sums two aggregation values.
Example
class Product(
val name: String,
val price: Int,
val dailyPriceIncrease: Int,
)
collection.updateManyWithPipeline {
set {
Product::price set (of(Product::price) + of(Product::dailyPriceIncrease))
}
}
Content copied to clipboard