跳到主要内容

PullRepositoryOptions

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

Pull repository options

Properties

conflictResolver?

optional conflictResolver?: ConflictResolver;

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

Conflict resolver used during repository-level pull.

The runtime currently supports automatic KEEP_LOCAL and KEEP_REMOTE resolutions. MERGE and DEFER are surfaced as pending work.


fetchAll?

optional fetchAll?: boolean;

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

Whether to fetch all changes in multiple requests

Default

false

includeRelated?

optional includeRelated?: boolean;

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

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:361

Maximum number of changes to fetch per request

Default

1000