florianholzapfel/express-restify-mongoose — pull request #38 by hareeshbabu82ns (2014-01-12 21:22:02+00:00)
Title: Added query Parameter to pass all mongoose Query options with URL

Added QUERY parameter as suggested by @jperkelens

```
var query = { $or: [
{name: '~Another'},
{$and: [
{name: '~Product'},
{price: '<=10'}
]}
],
price: 20
};
request({
url: 'api/v1/Model',
qs: { query: encodeURIComponent(JSON.stringify(query) }
})
GET http://localhost/api/v1/Customers?query={"field":">=value", "field":[value1,value2]
"$and":[{"field":"~value"},{"field":"!=value"}]}
```

Also I think we can deprecate $and, $or. As we can do the same with new query param