Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //File mongo_functions
- function merge (reciever, obj2) {
- for (var attrname in obj2) {
- reciever[attrname] = obj2[attrname];
- }
- };
- db.system.js.save({ _id:"merge", value:merge });
- // Install with mongo localhost/dbname mongo_functions.js
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement