|
Both driver.ListCollectionsBatchCursor and mongo.Cursor implement the mongo.batchCursor interface and the driver.BatchCursor abstraction.
driver.ListCollectionsBatchCursor was added in GODRIVER-1065 , the original commit on gerrithub can be found here. It is not immediately clear why drivers.ListCollectionsBatchCursor was decouple from mongo.Cursor, but it may be because the former had to support the < 3.0 legacy operation for listing a collection. The Go Driver no longer supports versions < 3.6 and so all of this logic can be deprecated.
This ticket proposes to update the operation.ListCollection#Result to return driver.BatchCursor rather than driver.ListCollectionsBatchCursor.
Definition of complete: the aforementioned change is created and any addition updates required for a green build.
|