File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -38,5 +38,6 @@ php-library = "MongoDB PHP Library"
38
38
library-short = " PHP library"
39
39
stable-api = " Stable API"
40
40
mdb-server = " MongoDB Server"
41
+ extension-short = " PHP extension"
41
42
api = " https://www.mongodb.com/docs/php-library/current/reference"
42
43
php-manual = " https://www.php.net/manual/en"
Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ Execute a Command
44
44
45
45
To run a database command, you must specify the command and any relevant
46
46
parameters in a command document, then pass the command document to the
47
- ``command()`` method. This method returns a ``Cursor`` object.
47
+ ``MongoDB\Database::command()`` method. This method returns a
48
+ ``Cursor`` object.
48
49
49
50
The following code shows how you can use the ``command()``
50
51
method on a database to run the ``hello`` command, which returns
@@ -172,5 +173,13 @@ documentation in the {+mdb-server+} manual:
172
173
API Documentation
173
174
~~~~~~~~~~~~~~~~~
174
175
176
+ For more information about the ``command()`` method, see the
177
+ following {+php-library+} API documentation:
178
+
175
179
- `MongoDB\\Database::command() <{+api+}/method/MongoDBDatabase-command/>`__
176
- - `MongoDB\\Driver\\ReadPreference <https://www.php.net/manual/en/class.mongodb-driver-readpreference.php>`__
180
+
181
+ For more information about the ``MongoDB\Driver\ReadPreference`` class,
182
+ see the following {+extension-short+} API documentation:
183
+
184
+ - `MongoDB\\Driver\\ReadPreference
185
+ <https://www.php.net/manual/en/class.mongodb-driver-readpreference.php>`__
You can’t perform that action at this time.
0 commit comments