Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-16813

Shell helper to get a single collection's options document

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.8.0-rc4
    • Component/s: Shell
    • Labels:

      For writing jstests or general deployment debugging, it would be useful to have easy access to collection metadata. Previously, this data was available by querying the system.namespaces collection, but that is no longer supported with new storage engines. It would be very helpful to have a shell helper to wrap the listCollections command and return just the collection object for a single collection.

      This could be implemented as a db method, i.e.

      db.collectionOptions("myCollection")
      

      or added to the collection prototype

      db.myCollection.options()
      

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            kyle.erf Kyle Erf
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: