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.
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.
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.
Signature:
readonlynewIndex:number;
DocumentChange.oldIndex
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.
Signature:
readonlyoldIndex:number;
DocumentChange.type
The type of change ('added', 'modified', or 'removed').
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-07-07 UTC."],[],[],null,["A `DocumentChange` represents a change to the documents matching a query. It contains the document affected and the type of change that occurred.\n\n**Signature:** \n\n export declare interface DocumentChange\u003cAppModelType = DocumentData, DbModelType extends DocumentData = DocumentData\u003e \n\nProperties\n\nDocumentChange.doc\n\nThe document affected by this change.\n\n**Signature:** \n\n readonly doc: QueryDocumentSnapshot\u003cAppModelType, DbModelType\u003e;\n\nDocumentChange.newIndex\n\nThe 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.\n\n**Signature:** \n\n readonly newIndex: number;\n\nDocumentChange.oldIndex\n\nThe 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.\n\n**Signature:** \n\n readonly oldIndex: number;\n\nDocumentChange.type\n\nThe type of change ('added', 'modified', or 'removed').\n\n**Signature:** \n\n readonly type: DocumentChangeType;"]]