Is there a way to rename a collection ?

XMLWordPrintableJSON

    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I'm not sure but it seems that there is no actual way to rename a collection nor run an admin command.

      `db.getCollection('my-col').renameCollection("my-col-renamed")`
      or
      `db.adminCommand(

      { renameCollection: "test.orders", to: "test.orders2014" }

      )`

      I can't find any `RunAdminCommand` in the Go-Driver code.

      Can someone confirm that this feature is not available yet ?

              Assignee:
              Unassigned
              Reporter:
              Romain Masclef
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: