question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What if we use UpdateDocumentAsync with empty mask?

See original GitHub issue

UpdateDocumentAsync api has required parameters document and updateMask

The document just state that if any fields does not specified in the mask it would not be overridden. Which means if document already exist and we put an empty new DocumentMask() it would not write any changed field existing isn’t it?

If it behave like this, what API should we call for override everything?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
schmidt-sebastiancommented, Jan 15, 2018

I suspect this behavior just not sure and not see document about it

As far as I can tell, this is not yet documented in the Protobuf definition. I created an internal PR to add this caveat.

1reaction
jskeetcommented, Jan 15, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Firestore v1 API - Class FirestoreClient (3.3.0) | .NET client ...
Mask = new DocumentMask(), Transaction = ByteString.Empty, }; ... If you require an atomically applied set of writes, use ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found