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.
2 parents c569070 + d1532f9 commit da99517Copy full SHA for da99517
articles/cosmos-db/mongodb/quickstart-go.md
@@ -76,8 +76,7 @@ The following snippets are all taken from the `todo.go` file.
76
77
clientOptions := options.Client().ApplyURI(mongoDBConnectionString).SetDirect(true)
78
79
- c, err := mongo.NewClient(clientOptions)
80
- err = c.Connect(ctx)
+ c, err := mongo.Connect(ctx, clientOptions)
81
if err != nil {
82
log.Fatalf("unable to initialize connection %v", err)
83
}
0 commit comments