dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 376 forks source link

Find operators documentation #770

Closed xorbis closed 7 years ago

xorbis commented 7 years ago

Trying to use the find operators like so:

contacts.find({
    id: { ">": 1000 }
});

Getting this:

... FROM `contacts` WHERE `id` = `>` = 1000

How are we supposed to use the find operators on fields, the doc is lacking some example.

dxg commented 7 years ago

https://github.com/dresende/node-orm2#conditions If doco is missing, please add it.

xorbis commented 7 years ago

Got confused by this doc: https://media.readthedocs.org/pdf/node-orm/latest/node-orm.pdf Section 1.2.1

Sorry! thanks for pointing me in the right direction.