Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-4372

Document distinct()'s behavior when field is an array

    XMLWordPrintableJSON

Details

    Description

      When there is an array field in the records and a distinct query is performed on that field, the return is not an array of arrays. The behaviour is not documented anywhere and is quite counter-intuitive.

      I would expect an array of arrays. Even if it is not the case there should at least be some documentation about this beahaviour

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            ranjith19 Ranjith Ramachandra
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 51 weeks, 6 days ago