Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Aug 8, 2012
1 parent 0489577 commit c3ac488
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions lib/model.js
Expand Up @@ -839,6 +839,7 @@ Model.remove = function remove (conditions, callback) {
* @param {Object} [options] optional
* @param {Function} [callback]
* @return {Query}
* @see field selection #query_Query-select
* @api public
*/

Expand Down Expand Up @@ -905,6 +906,7 @@ Model._applyNamedScope = function _applyNamedScope (query) {
* @param {Object} [options] optional
* @param {Function} [callback]
* @return {Query}
* @see field selection #query_Query-select
* @api public
*/

Expand All @@ -926,6 +928,7 @@ Model.findById = function findById (id, fields, options, callback) {
* @param {Object} [options] optional
* @param {Function} [callback]
* @return {Query}
* @see field selection #query_Query-select
* @api public
*/

Expand Down
6 changes: 3 additions & 3 deletions lib/query.js
Expand Up @@ -2071,13 +2071,13 @@ Query.prototype._findAndModify = function (type, callback) {
}

/**
* Specifies paths which should be populated.
* Specifies paths which should be populated with other documents.
*
* Paths are populated after the query executes and a response is received. A separate query is then executed for each path specified for population. After a response for each query has also been returned, the results are passed to the callback.
*
* ####Example
* ####Example:
*
* Kitten.find().populate('owner').exec(function (err, kitten) {
* Kitten.findOne().populate('owner').exec(function (err, kitten) {
* console.log(kitten.owner.name) // Max
* })
*
Expand Down

0 comments on commit c3ac488

Please sign in to comment.