@@ -12,7 +12,6 @@ import org.cufy.mongodb.expr.buildExpr
1212/* ============= ------------------ ============= */
1313
1414/* * https://www.mongodb.com/docs/manual/reference/operator/query/expr */
15- @ExperimentalMongodbApi
1615@BsonMarker2
1716context(_: /* Query */ BsonDocumentBuilder )
1817fun expr (expression : BsonDocument ) =
@@ -28,14 +27,12 @@ fun expr(expression: context(ExprScope) () -> Expr<_Boolean>) =
2827/* ============= ------------------ ============= */
2928
3029/* * https://www.mongodb.com/docs/manual/reference/operator/query/jsonSchema */
31- @ExperimentalMongodbApi
3230@BsonMarker2
3331context(_: /* Query */ BsonDocumentBuilder )
3432fun jsonSchema (expression : BsonDocumentBlock ) =
3533 `$jsonSchema` by expression
3634
3735/* * https://www.mongodb.com/docs/manual/reference/operator/query/jsonSchema */
38- @ExperimentalMongodbApi
3936@BsonMarker2
4037context(_: /* Query */ BsonDocumentBuilder )
4138fun jsonSchema (expression : BsonDocument ) =
@@ -58,16 +55,15 @@ fun mod(divisor: Long, remainder: Long) =
5855/* ============= ------------------ ============= */
5956
6057/* * https://www.mongodb.com/docs/manual/reference/operator/query/regex */
61- @ExperimentalMongodbApi
6258@BsonMarker2
59+ @JvmName(" regex_String_String" )
6360context(_: /* Operator */ BsonDocumentBuilder )
6461fun regex (regex : String , options : String? = null) {
6562 `$regex` by regex
6663 if (options != null ) `$options` by options
6764}
6865
6966/* * https://www.mongodb.com/docs/manual/reference/operator/query/regex */
70- @ExperimentalMongodbApi
7167@BsonMarker2
7268context(_: /* Operator */ BsonDocumentBuilder )
7369fun regex (regex : BsonRegExp , options : String? = null) {
@@ -77,6 +73,7 @@ fun regex(regex: BsonRegExp, options: String? = null) {
7773
7874/* * https://www.mongodb.com/docs/manual/reference/operator/query/regex */
7975@BsonMarker2
76+ @JvmName(" String_regex_String" )
8077context(_: /* Query */ BsonDocumentBuilder )
8178infix fun String.regex (regex : String ) =
8279 this by { `$regex` by regex }
@@ -90,7 +87,6 @@ infix fun String.regex(regex: BsonRegExp) =
9087/* ============= ------------------ ============= */
9188
9289/* * https://www.mongodb.com/docs/manual/reference/operator/query/text */
93- @ExperimentalMongodbApi
9490@BsonMarker2
9591context(_: /* Query */ BsonDocumentBuilder )
9692fun text (
0 commit comments