MongoLink`
MongoLink`

MongoCursorNext

MongoCursorNext[MongoCursor[]]

returns the next document in the MongoCursor[] object.

Details

Examples

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 documents in the collection one at a time:

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

When there are no more documents in the cursor, nothing will be returned:

In[1]:=
Click for copyable input

This is equivalent to:

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