Class FirestoreDatabase

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

debug: Debugger = ...
projectID: undefined | string = process.env.FCERT_PROJECT_ID

Methods

  • The getDB() method returns database instance and prevents user from accidentally access the production database.

    Returns Firestore

  • The initDB() abstract method will be called in the class constructor to initialise the database. This returns the database specified by generic T.

    Abstract

    Returns Firestore

Generated using TypeDoc