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

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation