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 |
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.CollectionNames
- MongoDB.Connect
- MongoDB.DatabaseCommand
- MongoDB.Find
- MongoDB.FindCollections
- MongoDB.GetPassword
- MongoDB.GetUserName
- MongoDB.InsertOne
- MongoDB.ReplaceOne
- SSH.Tunnel.Run
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.
