voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
14 lines (8 loc) • 633 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/firestore](./firestore.md) > [/](./firestore_.md) > [DocumentChange](./firestore_.documentchange.md) > [newIndex](./firestore_.documentchange.newindex.md)
## DocumentChange.newIndex property
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.
<b>Signature:</b>
```typescript
readonly newIndex: number;
```