I've been wondering, using update
of mongodb
with the {upsert:true}
options, is it possible to get both upsertedCount
AND modifiedCount
be 0?
I understand that the upsertedCount
refers to the created documents, while the modifiedCount
refers to the updated documents.
So using the upsert
I cannot find a scenario in which both of those will be equal to 0.
Am i wrong?
Thanks in advance for the help.