balderdashy / waterline-docs

WARNING: The content in this repo is out of date! See https://github.com/balderdashy/sails-docs for the most up-to-date documentation
452 stars 163 forks source link

Document $lt, $gt, $lte, $gte in query language #142

Open tswaters opened 7 years ago

tswaters commented 7 years ago
"sails-mongo": "^0.12.2",
"sails": "^0.12.0",

I searched the issue queue and didn't see anything about this.

The docs say less|greater than (or equal) are accomplished with the objects using <, >, >= and <=, something like the following: {'>': 'some-value'}

I'm not sure if this applies to only the mongodb driver, whether the driver is doing something to covert these to waterline-esque objects... but but using $lt, $gt, $lte, $gte appears to work fine there, e.g.: {$gt: 'some-value'}

The docs should answer these questions