Is there a way for mongorestore to replace the records existing in the database instead of skipping it which is the default behavior ?
I\'m currently using the lates
I have solved this using
mongorestore --db database -c collection ~/path_to_bson > output.txt 2>&1
- E11000 duplicate key error collection ...ObjectId(...)
db.collection.remove({_id: ObjectId(...)})