We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b395e26 + 0ad1159 commit 7de26d3Copy full SHA for 7de26d3
docs/api/database.md
@@ -25,6 +25,15 @@ firestack.database()
25
});
26
```
27
28
+Test value exists at location:
29
+```javascript
30
+firestack.database()
31
+ .ref('posts/1234')
32
+ .on('value', (snapshot) => {
33
+ const exists = snapshot.exists();
34
+ });
35
+```
36
+
37
Basic write with priority example:
38
```javascript
39
firestack.database()
lib/modules/database/snapshot.js
@@ -22,7 +22,6 @@ export default class Snapshot {
22
this.ref = ref;
23
this.key = snapshot.key;
24
this.value = snapshot.value;
- this.exists = snapshot.exists || true;
this.priority = snapshot.priority === undefined ? null : snapshot.priority;
this.childKeys = snapshot.childKeys || [];
}
0 commit comments