We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a39a5f9 commit 1098521Copy full SHA for 1098521
mongo/doc.go
@@ -1,10 +1,12 @@
1
// Package mongo provides a MongoDB Driver API for Go.
2
//
3
// Basic usage of the driver starts with creating a Client from a connection
4
-// string. To do so, call the NewClient function:
+// string. To do so, call the NewClient and Connect functions:
5
6
// client, err := mongo.NewClient("mongodb://foo:bar@localhost:27017")
7
// if err != nil { log.Fatal(err) }
8
+// err = client.Connect(context.TODO())
9
+// if err != nil { log.Fatal(err) }
10
11
// This will create a new client and start monitoring the MongoDB server on localhost.
12
// The Database and Collection types can be used to access the database:
0 commit comments