Skip to content

Commit f7ea2f4

Browse files
committed
Add to readme
1 parent fbc797c commit f7ea2f4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/api/database.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ firestack.database()
2525
});
2626
```
2727

28+
Basic write with priority example:
29+
```javascript
30+
firestack.database()
31+
.ref('posts/1235')
32+
.setWithPriority({
33+
title: 'Another Awesome Post',
34+
content: 'Some awesome content',
35+
}, 10);
36+
```
37+
Useful for `orderByPriority` queries.
38+
2839
## Unmounted components
2940

3041
Listening to database updates on unmounted components will trigger a warning:

0 commit comments

Comments
 (0)