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

Make Distinct return a decodable struct "[]any"

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Major Change
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?

      The collection.Distinct method no longer returns a slice of any, rather it returns a decodable struct similar to mongo.SingleResult.

      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      Part of this ticket required updating the documentation examples.

       

      3. Which versions of the driver/connector does this apply to?

      2.0.0

      Show
      1. What would you like to communicate to the user about this feature? The collection.Distinct method no longer returns a slice of any, rather it returns a decodable struct similar to mongo.SingleResult. 2. Would you like the user to see examples of the syntax and/or executable code and its output? Part of this ticket required updating the documentation examples.   3. Which versions of the driver/connector does this apply to? 2.0.0

      We should not Unmarshal the values returned in a "distinct" command here, and should instead provide a way for users to Unmarshal to their own custom data.

      Definition of done:

            Assignee:
            preston.vasquez@mongodb.com Preston Vasquez
            Reporter:
            benji.rewis@mongodb.com Benji Rewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: