I need to convert fields like this:
{ \"_id\" : ObjectId(\"576fd6e87d33ed2f37a6d526\"), \"phoneme\" : \"JH OY1 N Z\" }
into an a
Much easier than I thought. Just use JavaScript split function. boom!
db.temp.find().snapshot().forEach( function (el) { el.phonemes = el.phoneme.split(' '); db.temp.save(el); });