-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BETWEEN queries #19
Comments
It's not possible, you need to develop code for now. |
I just checked all 3 drivers and the syntax is the same so it is a good addition. I just don't know yet the best syntax for this. |
I'm thinking about exposing some "special" functions to create "special" objects to use in conditions. Person.find({ age: orm.between(20, 30) }, ....); This Person.find({ age: orm.greater(20) }, ...); |
That sounds great. Very powerful indeed. |
#19) Example: ```js Person.find({ age: orm.between(20, 30) }, cb); ``` Other special objects: - orm.eq(val): equal to val - orm.ne(val): not equal to val - orm.gt(val): greater than val - orm.gte(val): greater or equal to val - orm.lt(val): lesser than val - orm.lte(val): lesser or equal to val
Is it possible to do BETWEEN queries with the current code or would I need to develop new code to do this?
The text was updated successfully, but these errors were encountered: