Mongodb



1.Search exists and insert into new Collection

db.entities.find({
    FolderName:{$exists:true}, 
    }).forEach(function(doc){
   db.parent_entities.insert(doc);

});

No comments:

Post a Comment