Details
-
Task
-
Resolution: Works as Designed
-
Major - P3
-
None
-
1.0.3
-
None
-
Docker / Linux
Description
Lets say I have this code, with `mongodb` being the name of the docker link allowing me to connect:
// Set client options
|
clientOptions := options.Client().ApplyURI("mongodb:20930")
|
|
|
// Connect to MongoDB
|
client, err := mongo.Connect(context.TODO(), clientOptions)
|
How would I connect to the database using a username and password?