Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.person.find().snapshot().forEach(
- function (elem) {
- db.person.update(
- {
- _id: elem._id
- },
- {
- $set: {
- name: elem.firstname + ' ' + elem.lastname
- }
- }
- );
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement