We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 839988a commit eec50d9Copy full SHA for eec50d9
1 file changed
module-mongokt/src/commonMain/kotlin/expr/Extensions.kt
@@ -41,6 +41,11 @@ infix fun Expr<_Number>.`$mod`(other: Expr<_Number>): Expr<_Number> =
41
operator fun Expr<_Number>.times(other: Expr<_Number>): Expr<_Number> =
42
`$multiply`(this, other)
43
44
+@BsonMarker4
45
+@JvmName("Number_unaryMinus")
46
+operator fun Expr<_Number>.unaryMinus(): Expr<_Number> =
47
+ this * (-1).expr
48
+
49
/** https://www.mongodb.com/docs/manual/reference/operator/aggregation/pow/ */
50
@BsonMarker4
51
@JvmName($$"Number_$pow_Number")
0 commit comments