Skip to content

Commit 6a1ae09

Browse files
author
Sam Kleinman
committed
DOCS-2203: adding an example and cross reference
1 parent e7fd978 commit 6a1ae09

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

source/reference/command/listDatabases.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,13 @@ listDatabases
1919
name, a ``sizeOnDisk`` field with the total size of the database
2020
file on disk in bytes, and an ``empty`` field specifying whether
2121
the database has any data.
22+
23+
.. example::
24+
25+
The following operation returns a list of all databases:
26+
27+
.. code-block:: javascript
28+
29+
db.runCommand( { listDatabases: 1 } )
30+
31+
.. seealso:: :doc:`/tutorial/use-database-commands`.

0 commit comments

Comments
 (0)