Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2444

Consider a DistinctCursor collection method

    • Type: Icon: Task Task
    • Resolution: Declined
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      It is odd that we Unmarshal the results of the "distinct" command here. While we cannot make significant changes to the Distinct method until v2.x of the driver (see GODRIVER-2443), we could create a new method DistinctCursor that returns a Cursor that would iterate over the "values" field returned by "distinct".

            Assignee:
            Unassigned Unassigned
            Reporter:
            benji.rewis@mongodb.com Benji Rewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: