Skip to content
This repository has been archived by the owner on Nov 14, 2017. It is now read-only.

Commit

Permalink
fixing docs, they were misformatted
Browse files Browse the repository at this point in the history
  • Loading branch information
FuzzYspo0N committed May 16, 2013
1 parent f0e269e commit a59728c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/viewqueries.md
Expand Up @@ -29,10 +29,10 @@ Finding by the Id will return only one document with the specified document or n
LazyBoy creates some generic views to be used with each model. These can be accessed via the `.where` and `.findFirst` property on each model.
It takes two arguments, the propery to search by, and the value of the propery to group by.

`.where(property, value, function(err, items){} )`
- This method always returns an array of the results. The array will be 0 length if none are found.
`.findFirst(property, value, function(err, item){} )`
- This method always returns a single element, and err is non-null if not found.
`.where(property, value, function(err, items){} )`
- This method always returns an array of the results. The array will be 0 length if none are found.
`.findFirst(property, value, function(err, item){} )`
- This method always returns a single element, and err is non-null if not found.

Album.where("band","coldplay", function (err, albums) {
albums.forEach(....
Expand Down

0 comments on commit a59728c

Please sign in to comment.