Remove specific fields using `updateDocuments` - feature request/question
See original GitHub issueIn the regular Firestore JS API, you can do:
docRef.update({
"field.subfield": firebase.firestore.FieldValue.delete()
});
to remove a specific field from a document.
Is there any way of doing that with this library as well? Or do I have to set the whole document to everything but that specific field (which of course costs more time as I have to do another API read call).
Other Comments
I also tried to update the field to null/undefined, but that does not work, it simply sets that field to null.
Library Version: 33
Issue Analytics
- State:
- Created a year ago
- Comments:26 (15 by maintainers)
Top Results From Across the Web
How to Remove a Field from a MongoDB Document ($unset)
In MongoDB, you can use the $unset field update operator to completely remove a field from a document. The $unset operator is designed ......
Read more >How to delete a field in a Firestore Document? - Stack Overflow
I tried this change in the code, but still does not delete the field, I made a test and I can update the...
Read more >Remove and RemoveIf functions in Power Apps
Use the Remove function to remove a specific record or records from a data source. For collections, the entire record must match.
Read more >Remove unwanted fields from your data - Splunk Documentation
In this example, we'll use the Fields function to only keep selected fields in your records or remove specific fields from your records....
Read more >Delete Documents — MongoDB Manual
MongoDB Manual: How to delete documents in MongoDB. How to remove documents in MongoDB. How to specify conditions for removing or deleting documents...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Could you re-open my PR so that I would be able to add new commits to it?
Closed with #143