Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.3   11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5   13.0    Statistic    FMM    Blog  

Component: MongoDB

Connect to a Mongo database.

MongoDB is a source-available cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas.

Version macOS Windows Linux Server iOS SDK
12.3 / 13.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes

Item Details
MongoDB.AbortTransaction
Abort a multi-document transaction.
All
12.5
MongoDB.BSONtoJSON
Converts BSON to JSON.
All
12.3
MongoDB.ChangeStreamErrorDocument   New in 13.0
Checks if an error has occurred when creating or iterating over a change stream.
All
13.0
MongoDB.ChangeStreamResumeToken   New in 13.0
Queries resume token.
All
13.0
MongoDB.CloseChangeStream   New in 13.0
Closes change stream.
All
13.0
MongoDB.CloseCollection
Closes the current collection explicitly.
All
12.4
MongoDB.CloseCursor
Closes cursor.
All
12.3
MongoDB.CloseDatabase
Closes the current database explicitly.
All
12.4
MongoDB.CollectionName
Queries name of current collection.
All
12.3
MongoDB.CollectionNames
Fetches the list of the names of all of the collections in database.
All
12.3
MongoDB.CommitTransaction
Commit a multi-document transaction.
All
12.5
MongoDB.Connect
Connects the client using the URI provided.
All
12.3
MongoDB.CreateCollection
Creates a collection in the database.
All
12.3
MongoDB.CursorBatchSize
Queries batch size.
All
12.3
MongoDB.CursorCurrent
Queries current record as JSON.
All
12.3
MongoDB.CursorErrorDocument
Checks to see if an error has occurred while iterating the cursor.
All
12.4
MongoDB.CursorGetMaxAwaitTimeMS
The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query.
All
12.3
MongoDB.CursorID
Retrieves the cursor id used by the server to track the cursor.
All
12.3
MongoDB.CursorLimit
Queries current limit.
All
12.3
MongoDB.CursorMore
Whether there may be more data.
All
12.3
MongoDB.CursorNext
Queries the next record as JSON.
All
12.3
MongoDB.CursorSetBatchSize
Sets batch size,
All
12.3
MongoDB.CursorSetLimit
Limits the number of documents in the result set.
All
12.3
MongoDB.CursorSetMaxAwaitTimeMS
Sets the maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query.
All
12.3
MongoDB.DatabaseCommand
Creates a collection in the database.
All
12.3
MongoDB.DatabasesNames
Queries the MongoDB server for a list of known databases.
All
12.3
MongoDB.DeleteMany
Deletes many records.
All
12.3
MongoDB.DeleteOne
Deletes one record.
All
12.3
MongoDB.EstimatedDocumentCount
Executes a count query on collection.
All
12.3
MongoDB.Find
Query on collection, passing arbitrary query options to the server in options.
All
12.3
MongoDB.FindCollections
Fetches a cursor containing documents, each corresponding to a collection on this database.
All
12.3
MongoDB.FindDatabases
Fetches list of database records.
All
12.3
MongoDB.FindIndexes
Fetches a cursor containing documents, each corresponding to an index on this collection.
All
12.4
MongoDB.GetAuthMechanism
Queries authentication mechanism.
All
12.3
MongoDB.GetAuthSource
Queries authorization source.
All
12.3
MongoDB.GetCompressors
Queries compressors.
All
12.3
MongoDB.GetPassword
Queries password used for login.
All
12.3
MongoDB.GetServiceHostName
Queries service hostname for login.
All
12.3
MongoDB.GetServiceName
Queries service name for login.
All
12.3
MongoDB.GetURI
Fetches the URI as a string.
All
12.3
MongoDB.GetUserName
Queries username for login.
All
12.3
MongoDB.HasCollection
Checks to see if a collection exists on the MongoDB server within database.
All
12.3
MongoDB.InTransaction
Check whether a multi-document transaction is in progress for this session.
All
12.5
MongoDB.InsertMany
Insert documents into collection.
All
12.4
MongoDB.InsertOne
Inserts a document into collection.
All
12.3
MongoDB.JSONtoBSON
Converts JSON to BSON.
All
12.3
MongoDB.Keys
Queries current collection to find all the key names.
All
12.3
MongoDB.LibraryVersion
Queries library version.
All
12.3
MongoDB.List
Lists all IDs of current MongoDB objects.
All
12.5
MongoDB.MaxBSONSize
Returns the maximum bson document size allowed by the cluster.
All
12.3
MongoDB.MaxMessageSize
Returns the maximum message size allowed by the cluster.
All
12.3
MongoDB.New
Creates a new MongoDB object.
All
12.3
MongoDB.NewCursorFromCommandReply
Creates a cursor object from the reply of a command.
All
12.4
MongoDB.NextChange   New in 13.0
Iterates the underlying change stream, returning the next document.
All
13.0
MongoDB.OpenCollection
Sets the current collection.
All
12.3
MongoDB.OpenDatabase
Opens the given database.
All
12.3
MongoDB.OpenDefaultDatabase
Selects default database.
All
12.3
MongoDB.Release
Frees the MongoDB object.
All
12.3
MongoDB.ReleaseAll
Frees all MongoDB objects.
All
12.3
MongoDB.Rename
This function is a helper to rename an existing collection on a MongoDB server.
All
12.4
MongoDB.ReplaceOne
This replace one document in the collection that match selector with replacement.
All
12.3
MongoDB.ServerDescription
Get information about the server specified by ServerID.
All
12.3
MongoDB.ServerDescriptions
Fetches an server descroptions for all known servers in the topology.
All
12.3
MongoDB.SetAuthMechanism
Sets authentication mechanism.
All
12.3
MongoDB.SetAuthSource
Sets authentication source.
All
12.3
MongoDB.SetCompressors
Sets compressors to use.
All
12.3
MongoDB.SetPassword
Sets user password for login.
All
12.3
MongoDB.SetURI
Sets the URI.
All
12.3
MongoDB.SetUserName
Sets user name for login.
All
12.3
MongoDB.StartTransaction
Start a multi-document transaction for all following operations in this session.
All
12.5
MongoDB.TransactionState
Returns the current transaction state for this session.
All
12.5
MongoDB.UpdateMany
Updates many documents in collection that matches selector.
All
12.3
MongoDB.UpdateOne
Updates at most one document in collection that matches selector.
All
12.3
MongoDB.WatchClient   New in 13.0
Creates a change stream for a client.
All
13.0
MongoDB.WatchCollection   New in 13.0
Creates a change stream for a collection.
All
13.0
MongoDB.WatchDatabase   New in 13.0
Creates a change stream for a database.
All
13.0

76 functions shown.

Release notes

Blog Entries

Example Databases

Videos

Feedback: Report problem or ask question.


Start Chat