XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • 1.0.3
    • Authentication
    • 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?

      Attachments

        Activity

          People

            manny.eppinger@mongodb.com Emmanuel Eppinger (Inactive)
            bailey Bailey Matthews
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: