We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edf4b4c commit 3bda804Copy full SHA for 3bda804
source/reference/crud-operations.txt
@@ -458,7 +458,7 @@ part of the command:
458
459
.. code-block:: ruby
460
461
- client.database.command(collstats: 'test', readConcern: {level: :majority})
+ client.database.command(dbStats: 1, readConcern: {level: :majority})
462
463
464
.. _read-preference:
@@ -504,7 +504,7 @@ option when a command is run on a database:
504
} )
505
506
# Set read preference for a given command
507
- client.database.command( { collstats: 'test' }, read: { mode: secondary,
+ client.database.command( { dbStats: 1 }, read: { mode: secondary,
508
tag_sets: [ { 'dc' => 'nyc' } ] } )
509
510
Read preference can also be set for specific operations on a collection
0 commit comments