meteor Mongo Schema Migrations Convert ObjectId to String


Example

db.posts.find().forEach(function(doc){
     db.accounts.update({_id: doc._id}, {$set: {'_id': doc._id.str }}, false, true);
});