Skip to content

Commit 5053786

Browse files
committed
small fixes
1 parent 8918fbf commit 5053786

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

source/run-command.txt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ To run a database command, you must specify the command and any relevant
4949
parameters in a command document, then pass the command document to the
5050
``MongoDB\Database::command()`` method. Many database commands return
5151
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.
5354

5455
The following code shows how you can use the ``command()``
5556
method on a :phpclass:`MongoDB\Database` instance to run the ``hello``
@@ -80,7 +81,11 @@ parameters, see the :ref:`Additional Information section
8081
:start-after: start-readpref
8182
:end-before: end-readpref
8283

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
8489
Preference </core/read-preference/>` in the {+mdb-server+} manual.
8590

8691
.. _php-command-response:
@@ -179,10 +184,4 @@ API Documentation
179184
For more information about the ``command()`` method, see the
180185
following {+php-library+} API documentation:
181186

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

Comments
 (0)