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.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2   12.3   12.4    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

  • Version 12.4
    • Added MongoDB.CursorErrorDocument and MongoDB.NewCursorFromCommandReply functions.

Example Databases

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


MongoDB.MaxMessageSize - MongoDB.NewCursorFromCommandReply

Feedback: Report problem or ask question.


Start Chat