Dear Experts,
I found the count is increased no matter if the creation of the document success or not. E.g.
- I create a new user, the count will be 1
- I try to create the second user, but since I give a duplicate key to it, the creation failed (err.name === "MongoError" && err.code === 11000)
- I create a new user, the count is 3, but actually it should be 2.
Any idea on this? Thank you so much!
Dear Experts,
I found the count is increased no matter if the creation of the document success or not. E.g.
Any idea on this? Thank you so much!