public sealed class DocumentChange : IEquatable<DocumentChange>
Reference documentation and code samples for the Firestore API class DocumentChange.
A DocumentChange represents a change to the documents matching a query. It contains the document
affected and a the type of change that occurred (added, modifed, or removed).
The index of the changed document in the result set immediately after this DocumentChange
(i.e. supposing that all prior DocumentChange objects and this one have been applied),
null if the change type is Removed. The index will never be negative.
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), or null
if the change type is Added. The index will never be negative.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-01 UTC."],[[["This document outlines the `DocumentChange` class within the Google Cloud Firestore API, detailing its role in representing changes to documents that match a specific query."],["The `DocumentChange` class provides information on the document affected and the type of change observed, which can be either added, modified, or removed."],["It implements `IEquatable`, allowing for comparison between `DocumentChange` objects, and inherits members such as `GetType()` and `ToString()` from the `object` class."],["Key properties of `DocumentChange` include `ChangeType` (the nature of the change), `Document` (the document involved), `NewIndex` (the document's index after the change), and `OldIndex` (the document's index before the change)."],["The document change class has versions ranging from 2.3.1 up to the latest version of 3.10.0."]]],[]]