diff --git a/source/connect/connection-options.txt b/source/connect/connection-options.txt index 769ff176..3cf2408a 100644 --- a/source/connect/connection-options.txt +++ b/source/connect/connection-options.txt @@ -38,8 +38,8 @@ and the ``tls`` option with a value of ``true``: uri = "mongodb://:/?connectTimeoutMS=60000&tls=true" client = Mongo::Client.new(uri) -Using a ``Mongo::Client`` -~~~~~~~~~~~~~~~~~~~~~~~~~ +Using a Mongo::Client +~~~~~~~~~~~~~~~~~~~~~ You can pass connection options as arguments to the ``Mongo::Client`` constructor instead of including them in your connection URI. @@ -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