본문으로 건너뛰기

인터페이스: PendingMutation<T, TOperation, TCollection>

정의 위치: packages/db/src/types.ts:91

트랜잭션 내의 보류 중인 뮤테이션을 나타냅니다 원본 및 수정된 데이터와 메타데이터에 대한 정보를 포함합니다

타입 매개변수​

T​

T 확장 object = Record<string, unknown>

TOperation​

TOperation 확장 OperationType = OperationType

TCollection​

TCollection 확장 Collection<T, any, any, any, any> = Collection<T, any, any, any, any>

속성​

changes​

changes: ResolveTransactionChanges<T, TOperation>;

정의 위치: packages/db/src/types.ts:108


collection​

collection: TCollection;

정의 위치: packages/db/src/types.ts:119


createdAt​

createdAt: Date;

정의 위치: packages/db/src/types.ts:117


globalKey​

globalKey: string;

정의 위치: packages/db/src/types.ts:109


key​

key: any;

정의 위치: packages/db/src/types.ts:111


메타데이터​

metadata: unknown;

정의 위치: packages/db/src/types.ts:113


수정됨​

modified: T;

정의 위치: packages/db/src/types.ts:106


뮤테이션 ID​

mutationId: string;

정의 위치: packages/db/src/types.ts:102


낙관적​

optimistic: boolean;

정의 위치: packages/db/src/types.ts:116

이 뮤테이션을 낙관적으로 적용할지 여부입니다(기본값은 true).


원본​

original: TOperation extends "insert" ? object : T;

정의 위치: packages/db/src/types.ts:104


동기화 메타데이터​

syncMetadata: Record<string, unknown>;

정의 위치: packages/db/src/types.ts:114


type​

type: TOperation;

정의 위치: packages/db/src/types.ts:112


업데이트 시간​

updatedAt: Date;

정의 위치: packages/db/src/types.ts:118