Realm~MongoDB

The MongoDB service can be used to get database and collection objects for interacting with MongoDB data.

serviceName

Get the service name.

db(databaseName)MongoDBDatabase

Get the interface to a remote MongoDB database.

Parameters:
  • databaseName
    • Type: string
    • The name of the database.

Returns: MongoDBDatabase The remote MongoDB database.