| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
MongoDB.MaxMessageSize
Returns the maximum message size allowed by the cluster.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| MongoDB | 12.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Deprecated
This function was deprecated.
MBS( "MongoDB.MaxMessageSize"; MongoDBRef ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| MongoDBRef | The reference number for the mongo connection. | $MongoDB |
Result
Returns number or error.
Description
Returns the maximum message size allowed by the cluster.Until a connection has been made, this will be the default of 40Mb.
Examples
Shows maximum message size:
Show Custom Dialog [ "Maximum message size:" ; MBS( "MongoDB.MaxMessageSize"; $mongo ) ]
Release notes
- Version 15.6
- Deprecated MongoDB.MaxMessageSize and MongoDB.MaxBSONSize functions.
Blog Entries
This function checks for a license.
Created 19th June 2022, last changed 30th November 2025