How can I use OR and AND clause in Sailsjs and its ORM Waterline? For example I have a table of books
_______________________________________ | book_name |
The following query should also work:
const books = yield Book.find().where({ author: 'Author-1', or: [{ free: true, }, { public: true, }], });