Skip to content

Commit a61724b

Browse files
committed
Add to readme
1 parent 9d058e6 commit a61724b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/api/database.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ firestack.database()
1515
});
1616
```
1717

18+
Read for export:
19+
```javascript
20+
firestack.database()
21+
.ref('posts')
22+
.on('value', (snapshot) => {
23+
const value = snapshot.exportVal();
24+
});
25+
```
26+
This includes hidden properties like `.priority`
27+
1828
Basic write example:
1929
```javascript
2030
firestack.database()

0 commit comments

Comments
 (0)