2020-10-29

How can i add a new field to my table (collection)?

i have this picture, that is a table, i want to add a new field to my table

enter image description here

the structures is following as:

cities: colleges:fields:attributes

i want to put a new field, i was trying

const myNewField ={
 name: chair
 notebook: true
}
db.collection("cities").doc(city.id).update(myNewField).then(function() {
        console.log("Document successfully written!");
       });


from Recent Questions - Stack Overflow https://ift.tt/3jJLEAU
https://ift.tt/34DvQeu

No comments:

Post a Comment