var arr = [ "GKRLrcpSL2BmKx3BfvWj","fMwH404fweoFJJqyE5Nf" , "DTurwbw64CWw4WosUQtC" ] // arr.forEach((element) => { console.log(element); db.collection("Check").doc(element).get().then((docs) => { var data = docs.data(); var arr = data.fill; arr.forEach((item) => { if(item['check'] == 'a') { db.collection("Check").doc(element).update({ fill: firebase.firestore.FieldValue.arrayRemove('check') }).then((val) => {console.log("Updated")}) } }); }); }); I have a collection Check which consist of an array fill and there are objects in the fill i want to match the data in the fill and delete the value that index in firestore
