RLMMongoClient
Objective-C
@interface RLMMongoClient : NSObject
Swift
class RLMMongoClient : NSObject
The RLMMongoClient
enables reading and writing on a MongoDB database via the Realm Cloud service.
It provides access to instances of RLMMongoDatabase
, which in turn provide access to specific
RLMMongoCollection
s that hold your data.
Note
Before you can read or write data, a user must log in.
See also
-
The name of the client
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull name;
Swift
var name: String { get }
-
Gets a
RLMMongoDatabase
instance for the given database name.Declaration
Objective-C
- (nonnull RLMMongoDatabase *)databaseWithName:(nonnull NSString *)name;
Swift
func database(named name: String) -> RLMMongoDatabase
Parameters
name
the name of the database to retrieve