According to docs the first parameter or Model.all() is where, which is an object:
where: Object { key: val, key2: {gt: 'val2'}}
But this is AND relationship, no? How to select "key OR key2"?
Thanks!
According to docs the first parameter or Model.all() is where, which is an object:
where: Object { key: val, key2: {gt: 'val2'}}
But this is AND relationship, no? How to select "key OR key2"?
Thanks!
Copyright © 2021 Jogjafile Inc.
If you're using the mysql-adapter you can build a query like:
docs: https://github.com/jugglingdb/mysql-adapter#using-or-and-in-operator