Make Distinct return a decodable struct "[]any"

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: 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
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Benji Rewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: