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