I create city documents where I save some fields like title and description. Is it possible to add some fields later to a specific city b y knowing the city title for that db.collection path instead of the id?
First elements added
public createSavedCity(title: string, desc: string): void {
const cityFields = {
title: title,
description: desc
}
this.db.collection('saved').add(savedFields);}
I will use a new function to update the document which will receive as a parameter the title of the document I want to update
updateDoc(savedTitle: string, newItem: string) : void {
this.db.collection.(`saved/${savedTitle}`).update({newField: newItem});
}