This is an automated email from the ASF dual-hosted git repository.
ronny pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb-nano.git
The following commit(s) were added to refs/heads/main by this push:
new 47a2bc1 fix typo
new d1b3c4f Merge pull request #302 from revington/fix-typo
47a2bc1 is described below
commit 47a2bc15fec0b8611b3681f25690f4f0444f1386
Author: Pedro Narciso GarcĂa Revington <[email protected]>
AuthorDate: Fri Aug 5 17:52:55 2022 +0200
fix typo
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index db31c97..e019a5e 100644
--- a/README.md
+++ b/README.md
@@ -519,7 +519,7 @@ The `insert` function can also be used with the method
signature `db.insert(doc,
```js
const alice = nano.use('alice')
-const response alice.insert({ _id: 'myid', happy: true })
+const response = await alice.insert({ _id: 'myid', happy: true })
```
and also used to update an existing document, by including the `_rev` token in
the document being saved: