跳到主要内容

PullRepositoryOptions

Defined in: packages/rxdb/src/version/VersionManager.interface.ts:346

Pull repository options

Properties

fetchAll?

optional fetchAll: boolean;

Defined in: packages/rxdb/src/version/VersionManager.interface.ts:357

Whether to fetch all changes in multiple requests

Default

false

includeRelated?

optional includeRelated: boolean;

Defined in: packages/rxdb/src/version/VersionManager.interface.ts:373

Whether to include related entities (cascade sync)

When true:

  • Automatically pulls all parent entities (foreign key references)
  • Follows topological order: parent -> child
  • Example: Pulling Post automatically pulls User

When false:

  • Only syncs the specified repository
  • May cause foreign key constraint errors if parent entities not synced

Default

true

limit?

optional limit: number;

Defined in: packages/rxdb/src/version/VersionManager.interface.ts:351

Maximum number of changes to fetch per request

Default

1000