Properties

doc

non-null firebase.firestore.QueryDocumentSnapshot

The document affected by this change.

newIndex

number

The index of the changed document in the result set immediately after this DocumentChange (i.e. supposing that all prior DocumentChange objects and the current DocumentChange object have been applied). Is -1 for 'removed' events.

oldIndex

number

The index of the changed document in the result set immediately prior to this DocumentChange (i.e. supposing that all prior DocumentChange objects have been applied). Is -1 for 'added' events.

type

string

The type of change that occurred.

Possible values are 'added', 'modified', or 'removed'.