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

Provide example and docs for using collection::distinct

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None
    • Story Points:
      1

      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

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              david.golden David Golden
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: