Painting Blue Code
Simple, self-explanatory code snippets.
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment