Details
-
Bug
-
Resolution: Won't Do
-
Major - P3
-
None
-
*Location*: https://docs.mongodb.com/manual/reference/method/db.cloneCollection/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
*Screen Resolution*: 2560 x 1440
Description
"If you want to copy a collection from a different database name you must use the cloneCollection directly."
This is EXTREMELY misleading. The cloneCollection command seems to just ignore the current database name, but it STILL copies from a db/collection to the SAME db/collection on the current server. It also doesn't return an error if the collection already exists locally – I now have some sort of half-merged collection, but the number of documents doesn't match what I was expecting ![]()