Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MongoDB.CursorRecords

Queries the all records as JSON.

Component Version macOS Windows Linux Server iOS SDK
MongoDB 14.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "MongoDB.CursorRecords"; MongoDBRef )   More

Parameters

Parameter Description Example
MongoDBRef The reference number for the mongo connection. $MongoDB

Result

Returns JSON, empty or error.

Description

Queries the all records as JSON.
This function loops and collects all records in a big JSON array.
Otherwise, "" is returned if the cursor was exhausted.
And it can return an error in other cases like a dropped connection.

Returns out of memory error if size of JSON exceeds 2 GB.

See also

Release notes

Blog Entries

Created 23th July 2024, last changed 24th July 2024


MongoDB.CursorNext - MongoDB.CursorSetBatchSize