Send Data To Firebase (HttpClient)

I would like to update firebase data (Realtime Database) to a specific table. And i don't know how to do it. With the code I did, the table [TB_MyProfile_Composite] is overwrite and not updated.

there is the code to update the data

sendData(data: CompositeOtherModel[]) {
    return this.http.put(this._URL, data);

That how the table is before the update:

Before update

That how it is after the update. The table TB_MyProfile_Composite has been overwrite :(

After update

Thanks for your help !! :)



Assuming your using the firebase REST API, all you need to do is change the URL that you are using.

If you're hitting the collection.json, the accessing your TB_MyProfile_Composite collection simply change your url to be something like collection/TB_MyProfile_Composite.json