Thank you for your suggestion will look into it.
There will be always inserts or updates operations, so it should be executed on the basis of oplog date order,
But yes there will be conflict for some reason the internet is off and some transactions have been made online and some have been made on the local server.
So let me list down the possible queries/operations, I will try to handle there should not be any conflict.