MongoLink`
MongoLink`
MongoCursorToArray
MongoCursorToArray[MongoCursor[…]]
takes a MongoCursor object and returns a list of all remaining documents.
Details and Options
- To use MongoCursorToArray, you first need to load MongoLink using Needs["MongoLink`"].
- MongoCursorToArray[cursor] completely iterates the cursor, loading all the documents into RAM and exhausting the cursor.
- ReadList[cursor] corresponds to MongoCursorToArray[cursor].
- Dataset[cursor] corresponds to Dataset[MongoCursorToArray[cursor]].
- MongoCursorToArray corresponds to cursor.toArray in the MongoDB documentation.
Examples
open allclose allBasic Examples (1)
Wolfram Research (2018), MongoCursorToArray, Wolfram Language function, https://reference.wolfram.com/language/MongoLink/ref/MongoCursorToArray.html.
Text
Wolfram Research (2018), MongoCursorToArray, Wolfram Language function, https://reference.wolfram.com/language/MongoLink/ref/MongoCursorToArray.html.
CMS
Wolfram Language. 2018. "MongoCursorToArray." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/MongoLink/ref/MongoCursorToArray.html.
APA
Wolfram Language. (2018). MongoCursorToArray. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/MongoLink/ref/MongoCursorToArray.html