File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,15 @@ cursor.toArray()
6
6
7
7
.. method:: cursor.toArray()
8
8
9
- The :method:`toArray() < cursor.toArray()> ` method returns an array
10
- that contains all the documents from a cursor. The method iterates
9
+ The :method:`~ cursor.toArray()` method returns an array that
10
+ contains all the documents from a cursor. The method iterates
11
11
completely the cursor, loading all the documents into RAM and
12
12
exhausting the cursor.
13
13
14
14
:returns: An array of documents.
15
15
16
- Consider the following example that applies :method:`toArray()
17
- <cursor.toArray()>` to the cursor returned from the :method:`find()
18
- <db.collection.find()>` method:
16
+ Consider the following example that applies :method:`~cursor.toArray()`
17
+ to the cursor returned from the :method:`~db.collection.find()` method:
19
18
20
19
.. code-block:: javascript
21
20
@@ -24,4 +23,4 @@ Consider the following example that applies :method:`toArray()
24
23
if (allProductsArray.length > 0) { printjson (allProductsArray[0]); }
25
24
26
25
The variable ``allProductsArray`` holds the array of documents returned by
27
- :method:`toArray() < cursor.toArray()> `.
26
+ :method:`~ cursor.toArray()`.
You can’t perform that action at this time.
0 commit comments