Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeleteOperation<T>

This operation deletes an object from the database.

Usage

See Datastore.delete.

Type parameters

  • T: Model<T>

    The model of the Datastore. T must extend from Model.

Hierarchy

  • DeleteOperation

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private _id

_id: string

Identifier of an object to delete.

Private _store

_store: Datastore<T>

The datastore where the operation takes place.

Methods

delete

  • delete(): Promise<void>

id

  • id(id: string): this

item

  • item(item: T): this

run

  • run(): Promise<void>

Generated using TypeDoc