[cloud_firestore] WriteBatch on potentially non existing documents. #7239
Unanswered
quentinleguennec
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I need to mark some documents by setting a flag on them. Since its a lot of them I want to use a BatchWrite. But some of those documents may have been deleted from other sources. Currently the whole WriteBatch fails if any of the documents is missing (returning
[cloud_firestore/not-found] Some requested document was not found.
).Is it possible for the WriteBatch to ignore non existing documents instead of throwing an exception? I don't want to first fetch all those documents to se if they exist as it could be a lot of them.
Beta Was this translation helpful? Give feedback.
All reactions