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: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

MongoDB.New

Creates a new MongoDB object.

Component Version macOS Windows Linux Server iOS SDK
MongoDB 12.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "MongoDB.New" )

Parameters

none

Result

Returns reference number or error.

Description

Creates a new MongoDB object.
For our plugin a Mongo DB object holds an URI, a client (the connection), a database, a collection (the table) and a cursor (the record set) all as one reference in FileMaker.

Examples

Create new MongoDB object:

Set Variable [ $Mongo ; Value: MBS( "MongoDB.New" ) ]
If [ MBS("IsError") ]
    Show Custom Dialog [ "Failed to create new MongoDB o…" ; $Mongo ]
    Exit Script [ Text Result: ]
End If

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 22nd May 2022, last changed 20th June 2022


MongoDB.MaxMessageSize - MongoDB.NewCursorFromCommandReply

💬 Ask a question or report a problem