The solution goes: Get the interested document (doc) and then: doc. ref. collection(‘Collection_Name’). add(‘Object_to_be_added’) It is advisable to include a then/catch after the promise.
The solution goes: Get the interested document (doc) and then: doc. ref. collection(‘Collection_Name’). add(‘Object_to_be_added’) It is advisable to include a then/catch after the promise.