@@ -47,7 +47,7 @@ Execute a Command
47
47
48
48
You can use the ``command()`` method to run a database command. You must specify
49
49
the command and any relevant arguments. If the command is simple, these can be
50
- passed as strings. Otherwise, they can be passed as a ``dict``.
50
+ passed as strings. Otherwise, they can be passed as a ``dict`` object .
51
51
The method will return the result of the command that was run.
52
52
53
53
The following code shows how you can use the ``command()``
@@ -121,7 +121,7 @@ command, which returns information about the server:
121
121
'operationTime': Timestamp(1730486145, 22)
122
122
}
123
123
124
- To find a link to a full list of database commands and corresponding
124
+ For a full list of database commands and corresponding
125
125
parameters, see the :ref:`Additional Information section
126
126
<pymongo-addtl-info-runcommand>`.
127
127
@@ -137,7 +137,7 @@ The ``CommandCursor`` can be used to iterate over command results.
137
137
138
138
The following example uses the ``cursor_command()`` method on the ``sample_mflix``
139
139
database. It runs the ``find`` command on the ``movies`` database to filter by
140
- documents in which the ``runtime``field has a value of ``11``.
140
+ documents in which the ``runtime`` field has a value of ``11``.
141
141
142
142
.. io-code-block::
143
143
:copyable: true
@@ -166,8 +166,7 @@ documents in which the ``runtime``field has a value of ``11``.
166
166
},
167
167
...
168
168
169
- Before you run a command, learn about the response format of the command so that
170
- you can handle the ``CommandCursor`` accordingly.
169
+ To learn about the response format of the command, see :manual:`Database Commands </reference/command/>`.
171
170
172
171
.. note:: Read Preference
173
172
0 commit comments