Home > git-documentdb > GitDocumentDB > sync
#
GitDocumentDB.sync() methodSynchronize with a remote repository
Signature:#
ParametersParameter | Type | Description |
---|---|---|
options | RemoteOptions | |
getSyncResult | boolean |
Promise<[Sync , SyncResult ]>
#
RemarksRegister and synchronize with a remote repository. Do not register the same remote repository again. Call unregisterRemote() before register it again.
#
ExceptionsErr.RemoteAlreadyRegisteredError
Errors from constructor of Sync class.
Errors from Sync.init()