2015-07-17

MongoDB - How to rename a field

db.COLLECTION_NAME.update( {}, { $rename: {"OLD_FIELD_NAME": "NEW_FIELD_NAME"} }, false, true);

No comments:

Post a Comment