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 distinction is purely pedantic. You should use `findOneAndDelete()`
2704
2704
* unless you have a good reason not to.
2705
2705
*
2706
-
* #### Options:
2707
-
*
2708
-
* - `sort`: if multiple docs are found by the conditions, sets the sort order to choose which doc to update
2709
-
* - `maxTimeMS`: puts a time limit on the query - requires mongodb >= 2.6.0
2710
-
* - `select`: sets the document fields to return, ex. `{ projection: { _id: 0 }}`
2711
-
* - `projection`: equivalent to `select`
2712
-
* - `rawResult`: if true, returns the [raw result from the MongoDB driver](https://mongodb.github.io/node-mongodb-native/4.3/interfaces/ModifyResult.html)
2713
-
* - `strict`: overwrites the schema's [strict mode option](https://mongoosejs.com/docs/guide.html#strict) for this update
* @param {Boolean|String} [options.strict] overwrites the schema's [strict mode option](https://mongoosejs.com/docs/guide.html#strict)
2736
2727
* @param {Object|String|String[]} [options.projection=null] optional fields to return, see [`Query.prototype.select()`](#query_Query-select)
2737
2728
* @param {ClientSession} [options.session=null] The session associated with this query. See [transactions docs](/docs/transactions.html).
2729
+
* @param {Boolean} [options.rawResult] if true, returns the [raw result from the MongoDB driver](https://mongodb.github.io/node-mongodb-native/4.3/interfaces/ModifyResult.html)
2730
+
* @param {Object|String} [options.sort] if multiple docs are found by the conditions, sets the sort order to choose which doc to update.
2731
+
* @param {Object|String} [options.select] sets the document fields to return.
2732
+
* @param {Number} [options.maxTimeMS] puts a time limit on the query - requires mongodb >= 2.6.0
0 commit comments