superfeedr / indexeddb-backbonejs-adapter

An indexedDB adapter for Backbonejs
http://blog.superfeedr.com/indexeddb-backbonejs-adapter/
MIT License
248 stars 61 forks source link

Comparison Query Operators Like MongoDB #62

Closed andersondanilo closed 10 years ago

andersondanilo commented 10 years ago

You can also selects indexed value with some "Comparison Query Operators" (like mongodb) The options are:

See an example.

var theater = new Theater() // Theater is a collection of movies
theater.fetch({
    conditions: {year: {$gte: 2013},
    success: function() {
        // The theater collection will be populated with all the movies with year >= 2013
    }
});
julien51 commented 10 years ago

Thanks!