meteor Mongo Schema Migrations Add Version Field To All Records in a Collection


Example

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