Home > @firebase/firestore > / > QuerySnapshot > docChanges
QuerySnapshot.docChanges() method
Returns an array of the documents changes since the last snapshot. If this is the first snapshot, all documents will be in the list as 'added' changes.
Signature:
docChanges(options?: SnapshotListenOptions): Array<DocumentChange<T>>;
Parameters
Parameter | Type | Description |
---|---|---|
options | SnapshotListenOptions | SnapshotListenOptions that control whether metadata-only changes (i.e. only DocumentSnapshot.metadata changed) should trigger snapshot events. |
Returns:
Array<DocumentChange<T>>