MongoLink`
MongoLink`

MongoCursorToArray

MongoCursorToArray[MongoCursor[]]

takes a MongoCursor object and returns a list of all remaining documents.

Details

Examples

open allclose all

Basic Examples  (1)

In[1]:=
Click for copyable input

Connect to a client:

In[1]:=
Click for copyable input
Out[1]=

Connect to a the "WolframTestCollection" collection in the "WolframTestDB" database:

In[1]:=
Click for copyable input
Out[1]=

Find all of the documents in the collection:

In[1]:=
Click for copyable input
Out[1]=

View all of the documents in the collection:

In[1]:=
Click for copyable input
Out[1]=

This is equivalent to:

In[1]:=
Click for copyable input
Out[1]=
In[1]:=
Click for copyable input
Out[1]=

Scope  (1)

See Also

MongoCursor  MongoCursorGetBatchSize  MongoCursorSetBatchSize  MongoCursorNext

Tutorials