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-17 UTC."],[[["The `DocumentChange` class represents a change to documents matching a query, including the type of change (added, modified, or removed)."],["This class is available in multiple versions, with version 3.10.0 being the latest and 3.9.0, as shown, being the current version in view, in the provided list of versions."],["Key properties of `DocumentChange` include `ChangeType`, `Document`, `NewIndex`, and `OldIndex`, which provide details about the change, the affected document, and the document's position in the result set, respectively."],["`DocumentChange` implements the `IEquatable\u003cDocumentChange\u003e` interface and inherits members like `GetType()` and `ToString()` from the base `object` class."],["The class provides a GetHashCode() method, which is overriden from the object base class, to use on instances of this class."]]],[]]