跳到主要内容

PushRepositoryOptions

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

Push repository options

Properties

batchSize?

optional batchSize: number;

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

Maximum number of changes to push per batch

Default

1000

includeRelated?

optional includeRelated: boolean;

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

Whether to include related entities (cascade sync)

When true:

  • Automatically pushes all child entities (entities referencing current entity)
  • Follows reverse topological order: child -> parent
  • Example: Pushing User automatically pushes Post

When false:

  • Only syncs the specified repository
  • May cause incomplete remote data

Default

true