js-bao-wss-client / SyncMetadataOptions
Interface: SyncMetadataOptions
Options for client.syncMetadata(). Controls whether the sync covers all of the user's document metadata or a single document (scope / documentId), whether errors are swallowed (background), whether the server response replaces the local index (authoritative), and which locally-known documents are retained (retainIds / shouldRetain).
Properties
authoritative?
optionalauthoritative?:boolean
background?
optionalbackground?:boolean
documentId?
optionaldocumentId?:string
forward?
optionalforward?:boolean
includeRoot?
optionalincludeRoot?:boolean
pageSize?
optionalpageSize?:number
payload?
optionalpayload?:any
payloadType?
optionalpayloadType?:"full"|"ids"
retainIds?
optionalretainIds?:Iterable<string,any,any>
scope?
optionalscope?:"all"|"single"
shouldRetain?
optionalshouldRetain?: (documentId) =>boolean
Parameters
documentId
string
Returns
boolean