I have created a chat app. In the app there is a collection named Chat
and in it there are documents. Each document is a message that was sent and it contains fields such as Message
, SentTime
, IsButton
.
Once something happens in the app (someone clicks a button), I had like to change in all of my documents at that chat the value of IsButton
from False
to True
.
The data looks as follows:
Is there a way to change all of the Field
values in one hit instead of using a loop?
I saw there is something called Batch however I'm not sure if it is limited to a maximum 500 updates.
Thank you