Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions source/connect/connection-options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ and the ``tls`` option with a value of ``true``:
uri = "mongodb://<hostname>:<port>/?connectTimeoutMS=60000&tls=true"
client = Mongo::Client.new(uri)

Using a ``Mongo::Client``
~~~~~~~~~~~~~~~~~~~~~~~~~
Using a Mongo::Client
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Using a Mongo::Client
Using a ``Mongo::Client``

Why remove the monospace formatting from the heading?

Copy link
Contributor Author

@rachel-mack rachel-mack Jul 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use font formatting like this in headings so I'm just fixing a pre-existing error here. It's a rule in our styleguide, and I know it can appear a little funny in the page-level toc sidebar, so I'm assuming that's why the decision was made.
In the text body, Mongo::Client is always monospaced.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah ok, all good

~~~~~~~~~~~~~~~~~~~~~

You can pass connection options as arguments to the ``Mongo::Client`` constructor
instead of including them in your connection URI.
Expand Down Expand Up @@ -142,6 +142,14 @@ Server Selection
* - Connection Option
- Description

* - **:load_balanced**
- | Whether to expect to connect to a load balancer.
|
| **Data Type**: ``Boolean``
| **Default**: ``false``
| **Client Example**: ``load_balanced: { true }``
| **Connection URI Example**: N/A

* - **:server_selector**
- | Get the server selector. It either uses the read preference
defined in the client options or defaults to a Primary
Expand Down
Loading