is an object which represents a cursor for iterating through documents in a MongoDB collection.
- To use MongoCursor, you first need to load MongoLink using Needs["MongoLink`"].
- MongoCursor objects are created by a number of functions, for example MongoCollectionFind.
- MongoCursor objects are stateful, both containing a connection to a MongoDB database and a cursor position.
Basic Examples (1)
Connect to a client:
Connect to a the "WolframTestCollection" collection in the "WolframTestDB" database:
Find all of the documents in the collection and return a result cursor:
Read the first document in the cursor:
Read the second document in the cursor: