Following query throws error:
DB.classes
.where("name")
.anyOf(["John", "Rick"])
.or("nickname")
.anyOf(["Joe", "Bill"])
.and("isDummy")
.equals("1")
.toArray().then(()=>{})
How can I rewrite the query in correct manner?
DB.classes
.where("name")
.anyOf(["John", "Rick"])
.or("nickname")
.anyOf(["Joe", "Bill"])
.and(clazz => clazz.isDummy === 1)
.toArray().then(()=>{})
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.