var arr = [ \"GKRLrcpSL2BmKx3BfvWj\",\"fMwH404fweoFJJqyE5Nf\" , \"DTurwbw64CWw4WosUQtC\" ] //
arr.forEach((element) => {
console.log(element);
db.collecti
FieldValue.arrayRemove()
only works with the complete value of the array item to remove. It won't work for removing items by index. In fact, Firestore doesn't offer any way to directly modify array items by index.
What you'll have to do instead is read the document, modify the "fill" array in memory as you see fit, then update the document with the new value back to the document.