Hello sir, I was able to find a solution. I made a new collection and the existing documents were not being replaced anymore but in the old collection the documents were always getting replaced each inserts. So the problem was in the collection’s setting I think, if then what could be the trouble in the old collection?