Skip to main content

Function: publishSchemaVersion()

function publishSchemaVersion(
remote,
schemaVersion,
appVersion?,
consumerSchemaVersion?): Promise<void>;

Defined in: packages/client/src/core/sync/index.ts:249

Records this device's schema version on a remote, if it is the newest seen.

Parameters

ParameterTypeDescription
remoteDatabaseThe remote database.
schemaVersionstringThe local schema version; a missing value writes nothing.
appVersion?stringThe local application version, stored for diagnostics.
consumerSchemaVersion?string-

Returns

Promise<void>