Docs Menu

Class MongoClient

io.realm.mongodb.mongo.MongoClient

The remote MongoClient used for working with data in MongoDB remotely via Realm.

Modifier and Type
Method and Description
String databaseName
)

Gets a MongoDatabase instance for the given database name.

public String

Returns the service name for this client.

  • Methods inherited from class java.lang.Object : getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize

String databaseName
)

Gets a MongoDatabase instance for the given database name.

Parameters

  • databaseName - the name of the database to retrieve

Returns

a RemoteMongoDatabase representing the specified database

Returns the service name for this client.

Returns

the service name.