Skip to content

Commit

Permalink
Merge pull request #9372 from elainewlin/patch-1
Browse files Browse the repository at this point in the history
Fixing documentation for Mongoose Query get
  • Loading branch information
vkarpov15 committed Aug 30, 2020
2 parents 71abbe1 + 4eaa91f commit 9c76bac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/query.js
Expand Up @@ -1757,8 +1757,7 @@ Query.prototype.set = function(path, val) {
* const query = Model.updateOne({}, { $set: { name: 'Jean-Luc Picard' } });
* query.get('name'); // 'Jean-Luc Picard'
*
* @param {String|Object} path path or object of key/value pairs to set
* @param {Any} [val] the value to set
* @param {String|Object} path path or object of key/value pairs to get
* @return {Query} this
* @api public
*/
Expand Down

0 comments on commit 9c76bac

Please sign in to comment.