Hierarchy

  • LiveService

Constructors

  • Creates an instance of LiveService.

    Memberof

    LiveService

    Parameters

    • Optional app: FirebaseApp

      instance of firebase app

    Returns LiveService

Properties

collectionName?: string
collectionRef?: CollectionReference<DocumentData, DocumentData>
db: Firestore

Methods

  • This method used to keep the instance of the collection.

    Parameters

    • collectionName: string

      string

    Returns LiveService

  • This method used to fetch the querySnapshot of live Data from the collection

    Returns

    An unsubscribe function that can be called to cancel the snapshot listener.

    Parameters

    • callback: any

      callback function

    • Optional queryConstraints: QueryConstraint[]

      where clause

    Returns Promise<unknown> | Unsubscribe

  • An unsubscribe function that can be called to cancel the snapshot listener.

    Parameters

    • Optional callback: any

      optional

    Returns void

Generated using TypeDoc