I am working on updating a specific portion of a document in my Firebase collections structure, specifically the phonebook(map) section.
https://i.sstatic.net/UmHot.png
When attempting to modify the document, I encountered an error saying
Invalid document reference. Document references must have an even number of segments
. As someone new to Firebase, I believe there is a fundamental concept that I may be missing here.
insertPhonebookEntry(entry: any) {
if (entry.id) {
this.db.doc(entry.id).set({
PhoneBook: {
Name: entry.name,
PhoneNumber: entry.phonenumber
}
});
}