79462270

Date: 2025-02-24 01:33:44
Score: 0.5
Natty:
Report link

Switch to the source database

use sourceDB;

Fetch all documents from the source collection

let documents = db.sourceCollection.find().toArray();

Switch to the target database

use targetDB;

Insert the documents into the target collection

db.targetCollection.insertMany(documents);

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Wilhelm Mauch