Browse files

Merge pull request #1494 from dejj/patch-2

Fix typo in models.jade
  • Loading branch information...
2 parents a66b3d3 + 2915ae8 commit c65178924a0cbd9506f2d6fb6b7faeb31254b19f @aheckmann aheckmann committed May 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/models.jade
@@ -38,7 +38,7 @@ block content
Finding documents is easy with Mongoose, which supports the [rich]( query syntax of MongoDB. Documents can be retreived using each `models` [find](./api.html#model_Model.find), [findById](./api.html#model_Model.findById), [findOne](./api.html#model_Model.findOne), or [where](./api.html#model_Model.where) static methods.
- Tank.find({ type: 'small' }).where('createdDate').gt(oneYearAgo).exec(callback);
+ Tank.find({ size: 'small' }).where('createdDate').gt(oneYearAgo).exec(callback);
See the chapter on [querying](./queries.html) for more details on how to use the [Query](./api.html#query-js) api.
h3 Removing

0 comments on commit c651789

Please sign in to comment.