Last active
November 22, 2016 18:21
-
-
Save jketcham/f57c94a3aa68d40fa7236d18f332ba65 to your computer and use it in GitHub Desktop.
Revisions
-
jketcham renamed this gist
Nov 22, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,9 @@ db.collection.find({}).snapshot().forEach(function(item) { for (i = 0; i < item.array.length; i++) { item.array[i].newProp = item.array[i].oldProp; delete item.array[i].oldProp; } db.collection.update({ _id: item._id }, item); }) -
jketcham created this gist
Nov 22, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ db.talentfeed_meta.find({}).snapshot().forEach(function(item) { for (i = 0; i < item.array.length; i++) { item.array[i].newProp = item.array[i].oldProp; delete item.array[i].oldProp; } db.talentfeed_meta.update({ _id: item._id }, item); })