florianholzapfel/express-restify-mongoose — pull request #36 by hareeshbabu82ns (2014-01-08 14:27:22+00:00)
Title: logical operators $and, $or to improve query capabilities with Mongoose

Added support for $and, $or query options to improve Query possibilities over HTTP.

```
GET http://localhost/api/v1/Customers?$and[{"field":">=value"},{"field":[value1,value2]}]
GET http://localhost/api/v1/Customers?$or[{"field":"value"},{"$and",[{"field":"~value"},{"field":"!=value"}]}]
```
which will transform as
```
Customer.find()
.or([
{field: 'value'},
{"$and":[
{"field" : { $ne : value } }
]}
])
.exec(function (err, res) {
if (err) {
done(err);
} else {
console.log(res);
}
done();
});
```
Also added != operation for normal conditions
```
GET http://localhost/api/v1/Customers?name=!=value
```
Any improvements/suggestions/modifications are welcome.