Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PushOperation<T>

This operation pushes an object to the database.

Usage

See Datastore.push.

Type parameters

  • T: Model<T>

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

Hierarchy

  • PushOperation

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private _store

_store: Datastore<T>

The datastore where the operation takes place.

Private _toAdd

_toAdd: T

Object to push.

Methods

item

  • item(value: T): this
  • Sets the item to push into the database.

    Parameters

    • value: T

      An item to push.

    Returns this

    Returns this operation again, to make chaining methods possible.

push

  • push(): Promise<T>

run

  • run(): Promise<T>

Generated using TypeDoc