You can also selects indexed value with some "Comparison Query Operators" (like mongodb)
The options are:
$gte = greater than or equal to (i.e. >=)
$gt = greater than (i.e. >)
$lte = less than or equal to (i.e. <=)
$lt = less than (i.e. <)
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
}
});
You can also selects indexed value with some "Comparison Query Operators" (like mongodb) The options are:
See an example.