MongoDB.CursorLimit
-------------------

Queries current limit.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [MongoDB](component_MongoDB.md) | [12.3](newinversion123.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "MongoDB.CursorLimit"; MongoDBRef ) 

**MBS**( **"MongoDB.CursorLimit";** /\* Queries current limit. \*/  
**$MongoDBRef**) /\* The reference number for the mongo connection.e.g. $MongoDB \*/ 

### Parameters

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

### Result

Returns number or error.

### Description

Queries current limit.  
### Examples

Sets limit and shows it:

 # first make a find   
Set Variable \[ $r ; Value: MBS ( "[MongoDB.CursorSetLimit](MongoDBCursorSetLimit.md)"; $Mongo ; 2) \]   
Show Custom Dialog \[ "Current cursor limit:" ; MBS ( "MongoDB.CursorLimit"; $mongo ) \]  
### See also

- [MongoDB.CursorMore](MongoDBCursorMore.md)
- [MongoDB.CursorNext](MongoDBCursorNext.md)
- [MongoDB.CursorSetLimit](MongoDBCursorSetLimit.md)

This function checks for a license.

Created 22nd May 2022 , last changed 25th February 2026

  
[MongoDB.CursorID](MongoDBCursorID.md) - [MongoDB.CursorMore](MongoDBCursorMore.md)

[HTML Version](MongoDBCursorLimit.shtml)