Question about deleting a field in a nested object in Firebase Firestore in the extension task #1110
-
|
I am currently using rowy for my next project and I have a quick question to ask about deleting a field in a nested object in Firebase Firestore. I have been using the My current solution is to set the field to null using the Firestore update method, but this effectively "deletes" the field by removing its value, but the field itself will still exist in the Firestore document. Please let me know if there is a way to delete a field in a nested object using the deleteField() or firebase.firestore.FieldValue.delete() method, or if there is an alternative method that I can use. Thank you for your help, my code example: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hey @benmliang, to use import("@google-cloud/firestore")For more insight on this, check out the example in this discussion: #1102 |
Beta Was this translation helpful? Give feedback.
Hey @benmliang, to use
firebase.firestoremethods, we'd first have to manually import the Firestore library:For more insight on this, check out the example in this discussion: #1102