# Functions

Connect creates a new Client and then initializes it using the Connect method.
NewClient creates a new client to connect to a cluster specified by the uri.
NewClientFromConnString creates a new client to connect to a cluster, with configuration specified by the connection string.
NewClientWithOptions creates a new client to connect to to a cluster specified by the connection string and the options manually passed in.
TransformDocument handles transforming a document of an allowable type into a *bson.Document.

# Variables

ClientOpt is a convenience variable provided for access to ClientOptions methods.
ErrInvalidIndexValue indicates that the index Keys document has a value that isn't either a number or a string.
ErrMissingResumeToken indicates that a change stream notification from the server did not contain a resume token.
ErrMultipleIndexDrop indicates that multiple indexes would be dropped from a call to IndexView.DropOne.
ErrNoDocuments is returned by Decode when an operation that returns a DocumentResult doesn't return any documents.
ErrNonStringIndexName indicates that the index name specified in the options is not a string.
ErrUnacknowledgedWrite is returned from functions that have an unacknowledged write concern.
Opt is a convenience variable provided for access to Options methods.

# Structs

BulkWriteError is an error returned from a bulk write operation.
Client performs operations on a given topology.
ClientOptions is used as a namespace for mongo.Client option constructors.
Collection performs operations on a given collection.
Database performs operations on a given database.
DatabaseSpecification is the information for a single database returned from a ListDatabases operation.
DeleteResult is a result of an DeleteOne operation.
DocumentResult represents a single document returned from an operation.
IndexModel contains information about an index.
IndexView is used to create, drop, and list indexes on a given collection.
InsertManyResult is a result of an InsertMany operation.
InsertOneResult is a result of an InsertOne operation.
ListDatabasesResult is a result of a ListDatabases operation.
Options is used as a namespace for MongoDB operation option constructors.
UpdateResult is a result of an update operation.
WriteConcernError is a write concern failure that occured as a result of a write operation.
WriteError is a non-write concern failure that occured as a result of a write operation.

# Interfaces

Cursor instances iterate a stream of documents.
Dialer is used to make network connections.

# Type aliases

WriteErrors is a group of non-write concern failures that occured as a result of a write operation.