Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aswad32/a8742f149ffaba4ea2d3a52a5147e85d to your computer and use it in GitHub Desktop.
Save aswad32/a8742f149ffaba4ea2d3a52a5147e85d to your computer and use it in GitHub Desktop.
db.[CollectionName].find().forEach(function(d){ db.getSiblingDB([Database])[CollectionName].insert(d); });
@Cililing
Copy link

Cililing commented Oct 7, 2020

Not working. Getting [2020-10-07 17:31:22] java.lang.Exception: TypeError: Right-hand-side of instanceof is not an object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment