I've used the $replace operator for new documents (as opposed to searching if they exist) and there seems to be not problem with that. Is this by design or should I check if a document exists (by primary key) and then $inserting if not yet in collection?