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
This behavior can be overridden using the `overwrite` option (see below).
232
232
233
-
#####options
233
+
#### options
234
234
235
235
Options are passed to the `setOptions()` method.
236
236
@@ -286,7 +286,7 @@ Declares this query a _findAndModify_ with update query. Optionally pass a match
286
286
287
287
When executed, the first matching document (if found) is modified according to the update document and passed back.
288
288
289
-
#####options
289
+
#### options
290
290
291
291
Options are passed to the `setOptions()` method.
292
292
@@ -318,7 +318,7 @@ Optionally pass a match clause, options.
318
318
319
319
When executed, the first matching document (if found) is modified according to the update document, removed from the collection and passed as a result.
Read more about how to use read preferences [here](http://docs.mongodb.org/manual/applications/replication/#read-preference) and [here](http://mongodb.github.com/node-mongodb-native/driver-articles/anintroductionto1_1and2_2.html#read-preferences).
1031
1030
1032
-
1033
1031
### readConcern()
1034
1032
1035
1033
Sets the readConcern option for the query.
@@ -1061,7 +1059,7 @@ mquery().readConcern('s')
1061
1059
mquery().r('s')
1062
1060
```
1063
1061
1064
-
#####Read Concern Level:
1062
+
#### Read Concern Level:
1065
1063
1066
1064
-`local` - The query returns from the instance with no guarantee guarantee that the data has been written to a majority of the replica set members (i.e. may be rolled back). (MongoDB 3.2+)
1067
1065
-`available` - The query returns from the instance with no guarantee guarantee that the data has been written to a majority of the replica set members (i.e. may be rolled back). (MongoDB 3.6+)
@@ -1104,7 +1102,7 @@ mquery().writeConcern('tagSetName') // if the tag set is 'm', use .writeConcern(
0 commit comments