Skip to content

Interface: PullResponse

Defined in: core/src/protocol/sync.ts:95

The server’s reply to a pull.

  • cookie is the new opaque position the client should send next time. null means “there is nothing to sync from”; a string is the new max row-version consumed.
  • patch is the batch of row-level changes visible to this client since its previous cookie, in server-authoritative order.
  • lastMutationIDs lets the client drop pending optimistic mutations that have been confirmed by the server. Keyed by clientID.

readonly cookie: SyncCookie

Defined in: core/src/protocol/sync.ts:96


readonly patch: readonly ChangeOp[]

Defined in: core/src/protocol/sync.ts:97


readonly lastMutationIDs: Readonly<Record<string, number>>

Defined in: core/src/protocol/sync.ts:98


readonly optional hasMore?: 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.