Firestore update all documents in collections

后端 未结 4 753
执笔经年
执笔经年 2020-11-29 11:04

I have a firestore collections named users, each users have a generated id with a field score :

users 
    0e8X3VFL56rHBxxgkYOW
        score : 4
    3SeDjr         


        
4条回答
  •  春和景丽
    2020-11-29 12:05

    Firestore doesn't have the ability to bulk update documents without knowing their IDs. You will have to somehow know the document ID of each document to update (perform a query, or do batches of queries), and update each one individually.

提交回复
热议问题