例如,我想创建一个查询:
SELECT * FROM comment
WHERE
text1 = 'test1'
AND
(creator = 1 OR editor = 1)
AND
(text2 = 'test2' OR text3 = 'test2')
如何在对象中添加第二个“或”?
var where = {
text1: 'test1',
or: [{creator: 1}, {editor: 1}],
// or: [{text2: 'test2'}, {text3: 'test2'}] // ????
}
我不能使用find()的链接,因为我创建了一个查询REST API的位置