Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-892

Is there a way to rename a collection ?

      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 Unassigned
            Reporter:
            rmasclef Romain Masclef
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: