@@ -5,10 +5,8 @@ Getting Started with the ``mongo`` Shell
55.. default-domain:: mongodb
66
77This document provides a basic introduction to using the
8- :program:`mongo` shell. See :doc:`/tutorial/getting-started` for an
9- introduction to basic MongoDB operations and use. See
10- :doc:`/installation` for instructions on installing MongoDB for your
11- system.
8+ :program:`mongo` shell. See :doc:`/installation` for instructions on
9+ installing MongoDB for your system.
1210
1311Start the ``mongo`` Shell
1412-------------------------
@@ -61,12 +59,12 @@ available options.
6159 When starting, :program:`mongo` checks the user's :envvar:`HOME`
6260 directory for a JavaScript file named :ref:`.mongorc.js
6361 <mongo-mongorc-file>`. If found, :program:`mongo` interprets the
64- content :file:`.mongorc.js` before displaying the prompt for
65- the first time. If you use the shell to evaluate a JavaScript file
66- or expression either on the command line with :option:`--eval` or
67- by specifying :ref:`a .js file to mongo <mongo-shell-file>`,
68- :program:`mongo` will read the ``.mongorc.js`` file *after* the
69- JavaScript has finished processing.
62+ content of :file:`.mongorc.js` before displaying the prompt for the
63+ first time. If you use the shell to evaluate a JavaScript file or
64+ expression, either by using the :option:`--eval` option on the
65+ command line or by specifying :ref:`a .js file to mongo
66+ <mongo-shell-file>`, :program:`mongo` will read the ``.mongorc.js``
67+ file *after* the JavaScript has finished processing.
7068
7169.. _mongo-shell-executing-queries:
7270
@@ -80,7 +78,7 @@ From the :program:`mongo` shell, you can use the :doc:`shell methods
8078
8179 db.<collection>.find()
8280
83- - The ``db`` is a variable that refers to the current database.
81+ - The ``db`` refers to the current database.
8482
8583- The ``<collection>`` is the name of the collection to query. See
8684 :ref:`mongo-shell-help-collection` to list the available collections.
@@ -105,7 +103,7 @@ From the :program:`mongo` shell, you can use the :doc:`shell methods
105103 first 20 documents that match the query. The :program:`mongo` shell
106104 will prompt ``Type it`` to iterate another 20 times.
107105
108- You can set the ``DBQuery.shellBatchSize`` variable to change the
106+ You can set the ``DBQuery.shellBatchSize`` attribute to change the
109107 number of iteration from the default value ``20``, as in the
110108 following example which sets it to ``10``:
111109
0 commit comments