Skip to content

Commit

Permalink
docs(query): make note that filter param to find() can be an Obje…
Browse files Browse the repository at this point in the history
…ctId re: #8268
  • Loading branch information
vkarpov15 committed Oct 23, 2019
1 parent b03faf5 commit ecd8242
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/model.js
Expand Up @@ -1963,7 +1963,7 @@ Model.deleteMany = function deleteMany(conditions, options, callback) {
* var promise = query.exec();
* promise.addBack(function (err, docs) {});
*
* @param {Object} filter
* @param {Object|ObjectId} filter
* @param {Object|String} [projection] optional fields to return, see [`Query.prototype.select()`](http://mongoosejs.com/docs/api.html#query_Query-select)
* @param {Object} [options] optional see [`Query.prototype.setOptions()`](http://mongoosejs.com/docs/api.html#query_Query-setOptions)
* @param {Function} [callback]
Expand Down
2 changes: 1 addition & 1 deletion lib/query.js
Expand Up @@ -1941,7 +1941,7 @@ Query.prototype._find = wrapThunk(function(callback) {
* // Using callbacks
* Movie.find({ year: { $gte: 1980, $lte: 1989 } }, function(err, arr) {});
*
* @param {Object} [filter] mongodb selector. If not specified, returns all documents.
* @param {Object|ObjectId} [filter] mongodb selector. If not specified, returns all documents.
* @param {Function} [callback]
* @return {Query} this
* @api public
Expand Down

0 comments on commit ecd8242

Please sign in to comment.