Function: readRemoteSchemaVersion()
function readRemoteSchemaVersion(remote): Promise<string>;
Defined in: packages/client/src/core/sync/index.ts:214
Reads the schema version a remote was last written with.
Prefers DocStack's own marker and falls back to a ~system document, which is only
present when the remote is itself a DocStack stack replicated wholesale.
Parameters
| Parameter | Type | Description |
|---|---|---|
remote | Database | The remote database. |
Returns
Promise<string>
The recorded version, or null for a remote nobody has written yet.