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

Change IndexView.DropOne to not return bson.Raw

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

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

      Drop index no longer returns a bson.Raw value that indicates the number of indexes dropped by the operation, i.e.

      {nIndexesWas: <int32>}

      .

      2. Would you like the user to see examples of the syntax and/or executable code and its output?

      Examples are not necessary, existing examples should be updated to reflect this change.

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

      Show
      1. What would you like to communicate to the user about this feature? Drop index no longer returns a bson.Raw value that indicates the number of indexes dropped by the operation, i.e. {nIndexesWas: <int32>} . 2. Would you like the user to see examples of the syntax and/or executable code and its output? Examples are not necessary, existing examples should be updated to reflect this change. 3. Which versions of the driver/connector does this apply to? v2

      Context

      With GODRIVER-961, we changed IndexView.DropAll to not return a bson.Raw, but IndexView.DropOne still returns a bson.Raw. We should make these APIs consistent and either return a structured result type or only an error if there's no additional information to communicate.

      Definition of done

      • Return a structured result type or only an error from IndexView.DropOne.

      Pitfalls

            Assignee:
            preston.vasquez@mongodb.com Preston Vasquez
            Reporter:
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: