To copy a collection from one database to another in MongoDB there is no command in MongoDB that would do this but you can do something like as follows:-db.<collection_name>.find().forEach(function(d){ db.getSiblingDB('<new_database>')
['<collection_name>'].insert(d);
});
Other than this, you can do a mongodump of a collection from one database and then mongorestore the collection to the other database.