You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/asciidoc/reference/mongodb.adoc
+1
Original file line number
Diff line number
Diff line change
@@ -1219,6 +1219,7 @@ The `Criteria` class provides the following methods, all of which correspond to
1219
1219
* `Criteria` *orOperator* `(Criteria... criteria)` Creates an or query using the `$or` operator for all of the provided criteria
1220
1220
* `Criteria` *orOperator* `(Collection<Criteria> criteria)` Creates an or query using the `$or` operator for all of the provided criteria
1221
1221
* `Criteria` *regex* `(String re)` Creates a criterion using a `$regex`
1222
+
* `Criteria` *sampleRate* `(double sampleRate)` Creates a criterion using the `$sampleRate` operator
1222
1223
* `Criteria` *size* `(int s)` Creates a criterion using the `$size` operator
1223
1224
* `Criteria` *type* `(int t)` Creates a criterion using the `$type` operator
1224
1225
* `Criteria` *matchingDocumentStructure* `(MongoJsonSchema schema)` Creates a criterion using the `$jsonSchema` operator for <<mongo.jsonSchema,JSON schema criteria>>. `$jsonSchema` can only be applied on the top level of a query and not property specific. Use the `properties` attribute of the schema to match against nested fields.
0 commit comments