Provide example and docs for using collection::distinct

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Documentation
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              David Golden
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: