支持端:小程序 , 云函数 , Web
数组更新操作符,对一个值为数组的字段,将数组头部元素删除。
const _ = db.command db.collection('todos').doc('doc-id').update({ data: { tags: _.shift() } })