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

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.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes

Item Details
MongoDB.AbortTransaction
Abort a multi-document transaction.
All
12.5
MongoDB.AggregateCollection
Creates an aggregate collection.
All
13.1
MongoDB.AggregateDatabase
Creates an aggregate database.
All
13.1
MongoDB.BSONtoJSON
Converts BSON to JSON.
All
12.3
MongoDB.ChangeStreamErrorDocument
Checks if an error has occurred when creating or iterating over a change stream.
All
13.0
MongoDB.ChangeStreamResumeToken
Queries resume token.
All
13.0
MongoDB.CloseChangeStream
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.Command
Execute a command on the server.
All
13.1
MongoDB.CommitTransaction
Commit a multi-document transaction.
All
12.5
MongoDB.Connect
Connects the client using the URI provided.
All
12.3
MongoDB.ContainerToBinary
Converts a container to JSON for MongoDB.
All
13.2
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.GetOptions
Queries the options from the URL.
All
13.1
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.GetTLS
Whether this connection is set to be encrypted.
All
13.1
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.IsTracing
Queries whether trace is enabled.
All
13.4
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
Iterates the underlying change stream, returning the next document.
All
13.0
MongoDB.NowUTC
Create a new JSON value with current date and time.
All
13.2
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.Ping
Sends ping command.
All
13.4
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.SSLLibrary
Queries SSL library used.
All
13.4
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.SetDatabase
Sets the URI's database, after the URI has been parsed.
All
13.1
MongoDB.SetPassword
Sets user password for login.
All
12.3
MongoDB.SetSSLOptions
Sets the TLS (SSL) options to use when connecting to TLS enabled MongoDB servers.
All
13.4
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.TextToBinary
Converts a text to JSON for MongoDB.
All
13.2
MongoDB.Time
Create a new JSON value with given timestamp.
All
13.2
MongoDB.Trace
Enables or disables trace.
All
13.4
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
Creates a change stream for a client.
All
13.0
MongoDB.WatchCollection
Creates a change stream for a collection.
All
13.0
MongoDB.WatchDatabase
Creates a change stream for a database.
All
13.0

91 functions shown.

These functions require a license (87%).

Release notes

Blog Entries

Example Databases