schemaVersion property

int schemaVersion
final

The schema version for this Realm. This has to be a valid schema version on the server and the schema supplied in schemaObjects should match the one on the server.

Note that unlike with LocalConfiguration, changing the schema version will not execute any migrations locally as the data is migrated on the server.

When changing the schema version, the Realm must be opened asynchronously - i.e. using Realm.open as migrating the data will require that first all the local changes are uploaded, and then, that a client reset is performed. When changing the schema version all subscriptions will be reset since they may not conform to the new schema.

Implementation

final int schemaVersion;