• Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.3.14
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • Labels:
      None
    • Query

      Issue Status as of Sep 20, 2016

      As of version 3.3.13, MongoDB supports faceting via several new aggregation stages:

      Preview documentation can be found via our Release Notes for Development Series 3.3.x.

      Original Description.

      It would be nice if mongoDB offered facetting over values.
      E.g. an easy way to find out which values exist for a certain field
      It could look like this:
      db.my_collection.facet(

      {"country":1}

      )
      -->

      {"Germany":12,"USA":9, "France": 5, }

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            rb2k Marc Seeger
            Votes:
            31 Vote for this issue
            Watchers:
            29 Start watching this issue

              Created:
              Updated:
              Resolved: