Skip to content

Commit c545d10

Browse files
author
Divjot Arora
committed
Change ListCollections to return mongo.Cursor
GODRIVER-575 Change-Id: Iafd0b750777a11b7c1eb87c50f31ee806ae9011f
1 parent 788107e commit c545d10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mongo/database.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func (db *Database) Drop(ctx context.Context) error {
158158
}
159159

160160
// ListCollections list collections from mongodb database.
161-
func (db *Database) ListCollections(ctx context.Context, filter *bson.Document, opts ...*options.ListCollectionsOptions) (command.Cursor, error) {
161+
func (db *Database) ListCollections(ctx context.Context, filter *bson.Document, opts ...*options.ListCollectionsOptions) (Cursor, error) {
162162
if ctx == nil {
163163
ctx = context.Background()
164164
}

0 commit comments

Comments
 (0)