dyna-record
    Preparing search index...

    Interface DeleteOperationOptions<T>

    Options for DynaRecord.delete.

    // Delete an Order only while it is still pending
    const options: DeleteOperationOptions<Order> = {
    condition: { status: "pending" }
    };

    await Order.delete("order-1", options);
    interface DeleteOperationOptions<T extends default> {
        condition?: WriteCondition<T>;
    }

    Type Parameters

    • T extends default

      The entity being deleted.

    Index

    Properties

    Properties

    condition?: WriteCondition<T>

    A guard on the entity's own row and on its related rows, checked in the same transaction as the delete: the entity is deleted only if every part holds, and only if its own row still exists. See WriteCondition.