MongoDB.CursorMore
------------------

Whether there may be more data.

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

MBS( "MongoDB.CursorMore"; MongoDBRef ) 

**MBS**( **"MongoDB.CursorMore";** /\* Whether there may be more data. \*/  
**$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 1, 0 or error.

### Description

Whether there may be more data.  
This function shall indicate if there is potentially more data to be read from the cursor.  
This is only useful with tailable cursors. Use NextRecord() for regular cursors.  
  
Details: MongoDB.CursorMore is unreliable because it does not contact the server to see if there are actually more documents in the result set. It simply returns true if the cursor has not begun, or if it has begun and there are buffered documents in the client-side cursor, or if it has begun and the server has not yet told the cursor it is completely iterated.  
  
This is unreliable with regular queries because it returns true for a new cursor before iteration, even if the cursor will match no documents. It is also true if the collection has been dropped on the server since the previous fetch, or if the cursor has finished its final batch and the next batch will be empty.  
  
Returns true if the cursor has locally-buffered documents, or if a round-trip to the server might fetch additional documents.  
### See also

- [MongoDB.CursorCurrent](MongoDBCursorCurrent.md)
- [MongoDB.CursorID](MongoDBCursorID.md)
- [MongoDB.CursorLimit](MongoDBCursorLimit.md)
- [MongoDB.CursorNext](MongoDBCursorNext.md)
- [MongoDB.CursorRecords](MongoDBCursorRecords.md)

This function checks for a license.

Created 22nd May 2022 , last changed 28th May 2026

  
[MongoDB.CursorLimit](MongoDBCursorLimit.md) - [MongoDB.CursorNext](MongoDBCursorNext.md)

[HTML Version](MongoDBCursorMore.shtml)