Skip to content

Commit 472b79d

Browse files
committed
links
1 parent 6588992 commit 472b79d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

source/run-command.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ command, which returns information about the server:
5555

5656
.. io-code-block::
5757
:copyable: true
58-
58+
5959
.. input:: /includes/run-command.py
6060
:language: python
6161
:start-after: start-hello
@@ -131,7 +131,7 @@ Command Cursor
131131

132132
The ``command()`` method returns the result of the command that was run.
133133
You can also use the ``cursor_command()`` method, which issues a MongoDB
134-
command and parses the response as a `CommandCursor <{+api-root+}command_cursor.html#pymongo.command_cursor.CommandCursor>`__.
134+
command and parses the response as a `CommandCursor <{+api-root+}pymongo/command_cursor.html#pymongo.command_cursor.CommandCursor>`__.
135135
The ``CommandCursor`` can be used to iterate over command results.
136136

137137
The following example uses the ``cursor_command()`` method on the ``sample_mflix``
@@ -172,9 +172,9 @@ you can handle the ``CommandCursor`` accordingly.
172172

173173
The ``command()`` and ``cursor_command()`` methods do not obey the read preference you might
174174
have set on your ``Database`` instance elsewhere in your code. If a
175-
`Client Session <{+api-root+}bson/objectid.html#bson.objectid.ObjectId>`__ is
175+
`Client Session <{+api-root+}pymongo/client_session.html#pymongo.client_session.ClientSession>`__ is
176176
provided by using the ``session`` parameter, and this session is in a
177-
`transaction <{+api-root+}client_session.html#transactions>`__, the command's
177+
`transaction <{+api-root+}pymongo/client_session.html#transactions>`__, the command's
178178
read preference will be set to the transaction's read preference. Otherwise,
179179
the command's read preference defaults to ``PRIMARY``.
180180

@@ -188,7 +188,7 @@ you can handle the ``CommandCursor`` accordingly.
188188
:end-before: end-readpref
189189

190190
Learn more about the ``read_preferences`` module in the `API documentation
191-
<{+api-root+}read_preferences.html#module-pymongo.read_preferences>`__.
191+
<{+api-root+}pymongo/read_preferences.html#module-pymongo.read_preferences>`__.
192192

193193
To learn more about read preference options, see :manual:`Read
194194
Preference </core/read-preference/>` in the {+mdb-server+} manual.
@@ -243,5 +243,5 @@ API Documentation
243243
For more information about the ``command()`` and ``cursor_command()`` methods,
244244
see the following {+driver-short+} API documentation:
245245

246-
- `command() <{+api-root+}database.html#pymongo.database.Database.command>`__
247-
- `cursor_command() <{+api-root+}database.html#pymongo.database.Database.cursor_command>`__
246+
- `command() <{+api-root+}pymongo/database.html#pymongo.database.Database.command>`__
247+
- `cursor_command() <{+api-root+}pymongo/database.html#pymongo.database.Database.cursor_command>`__

0 commit comments

Comments
 (0)