Registry / database / mongodb-mongo-go-driver

mongodb-mongo-go-driver

JSON →
library1.17.9gogounverified

Package mongo provides a MongoDB driver for Go.

go get github.com/mongodb/mongo-go-driver
INSTALL
IMPORT
SIG · MONGODB-MONGO-GO-D
M
mongodb-mongo-go-driver
databasegov1.17.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mongo
github.com/mongodb/mongo-go-driver

Connects to a MongoDB instance

import "github.com/mongodb/mongo-go-driver/mongo" // Example: connecting to MongoDB client, _ := mongo.Connect(context.Background(), options.Client().ApplyURI("mongodb://localhost:27017"))
Debug
Known issues
breakingBreaking changes in v2: the driver API was significantly redesigned.
fix
Use v1.x for legacy compatibility or migrate to v2 with updated API calls.
affects: >=2.0.0
Upgrade
Version history
1.17.9latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mongodb-mongo-go-driver — go get mongodb-mongo-go-driver · libregistry