Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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
- MongoDB.Find
- MongoDB.FindCollections
- MongoDB.GetOptions
- MongoDB.GetURI
- MongoDB.GetUserName
- MongoDB.InsertOne
- MongoDB.ReplaceOne
- MongoDB.SetAuthMechanism
- MongoDB.SetSSLOptions
- SSH.Tunnel.Run
Release notes
- Version 12.4
- Added MongoDB.CursorErrorDocument and MongoDB.NewCursorFromCommandReply functions.
Example Databases
Blog Entries
This function checks for a license.
Created 22nd May 2022, last changed 20th June 2022