[CXX-1406] Provide example and docs for using collection::distinct Created: 24/Jul/17  Updated: 23/Jul/21  Resolved: 12/Nov/20

Status: Closed
Project: C++ Driver
Component/s: Documentation
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Trivial - P5
Reporter: David Golden Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CXX-1126 collection::distinct return should al... Closed

 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.



 Comments   
Comment by Rachelle Palmer [ 12/Nov/20 ]

As this issue has sat untouched for a lengthy period of time, we are closing it as Won't Do. If you feel the status should be otherwise, please re-open the ticket.

Generated at Wed Feb 07 22:02:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.