Class HttpStorageService<T>

class: HttpStorageService

Type Parameters

Hierarchy

  • HttpStorageService

Implements

Constructors

Properties

endpoint: string
idName: string

Methods

  • increment number attribute (or overwrite string field)

    • NOTE! increments only number type.

    Parameters

    • id: string

      unique-id

    • $inc: T

      data (ONLY number is supportable)

    • Optional $upt: T

      (optional) update-set.

    Returns Promise<T>

  • update some attributes of model

    • NOTE! it will create if not exist.

    Parameters

    • id: string

      unique-id

    • item: T

      data

    • Optional $inc: T

      (optional) incrementals like count = count + 1

    Returns Promise<T>

Generated using TypeDoc