Class GeneralKeyMaker<ModelType>

class: GeneralKeyMaker

  • use ':' as delimiter to join [ns, type, id]

Type Parameters

  • ModelType extends string

Hierarchy

Implements

Constructors

Properties

Methods

Constructors

Properties

DELIMITER: string
NS: string

Methods

  • get key object w/ internal partition-key (default as _id).

    Parameters

    • type: ModelType

      type of model

    • id: string

      id of model in type

    Returns { _id: string; id: string; ns: string; type: ModelType }

    • _id: string
    • id: string
    • ns: string
    • type: ModelType

Generated using TypeDoc