Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1406

Provide example and docs for using collection::distinct

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Trivial - P5 Trivial - P5
    • None
    • None
    • Documentation
    • None

    Description

      The distinct method returns a cursor, but the cursor only has a single document like this:

      {
         "values" : [ "A", "B" ],
         "ok" : 1
      }
      

      This is surprising. We should provide example code and improve the docs to clarify this situation.

      Attachments

        Activity

          People

            Unassigned Unassigned
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: