Currently, ListCollections returns a cursor. In order to unmarshal this cursor, you have to create a struct that matches the output of ListCollections. It would be helpful if the Go driver provided this type.
EDIT: A similar helper type was also added for IndexView.List in scope of this ticket.
- related to
-
GODRIVER-2221 Add Unique, ExpireAfterSeconds, and Sparse to IndexSpecification
- Closed