Add support for filter to listDatabases

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Major - P3
    • 3.4.2, 3.5.2
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • v3.4, v3.2
    • Query 2017-01-23
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Add a filter field to the listDatabases command in order to reduce the set of database metadata entries returned. For example, we may only want the list of databases whose names begin with "foo". This could be achieved with the following command:

      db.adminCommand({listDatabases: 1, filter: {name: /^foo/}});
      

            Assignee:
            David Storch
            Reporter:
            Timothy Olsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: