I have mongodb replica set but when i try to drop a collection from it is gives an error as "from exec command not master".
I am using MongoDb with node js through MongoDb native driver, shouldn't the driver automatically figure out the primary instance and remove the collection from it.