aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/API/FIRDocumentSnapshot.m
diff options
context:
space:
mode:
authorGravatar Sebastian Schmidt <mrschmidt@google.com>2017-12-15 05:35:23 +0800
committerGravatar GitHub <noreply@github.com>2017-12-15 05:35:23 +0800
commit98e08bc0b883d24cf2a0e658924ddd14dbf07d65 (patch)
tree00284647e4d0fd02c645d62e48a5b73b618dc934 /Firestore/Source/API/FIRDocumentSnapshot.m
parent8f85bd199d2e3060605d2cede6409cedd7538cf5 (diff)
parent08bd327bbfd352ecac783528300c55f1d738e4ae (diff)
Merge pull request #565 from firebase/mrschmidt-missingmethods
Adding missing SnapshotOptions method
Diffstat (limited to 'Firestore/Source/API/FIRDocumentSnapshot.m')
-rw-r--r--Firestore/Source/API/FIRDocumentSnapshot.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Firestore/Source/API/FIRDocumentSnapshot.m b/Firestore/Source/API/FIRDocumentSnapshot.m
index 36430ac..65c7b61 100644
--- a/Firestore/Source/API/FIRDocumentSnapshot.m
+++ b/Firestore/Source/API/FIRDocumentSnapshot.m
@@ -213,6 +213,12 @@ NS_ASSUME_NONNULL_BEGIN
return data;
}
+- (NSDictionary<NSString *, id> *)dataWithOptions:(FIRSnapshotOptions *)options {
+ NSDictionary<NSString *, id> *data = [super dataWithOptions:options];
+ FSTAssert(data, @"Document in a QueryDocumentSnapshot should exist");
+ return data;
+}
+
@end
NS_ASSUME_NONNULL_END