Events emitted after a collection is modified.

Type Parameters

Hierarchy (View Summary)

Accessors

  • get count(): number
  • The number of documents after the change

    Returns number

  • get docChanges(): DocumentChange<T_model>[]
  • All the changes, document by document

    Returns DocumentChange<T_model>[]

  • get documents(): DocumentData[]
  • All the firestore documents

    Returns DocumentData[]

  • get empty(): boolean
  • True if the collection is empty

    Returns boolean

  • get isInitial(): boolean
  • True if it's the first event emitted by the listener

    Returns boolean

  • get models(): T_model[]
  • All the models

    Returns T_model[]

  • get source(): "local" | "server"
  • Source of the document change

    Returns "local" | "server"