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

MongoDB.CloseCursor

Closes cursor.

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

Parameters

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

Result

Returns OK or error.

Description

Closes cursor.
This function is optional to close the current cursor.
Normally it is freed when a new one is set or the MongoDB.Release function is called.
This function returns OK whether a cursor is there or not.

Examples

Close cursor explicitly:

Set Variable [ $r ; Value: MBS( "MongoDB.CloseCursor"; $Mongo) ]

See also

This function checks for a license.

Created 20th June 2022, last changed 20th June 2022


MongoDB.CloseCollection - MongoDB.CloseDatabase