I have this array with an object inside and would like to update said
so that there is some text inside.
code:
ratePost (postId, postLikes) {
let docId = `${this.currentUser.uid}`
fb.usersCollection.doc(docId).update({
gotRates: [
{ said: postLikes }
]
})
.then(() => {
console.log('work')
})
}
But this will only overwrite the whole array.