@jiway/firestorm-core - v1.1.1
    Preparing search index...

    Class Firestorm

    This class is the hub that enables you to connect to queries

    Index

    Constructors

    • Create an instance of Firestorm.

      It doesn't instantly connect. You have to make a call to connect for that

      Parameters

      • Optionalname: string

        Name of the instance

      Returns Firestorm

    Properties

    name: string = ""

    Name of the app

    Accessors

    • get firebaseApp(): FirebaseApp | null

      The underlying firebase app

      Returns FirebaseApp | null

    • get firebaseAuth(): Auth

      The instance of auth

      Returns Auth

    • get firebaseStorage(): FirebaseStorage

      The instance of storage

      Returns FirebaseStorage

    • get firestore(): Firestore

      The instance of firestorm

      Returns Firestore

    • get isConnected(): boolean

      True if this instance if connected to a firestore

      Returns boolean

    • get options(): FirebaseOptions | null

      Gets the (read-only) options of this firestorm instance.

      Returns FirebaseOptions | null

    Methods

    • Connect to the DB.

      If an app with the same name already exists, it will use that. Otherwise it will create a new instance using the options.

      Parameters

      • Optionaloptions: FirebaseOptions

        Options to create the app

      Returns void

      if no previous app of the same name and no options provided

    • Call this after connecting to use the emulator instead of the database.

      Parameters

      Returns void