请问各位大神,云函数删除集合中age大于60的语句怎么写?如以下语句:where括号中应该怎么写?cloud.database().collection(‘users’).where().remove()
const db = cloud.database();
const _ = db.command;
db.collection(‘users’).where({
age: _.gt(00)
}).remove()
.then(res => { console.log(res) })
.catch(err => { console.error(err) });
const _ = db.command db.collection('todos').where({ progress: _.gt(60)}).get({ success: console.log, fail: console.error})