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;
}
PropertyType
.type| "getItem" | "addItem" | "setItem" | "updateItem" | "deleteItem" | "countQuery" | "getQuery" | "setQuery" | "updateQuery" | "deleteQuery"
required readonly
.collectionstring
required readonly
.idIdentifier
Allowed types for the "id" property (identifier) for an item. readonly
.queryunknown
readonly
.dataData
Data object — a plain object with string keys and unknown values. readonly
.updatesunknown
readonly
.resultunknown
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.

  • type is the operation name; collection is the collection name; id, query, data, updates, and result carry whichever fields apply to that operation.