I have a database called tutorials with a field called url which i accidentally overwrote for all 500 entries.
I have an older backup luckily, but I cant figure out how to use that to fix my situation. I cannot just drop the new db and import the old one because there are other fields that have been updated since.
I just want to import the url field from the old one.
I am using a hosted mongodb server and connecting / managing it with compass.
I exported the tutorials data from my old backup, with just the ID field and the URL field.
I tried to import this old data with the “add data” button, but it throws an error saying the ID is a duplicate. But i dont want to insert these documents, i want to use them to update. I don’t see an option for this.
I see people saying to use mongoimport, but that doesn’t seem to exist within the “mongosh” command line at the bottom of compass.