I have noticed that modify does not produce a duplicate key error when I try to update the field 'email' for an already in-use email. However, I see that the same query does produce an error in MongoDB if I do it manually.
Is this behaviour expected?