Type Alias: Operation<T>

typescript
1
Operation<T> = object

Defined in: ridb_core.d.ts:236

Represents an operation to be performed on a collection.

Type Parameters

T

T extends SchemaType = SchemaType

The schema type of the collection.

Properties

collection

typescript
1
collection: string

Defined in: ridb_core.d.ts:240

The name of the collection on which the operation will be performed.


data

typescript
1
data: Doc<T>

Defined in: ridb_core.d.ts:250

The data involved in the operation, conforming to the schema type.


opType

typescript
1
opType: OpType

Defined in: ridb_core.d.ts:245

The type of operation to be performed (e.g., CREATE, UPDATE, DELETE).


primaryKey?

typescript
1
optional primaryKey: string

Defined in: ridb_core.d.ts:253


primaryKeyField?

typescript
1
optional primaryKeyField: string

Defined in: ridb_core.d.ts:252