File: SyncOperation.md | Updated: 11/15/2025
Search...
+ K
Auto
Docs Examples GitHub Contributors
Docs Examples GitHub Contributors
Docs Examples GitHub Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Maintainers Partners Support Learn StatsBETA Discord Merch Blog GitHub Ethos Brand Guide
Documentation
Framework
React
Version
Latest
Search...
+ K
Menu
Getting Started
Guides
Collections
Frameworks
Community
API Reference
Framework
React
Version
Latest
Menu
Getting Started
Guides
Collections
Frameworks
Community
API Reference
On this page
Copy Markdown
ts
type SyncOperation<TRow, TKey, TInsertInput> =
| {
data: TInsertInput | TInsertInput[];
type: "insert";
}
| {
data: Partial<TRow> | Partial<TRow>[];
type: "update";
}
| {
key: TKey | TKey[];
type: "delete";
}
| {
data: Partial<TRow> | Partial<TRow>[];
type: "upsert";
};
type SyncOperation<TRow, TKey, TInsertInput> =
| {
data: TInsertInput | TInsertInput[];
type: "insert";
}
| {
data: Partial<TRow> | Partial<TRow>[];
type: "update";
}
| {
key: TKey | TKey[];
type: "delete";
}
| {
data: Partial<TRow> | Partial<TRow>[];
type: "upsert";
};
Defined in: packages/query-db-collection/src/manual-sync.ts:20
Type Parameters
---------------
### TRow
TRow extends object
TKey extends string | number = string | number
TInsertInput extends object = TRow
