Skip to content

Commit 47a2bc1

Browse files
committedAug 5, 2022
fix typo
1 parent 6f1a750 commit 47a2bc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ The `insert` function can also be used with the method signature `db.insert(doc,
519519

520520
```js
521521
const alice = nano.use('alice')
522-
const response alice.insert({ _id: 'myid', happy: true })
522+
const response = await alice.insert({ _id: 'myid', happy: true })
523523
```
524524

525525
and also used to update an existing document, by including the `_rev` token in the document being saved:

0 commit comments

Comments
 (0)
Please sign in to comment.