Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8203

Comment on: "manual/reference/method/db.cloneCollection.txt"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual, Server

    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

      Attachments

        Activity

          People

            Unassigned Unassigned
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 14 weeks, 2 days ago