db.premiumCode.find({}).forEach(function(row) { row.clientFullName = row.clientFirstName + " " + row.clientLastName db.premiumCode.save(row) });