Flutter: How to update an Array within an Array in the firestore

后端 未结 1 546
暖寄归人
暖寄归人 2021-01-27 09:37

banco firestore

I need to update a status field in the index array [0] where time == 8:00, I need to pass this status to == \"0\", only that this array is inside a matri

相关标签:
1条回答
  • 2021-01-27 09:48

    Firestore doesn't offer any updates that allow you to directly change array items by their index. You will have to write code to read the document, modify the array in memory to be the way you want, then update the array field back to the document.

    0 讨论(0)
提交回复
热议问题