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

Add support for filter to listDatabases

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.4.2, 3.5.2
    • Querying
    • None
    • Fully Compatible
    • v3.4, v3.2
    • Query 2017-01-23

    Description

      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/}});
      

      Attachments

        Issue Links

          Activity

            People

              david.storch@mongodb.com David Storch
              tim.olsen@mongodb.com Timothy Olsen
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: