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

Provide example and docs for using collection::distinct

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Documentation
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved: