Skip to content

Commit

Permalink
Documentation: typo fix (#12324)
Browse files Browse the repository at this point in the history
* typo fix

change the word `opts` from `ops` in documentation

* DOCS changes: `opts` renamed to `ops`
  • Loading branch information
sushiljainam committed Aug 24, 2022
1 parent 8c0800a commit ff965da
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions lib/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -3520,23 +3520,23 @@ function _setIsNew(doc, val) {
*
* @param {Array} ops
* @param {Object} [ops.insertOne.document] The document to insert
* @param {Object} [opts.updateOne.filter] Update the first document that matches this filter
* @param {Object} [opts.updateOne.update] An object containing [update operators](https://docs.mongodb.com/manual/reference/operator/update/)
* @param {Boolean} [opts.updateOne.upsert=false] If true, insert a doc if none match
* @param {Boolean} [opts.updateOne.timestamps=true] If false, do not apply [timestamps](https://mongoosejs.com/docs/guide.html#timestamps) to the operation
* @param {Object} [opts.updateOne.collation] The [MongoDB collation](https://thecodebarbarian.com/a-nodejs-perspective-on-mongodb-34-collations) to use
* @param {Array} [opts.updateOne.arrayFilters] The [array filters](https://thecodebarbarian.com/a-nodejs-perspective-on-mongodb-36-array-filters.html) used in `update`
* @param {Object} [opts.updateMany.filter] Update all the documents that match this filter
* @param {Object} [opts.updateMany.update] An object containing [update operators](https://docs.mongodb.com/manual/reference/operator/update/)
* @param {Boolean} [opts.updateMany.upsert=false] If true, insert a doc if no documents match `filter`
* @param {Boolean} [opts.updateMany.timestamps=true] If false, do not apply [timestamps](https://mongoosejs.com/docs/guide.html#timestamps) to the operation
* @param {Object} [opts.updateMany.collation] The [MongoDB collation](https://thecodebarbarian.com/a-nodejs-perspective-on-mongodb-34-collations) to use
* @param {Array} [opts.updateMany.arrayFilters] The [array filters](https://thecodebarbarian.com/a-nodejs-perspective-on-mongodb-36-array-filters.html) used in `update`
* @param {Object} [opts.deleteOne.filter] Delete the first document that matches this filter
* @param {Object} [opts.deleteMany.filter] Delete all documents that match this filter
* @param {Object} [opts.replaceOne.filter] Replace the first document that matches this filter
* @param {Object} [opts.replaceOne.replacement] The replacement document
* @param {Boolean} [opts.replaceOne.upsert=false] If true, insert a doc if no documents match `filter`
* @param {Object} [ops.updateOne.filter] Update the first document that matches this filter
* @param {Object} [ops.updateOne.update] An object containing [update operators](https://docs.mongodb.com/manual/reference/operator/update/)
* @param {Boolean} [ops.updateOne.upsert=false] If true, insert a doc if none match
* @param {Boolean} [ops.updateOne.timestamps=true] If false, do not apply [timestamps](https://mongoosejs.com/docs/guide.html#timestamps) to the operation
* @param {Object} [ops.updateOne.collation] The [MongoDB collation](https://thecodebarbarian.com/a-nodejs-perspective-on-mongodb-34-collations) to use
* @param {Array} [ops.updateOne.arrayFilters] The [array filters](https://thecodebarbarian.com/a-nodejs-perspective-on-mongodb-36-array-filters.html) used in `update`
* @param {Object} [ops.updateMany.filter] Update all the documents that match this filter
* @param {Object} [ops.updateMany.update] An object containing [update operators](https://docs.mongodb.com/manual/reference/operator/update/)
* @param {Boolean} [ops.updateMany.upsert=false] If true, insert a doc if no documents match `filter`
* @param {Boolean} [ops.updateMany.timestamps=true] If false, do not apply [timestamps](https://mongoosejs.com/docs/guide.html#timestamps) to the operation
* @param {Object} [ops.updateMany.collation] The [MongoDB collation](https://thecodebarbarian.com/a-nodejs-perspective-on-mongodb-34-collations) to use
* @param {Array} [ops.updateMany.arrayFilters] The [array filters](https://thecodebarbarian.com/a-nodejs-perspective-on-mongodb-36-array-filters.html) used in `update`
* @param {Object} [ops.deleteOne.filter] Delete the first document that matches this filter
* @param {Object} [ops.deleteMany.filter] Delete all documents that match this filter
* @param {Object} [ops.replaceOne.filter] Replace the first document that matches this filter
* @param {Object} [ops.replaceOne.replacement] The replacement document
* @param {Boolean} [ops.replaceOne.upsert=false] If true, insert a doc if no documents match `filter`
* @param {Object} [options]
* @param {Boolean} [options.ordered=true] If true, execute writes in order and stop at the first error. If false, execute writes in parallel and continue until all writes have either succeeded or errored.
* @param {ClientSession} [options.session=null] The session associated with this bulk write. See [transactions docs](/docs/transactions.html).
Expand Down

0 comments on commit ff965da

Please sign in to comment.