You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DSUtils.deepMixIn will try to deep merge the updated object with the existing one, so in order to be able to remove a list of objects inside a attribute child we have to set it's value to NULL, deleting it or setting it to an empty object will just cause the deepMixIn to override the updated value with the data already existing in the database.
The text was updated successfully, but these errors were encountered:
@jmdobry I think it wouldn't, the logic being applied here is to fetch the current data from firebase and merge with the new one being passed before setting it back to firebase. However, if the data was directly set in the firebase database with, for example, an attribute/property set with an empty object {}, it would delete the field at firebase, while doing the same thing here it would not work.
This is due to this specific part of the code inside the update() method:
The DSUtils.deepMixIn will try to deep merge the updated object with the existing one, so in order to be able to remove a list of objects inside a attribute child we have to set it's value to NULL, deleting it or setting it to an empty object will just cause the deepMixIn to override the updated value with the data already existing in the database.
The text was updated successfully, but these errors were encountered: