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.
1 parent a61724b commit 5c3f75aCopy full SHA for 5c3f75a
lib/modules/database/snapshot.js
@@ -42,11 +42,14 @@ export default class Snapshot {
42
43
child(path: string) {
44
const value = deepGet(this.value, path);
45
+ const exportValue = deepGet(this.exportValue, path);
46
const childRef = this.ref.child(path);
47
return new Snapshot(childRef, {
48
value,
49
+ exportValue,
50
key: childRef.key,
51
exists: value !== null,
52
+ priority: (exportValue && Object.prototype.hasOwnProperty.call(exportValue, '.priority')) ? exportValue['.priority'] : undefined,
53
childKeys: isObject(value) ? Object.keys(value) : [],
54
});
55
}
0 commit comments