Docs Menu
Docs Home
/ /
Atlas Device SDKs
/ / /

Class MongoClient

On this page

  • io.realm.mongodb.mongo
  • Method Summary
  • Inherited Methods
  • Method Detail
  • getDatabase
  • getServiceName
io.realm.mongodb.mongo.MongoClient

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

Modifier and Type
Method and Description
public MongoDatabase
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.

Back

io.realm.mongodb.mongo

Next

MongoCollection