Skip to content
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.

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

Open
tswaters opened this issue May 24, 2017 · 0 comments
Open

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

tswaters opened this issue May 24, 2017 · 0 comments

Comments

@tswaters
Copy link

"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'}

  • Is the mongo-style query being supported an oversight / happy accident?
  • Is one of these formats recommended over the other?
  • Is one of them deprecated and may not work into the future?

The docs should answer these questions

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant