I am trying to update only the $key of an object from my Firebase database. All the values in the object I want to keep untouched. I tried this way:
this.af.object('personalMessages/'+ firebase_uid).update({ $key: 'my custom key' })
I get no error, but the record is not updating.
The big objects looks like this:
personalMessages:{
the_key_I_want_to_update:
{
isRead: false
text: "some text goes here"
timestamp: 1502448955231.222
}
}