Skip to content

Commit 117fefd

Browse files
committed
Fix #2319
1 parent aa1bc46 commit 117fefd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/queries.jade

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ block content
2727
will be null. If the query is successful, the `error` parameter will be null, and the `result` will be populated with the results of the query.
2828
.important
2929
:markdown
30-
Anywhere a callback is passed to a function in Mongoose, the callback follows the pattern `callback(error, results)`.
30+
Anywhere a callback is passed to a query in Mongoose, the callback follows the pattern `callback(error, results)`. What `results` is depends on the operation: For `findOne()` it is a [potentially-null single document](./docs/api.html#model_Model.findOne), `find()` a [list of documents](./docs/api.html#model_Model.find), `count()` [the number of documents](./docs/api.html#model_Model.count), `update()` the [number of documents affected](./docs/api.html#model_Model.update), etc. The [API docs for Models](./docs/api.html#model-js) provide more detail on what is passed to the callbacks.
3131
:markdown
3232
Now let's look at what happens when no `callback` is passed:
3333
:js

0 commit comments

Comments
 (0)