Suppose the client goes offline. During that time, the following code executes:
Messages.remove(oldMessage._id)
Messages.insert(newMessage)
When client goes online, is it guaranteed that remove
will execute first, insert
will execute second?
In other words, is it guaranteed that only one of those messages will be present in database at any time?