I am trying to change the type of a field from within the mongo shell.
I am doing this...
db.meta.update( {\'fields.properties.default\': { $type :
db.coll.find().forEach(function(data) { db.coll.update({_id:data._id},{$set:{myfield:parseInt(data.myfield)}}); })