Skip to content

Commit

Permalink
added documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pmlopes committed Jul 4, 2012
1 parent 6af109a commit 2152dd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ Update all documents satisfying `query`, with document.
#### Model#asModel(obj)
Utility function to convert a JSON object to a Model class without breaking any linked references (e.g.: a object in an array).

#### Model#loadDbRef(id/ids, options, callback)
Loads one Id or array of ids, it is similar to a simple find, however the number of results and order is the same as the array argument

#### Model#ensureIndex(fieldOrSpec, options, callback)
Adds an index and will also add a `findByXXX` method, where XXX is the name of the `fieldOrSpec`

Expand Down

0 comments on commit 2152dd4

Please sign in to comment.