We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
firestore()
1 parent 3bdca42 commit 2ea2e4dCopy full SHA for 2ea2e4d
Firestore/core/src/firebase/firestore/api/document_change.h
@@ -17,6 +17,7 @@
17
#ifndef FIRESTORE_CORE_SRC_FIREBASE_FIRESTORE_API_DOCUMENT_CHANGE_H_
18
#define FIRESTORE_CORE_SRC_FIREBASE_FIRESTORE_API_DOCUMENT_CHANGE_H_
19
20
+#include <memory>
21
#include <utility>
22
23
#include "Firestore/core/src/firebase/firestore/api/document_snapshot.h"
@@ -58,6 +59,10 @@ class DocumentChange {
58
59
return new_index_;
60
}
61
62
+ const std::shared_ptr<Firestore>& firestore() const {
63
+ return document_.firestore();
64
+ }
65
+
66
/**
67
* A sentinel return value for old_index() and new_index() indicating that
68
* there's no relevant index to return because the document was newly added
0 commit comments