@@ -49,7 +49,8 @@ To run a database command, you must specify the command and any relevant
49
49
parameters in a command document, then pass the command document to the
50
50
``MongoDB\Database::command()`` method. Many database commands return
51
51
multiple result documents, so the ``command()`` method returns a
52
- ``MongoDB\Driver\Cursor`` object that you can iterate through.
52
+ :php:`MongoDB\Driver\Cursor <mongodb-driver-cursor>` object that you can
53
+ iterate through.
53
54
54
55
The following code shows how you can use the ``command()``
55
56
method on a :phpclass:`MongoDB\Database` instance to run the ``hello``
@@ -80,7 +81,11 @@ parameters, see the :ref:`Additional Information section
80
81
:start-after: start-readpref
81
82
:end-before: end-readpref
82
83
83
- For more information on read preference options, see :manual:`Read
84
+ Learn more about the ``ReadPreference`` class in the
85
+ :php:`{+extension-short+} API documentation
86
+ <mongodb-driver-readpreference>`.
87
+
88
+ To learn more about read preference options, see :manual:`Read
84
89
Preference </core/read-preference/>` in the {+mdb-server+} manual.
85
90
86
91
.. _php-command-response:
@@ -179,10 +184,4 @@ API Documentation
179
184
For more information about the ``command()`` method, see the
180
185
following {+php-library+} API documentation:
181
186
182
- :phpmethod:`MongoDB\Database::command()`
183
-
184
- For more information about the ``Cursor`` and ``ReadPreference`` classes,
185
- see the following {+extension-short+} API documentation:
186
-
187
- - :php:`MongoDB\Driver\Cursor <mongodb-driver-cursor>`
188
- - :php:`MongoDB\Driver\ReadPreference <mongodb-driver-readpreference>`
187
+ - :phpmethod:`MongoDB\Database::command()`
0 commit comments