Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.getCollection('attrib_cd').find({}).forEach(function(doc) {
- doc['qid'] = doc["0"];
- delete doc["0"];
- db.getCollection('attrib_cd').save(doc);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement