node.js - Mongo db import / export Object id overwritten -
node.js - Mongo db import / export Object id overwritten -
in mongo db have number of collections reference each other using auto generated unique object id e.g objectid("5459a7fb3fcd7efe772c0816");
now, that's fine.
i'm developing on site on 2 different setups, importing / exporting collections in order format info , maintain in sync. when doing new object ids created disregarding existing ones. causes app break since application references ids across different collections.
would improve me create own id , disregard object id? or there exclusively different approach together?
the reply question is: read documentation! http://docs.mongodb.org/manual/tutorial/backup-with-mongodump/
node.js mongodb
Comments
Post a Comment