pgte / alfred

Node is your mansion, Alfred is your butler. Node.js key-value store
http://pgte.github.com/alfred/
MIT License
149 stars 10 forks source link

Getting all records using ODM #10

Open sudr opened 13 years ago

sudr commented 13 years ago

When using the ODM how can I retrieve all the records:

I've tried the following with no success:

User.find({}).all(function(users) { console.log(users); }

I get an empty collection.

sergioramos commented 12 years ago
User.find({age: {$range: {$start: null, $end: null}}}).all(function (users) {
    console.log(users);
});