Skip to content

Commit 83192e8

Browse files
0.7.0 updates (#82)
* DOCSP-13662: v0.7.0 updates * DOCSP-13662: v0.7.0 updates * DOCSP-13662: v0.7.0 updates * title tweak Co-authored-by: Steve Renaker <[email protected]>
1 parent 30da0e4 commit 83192e8

File tree

5 files changed

+51
-9
lines changed

5 files changed

+51
-9
lines changed

source/includes/steps-view-logs.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ level: 4
2525
ref: view-session-log
2626
content: |
2727
28-
|mdb-shell| saves the log for each session to your user's
29-
``.mongodb/mongosh`` directory:
30-
3128
.. tabs::
3229
3330
.. tab::
3431
:tabid: macOS and Linux
3532
33+
|mdb-shell| saves the log for each session to your user's
34+
``.mongodb/mongosh`` directory:
35+
3636
.. code-block:: sh
3737
3838
~/.mongodb/mongosh/<LogID>_log
@@ -62,7 +62,10 @@ content: |
6262
tail -f ~/.mongodb/mongosh/<LogID>_log | pino-colada
6363
6464
.. tab::
65-
:tabid: windows
65+
:tabid: Windows
66+
67+
|mdb-shell| saves the log for each session to your user's
68+
``C:\Users\<username>\AppData\Local\`` directory:
6669
6770
.. code-block:: sh
6871

source/install.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ Procedure
3636

3737
.. include:: /includes/steps/install-shell-windows.rst
3838

39+
.. note::
40+
41+
``mongosh`` preferences are stored by default in the directory
42+
``C:\Users\<username>\AppData\Roaming``.
43+
3944
.. tab::
4045
:tabid: macos
4146

@@ -101,6 +106,11 @@ Procedure
101106

102107
.. include:: /includes/steps/install-shell-linux-generic.rst
103108

109+
.. important:: Windows Users
110+
111+
``mongosh`` preferences are stored by default in the directory
112+
``C:\Users\<username>'\.mongodb\mongosh``.
113+
104114
Next Steps
105115
----------
106116

source/reference/methods.txt

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,12 +395,17 @@ Cursor Methods
395395

396396
.. arrayAccess
397397

398-
* - :method:`cursor.batchSize()`
398+
* - ``cursor.batchSize()``
399399

400400
- Controls the number of documents MongoDB will return to the
401401
client in a single network message.
402402

403-
.. clone
403+
The following example query returns results in batches of
404+
100:
405+
406+
.. code-block:: sh
407+
408+
db.myCollection.find().batchSize(100)
404409

405410
* - :method:`cursor.close()`
406411

@@ -697,6 +702,24 @@ Native Methods
697702

698703
- Description
699704

705+
* - ``print()``
706+
707+
- Print the specified text or variable. ``print()`` and ``printjson()``
708+
are aliases for ``console.log()``.
709+
710+
.. code-block:: code
711+
712+
> print("hello world")
713+
hello world
714+
715+
> x = "example text"
716+
> print(x)
717+
example text
718+
719+
* - ``sleep()``
720+
721+
- Suspends the |mongo| shell for a given period of time.
722+
700723
* - ``version()``
701724

702725
- Returns the current version of the ``mongosh`` instance.

source/run-commands.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ the server.
4747
provides consistent behavior by always throwing an exception in these
4848
scenarios.
4949

50+
Clear the ``mongosh`` Console
51+
-----------------------------
52+
53+
The ``cls`` command clears the console. You can also clear the console
54+
with ``Ctrl + L`` and ``console.clear()``.
55+
5056
.. toctree::
5157
:titlesonly:
5258

source/write-scripts.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _mdb-shell-write-scripts:
22

3-
=================================
4-
Write Scripts for the ``mongosh``
5-
=================================
3+
=============================
4+
Write Scripts for ``mongosh``
5+
=============================
66

77
.. default-domain:: mongodb
88

0 commit comments

Comments
 (0)