Simple, self-explanatory code snippets.
db.COLLECTION_NAME.updateMany(
{},
[{$set: {
"target_field": "$source_field"
}}]
);
No comments:
Post a Comment