Type Alias: Operation<T>

typescript
1
Operation<T> = object

Defined in: ridb_core.d.ts:655

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:659

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


data

typescript
1
data: Doc<T>

Defined in: ridb_core.d.ts:669

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


opType

typescript
1
opType: OpType

Defined in: ridb_core.d.ts:664

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


primaryKey?

typescript
1
optional primaryKey: string

Defined in: ridb_core.d.ts:672


primaryKeyField?

typescript
1
optional primaryKeyField: string

Defined in: ridb_core.d.ts:671