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


Sets the client application name.

Component Version macOS Windows Linux Server iOS SDK
MongoDB 14.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "MongoDB.SetAppName"; MongoDBRef; Name )   More


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


Returns OK or error.


Sets the client application name.
This value is used by MongoDB when it logs connection information and profile information, such as slow queries.

Default: Empty (no appname)

See also

Release notes

  • Version 14.2
    • Added MongoDB.GetAppName, MongoDB.SetAppName and MongoDB.GetCredentials functions.

Blog Entries

This function is free to use.

Created 20th March 2024, last changed 20th March 2024

MongoDB.ServerDescriptions - MongoDB.SetAuthMechanism