UNPKG

voluptasmollitia

Version:
25 lines (14 loc) 1.03 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [QuerySnapshot](./firestore_.querysnapshot.md) &gt; [docChanges](./firestore_.querysnapshot.docchanges.md) ## 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. <b>Signature:</b> ```typescript docChanges(options?: SnapshotListenOptions): Array<DocumentChange<T>>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | options | [SnapshotListenOptions](./firestore_.snapshotlistenoptions.md) | <code>SnapshotListenOptions</code> that control whether metadata-only changes (i.e. only <code>DocumentSnapshot.metadata</code> changed) should trigger snapshot events. | <b>Returns:</b> Array&lt;[DocumentChange](./firestore_.documentchange.md)<!-- -->&lt;T&gt;&gt;