Skip to content

Commit a6566f3

Browse files
committed
Fix doc.
1 parent 9a43e11 commit a6566f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/api/database.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ Test value exists at location:
2929
```javascript
3030
firestack.database()
3131
.ref('posts/1234')
32-
.exists();
32+
.on('value', (snapshot) => {
33+
const exists = snapshot.exists();
34+
});
3335
```
3436

3537

0 commit comments

Comments
 (0)