I am learning mongodb on node.js enviroment and when i add the same object with insertOne() function i see in compass that it’s generating new one with different _id. How to do prevent duplication in this scenario?
I am learning mongodb on node.js enviroment and when i add the same object with insertOne() function i see in compass that it’s generating new one with different _id. How to do prevent duplication in this scenario?