I find that db.collection.copyTo() and eval() have been deprecated since 3.0. But I do not find what can be instead.
What\'s the alternatives?
For a server-side solution you can use aggregation...
db.getCollection('source') .aggregate([ { $out: 'destination' } ]);