Skip to content

Commit d528ad8

Browse files
authored
MONGOID-5250 Replace connect: :direct with direct_connection: true in documentation (#5157)
* MONGOID-5250 update docs to refer to direct_connection * MONGOID-5250 get rid of back ticks
1 parent 7d6ab40 commit d528ad8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

source/reference/configuration.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,17 @@ for details on driver options.
185185

186186
# Force the driver to connect in a specific way instead of auto-
187187
# discovering. Can be one of: :direct, :replica_set, :sharded. Set to :direct
188-
# when connecting to hidden members of a replica set.
188+
# when connecting to hidden members of a replica set. This option is deprecated
189+
# and using it to specify :replica_set or :sharded is generally unnecessary.
190+
# To force the client to use a direct connection, it is recommended that the
191+
# direct_connection option be used.
189192
connect: :direct
190193

194+
# To disable the deployment type discovery and force all operations to be
195+
# performed on a particular server, specify the direct_connection option
196+
# as true. (default: false)
197+
direct_connection: false
198+
191199
# Change the default time in seconds the server monitors refresh their status
192200
# via hello commands. (default: 10)
193201
heartbeat_frequency: 10

0 commit comments

Comments
 (0)