📅  最后修改于: 2022-03-11 14:48:23.785000             🧑  作者: Mango
const userRef = db.collection('documents').doc('document_id');
const decrement = firebase.firestore.FieldValue.increment(-1);
userRef.update({ fieldToDecrease: decrement });