Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MFModel<M>

Type parameters

  • M

Hierarchy

Implements

Index

Properties

_collectionPath

_collectionPath: string = null

Collection path (without id)

_id

_id: string = null

Document Id

_snapshot

_snapshot: DocumentSnapshot = null

Document snapshot if asked in options

creationDate

creationDate: Date = null

Date of creation of the document

updateDate

updateDate: Date = null

Date of last update of the document

Methods

initialize

  • initialize(data: Partial<M>, mustachePath?: string, location?: Partial<IMFLocation>): void
  • initializes the instance of the model with the given data and location

    Parameters

    • data: Partial<M>

      the data to inject in the instance

    • Optional mustachePath: string

      the mustache path of the collection

    • Optional location: Partial<IMFLocation>

      document id and identifiers to set in mustache path

    Returns void

Generated using TypeDoc