SyncConfiguration
@frozen
public struct SyncConfiguration
A SyncConfiguration
represents configuration parameters for Realms intended to sync with
MongoDB Realm.
-
The
SyncUser
who owns the Realm that this configuration should open.Declaration
Swift
public let user: User
-
The value this Realm is partitioned on. The partition key is a property defined in MongoDB Realm. All classes with a property with this value will be synchronized to the Realm.
Declaration
Swift
public let partitionValue: AnyBSON?
-
By default, Realm.asyncOpen() swallows non-fatal connection errors such as a connection attempt timing out and simply retries until it succeeds. If this is set to
true
, instead the error will be reported to the callback and the async open will be cancelled.Declaration
Swift
public let cancelAsyncOpenOnNonFatalErrors: Bool