Skip to content

Commit 3bda804

Browse files
RUBY-3205 Deprecate collStats (#2738)
* RUBY-3205 Deprecate collStats * Consider createOptions in unified spec runner * Update lib/mongo/collection.rb Co-authored-by: Jamis Buck <[email protected]> --------- Co-authored-by: Jamis Buck <[email protected]>
1 parent edf4b4c commit 3bda804

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/reference/crud-operations.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ part of the command:
458458

459459
.. code-block:: ruby
460460

461-
client.database.command(collstats: 'test', readConcern: {level: :majority})
461+
client.database.command(dbStats: 1, readConcern: {level: :majority})
462462

463463

464464
.. _read-preference:
@@ -504,7 +504,7 @@ option when a command is run on a database:
504504
} )
505505

506506
# Set read preference for a given command
507-
client.database.command( { collstats: 'test' }, read: { mode: secondary,
507+
client.database.command( { dbStats: 1 }, read: { mode: secondary,
508508
tag_sets: [ { 'dc' => 'nyc' } ] } )
509509

510510
Read preference can also be set for specific operations on a collection

0 commit comments

Comments
 (0)