Skip to content

Commit 485f6bb

Browse files
authored
set: change example snip from af.database to db
Inline with new api
1 parent d5351b5 commit 485f6bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/3-retrieving-data-as-lists.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ items.push({ name: newName });
125125
Use the `set()` method to update existing items.
126126

127127
```ts
128-
const items = af.database.list('/items');
128+
const items = db.list('/items');
129129
// to get a key, check the Example app below
130130
items.set('key-of-some-data', { size: newSize });
131131
```

0 commit comments

Comments
 (0)