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()
66
77.. method:: cursor.toArray()
88
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
1111 completely the cursor, loading all the documents into RAM and
1212 exhausting the cursor.
1313
1414 :returns: An array of documents.
1515
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:
1918
2019.. code-block:: javascript
2120
@@ -24,4 +23,4 @@ Consider the following example that applies :method:`toArray()
2423 if (allProductsArray.length > 0) { printjson (allProductsArray[0]); }
2524
2625The 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