Skip to content

Commit

Permalink
Fixing documentation for Mongoose Query get
Browse files Browse the repository at this point in the history
  • Loading branch information
elainewlin authored Aug 29, 2020
1 parent 71abbe1 commit 4eaa91f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/query.js
Original file line number Diff line number Diff line change
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 4eaa91f

Please sign in to comment.