You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can limit your results as well. This limits our results to 10
Person.find({status:'active'}, 10, function(err,results) {
...
});
```Person.all``` is an alias to ```Person.find```
## get
Find record by primary key.
Person.get(1,function(err,person) {
...
});
one
Find one record with similar syntax to find.
Person.one( function(err, person) {
...
});
count
Get the number of matching records.
Person.count({status:'active'}, function(err,activePeople) {
...
});
## exists
Test a record matching your conditions exists.