Interface: PullResponse
Interface: PullResponse
Section titled “Interface: PullResponse”Defined in: core/src/protocol/sync.ts:95
The server’s reply to a pull.
cookieis the new opaque position the client should send next time.nullmeans “there is nothing to sync from”; a string is the new max row-version consumed.patchis the batch of row-level changes visible to this client since its previous cookie, in server-authoritative order.lastMutationIDslets the client drop pending optimistic mutations that have been confirmed by the server. Keyed byclientID.
Properties
Section titled “Properties”cookie
Section titled “cookie”
readonlycookie:SyncCookie
Defined in: core/src/protocol/sync.ts:96
readonlypatch: readonlyChangeOp[]
Defined in: core/src/protocol/sync.ts:97
lastMutationIDs
Section titled “lastMutationIDs”
readonlylastMutationIDs:Readonly<Record<string,number>>
Defined in: core/src/protocol/sync.ts:98
hasMore?
Section titled “hasMore?”
readonlyoptionalhasMore?:boolean
Defined in: core/src/protocol/sync.ts:105
True when the server truncated the patch to a page size limit
(usually via ?limit= on the pull URL). Clients should immediately
follow up with another pull carrying the returned cookie to collect
the remaining rows.