MockDBCalltype
{
readonly type:
| "getItem"
| "addItem"
| "setItem"
| "updateItem"
| "deleteItem"
| "countQuery"
| "getQuery"
| "setQuery"
| "updateQuery"
| "deleteQuery";
readonly collection: string;
readonly id?: Identifier | undefined;
readonly query?: unknown;
readonly data?: Data;
readonly updates?: unknown;
readonly result?: unknown;
}| Property | Type | |
|---|---|---|
.type | | "getItem"
| "addItem"
| "setItem"
| "updateItem"
| "deleteItem"
| "countQuery"
| "getQuery"
| "setQuery"
| "updateQuery"
| "deleteQuery" | required readonly |
.collection | string | required readonly |
.id | Identifier | Allowed types for the "id" property (identifier) for an item. readonly |
.query | unknown | readonly |
.data | Data | Data object — a plain object with string keys and unknown values. readonly |
.updates | unknown | readonly |
.result | unknown | readonly |
| Type | |
|---|---|
Identifier | Allowed types for the "id" property (identifier) for an item. |
Data | Data object — a plain object with string keys and unknown values. |
Structured log entry recording one operation performed through a MockDBProvider.
typeis the operation name;collectionis the collection name;id,query,data,updates, andresultcarry whichever fields apply to that operation.