im trying to insert an object in an array in firestore but when the array already contains an object it just rewrite it and i only get 1 object everytime.
here is my code
const obj=[{
name:xxx,
age:28
}];
await dataBase.set({infos:obj},{merge:true})
Here is what I'm trying to do.