File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,8 @@ - (NSDictionary *) snapshotToDict:(FIRDataSnapshot *) snapshot
137
137
[dict setValue: snapshot.key forKey: @" key" ];
138
138
NSDictionary *val = snapshot.value ;
139
139
[dict setObject: val forKey: @" value" ];
140
+ NSDictionary *exportVal = snapshot.valueInExportFormat ;
141
+ [dict setObject: exportVal forKey: @" exportVal" ];
140
142
// Snapshot ordering
141
143
NSMutableArray *childKeys = [NSMutableArray array ];
142
144
if (snapshot.childrenCount > 0 ) {
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export default class Snapshot {
22
22
this . ref = ref ;
23
23
this . key = snapshot . key ;
24
24
this . value = snapshot . value ;
25
+ this . exportVal = snapshot . exportVal ;
25
26
this . exists = snapshot . exists || true ;
26
27
this . priority = snapshot . priority === undefined ? null : snapshot . priority ;
27
28
this . childKeys = snapshot . childKeys || [ ] ;
@@ -35,6 +36,10 @@ export default class Snapshot {
35
36
return this . value ;
36
37
}
37
38
39
+ exportVal ( ) {
40
+ return this . exportVal ;
41
+ }
42
+
38
43
child ( path : string ) {
39
44
const value = deepGet ( this . value , path ) ;
40
45
const childRef = this . ref . child ( path ) ;
You can’t perform that action at this time.
0 commit comments