Skip to content

Commit 9c91817

Browse files
authored
Merge pull request #270 from meilisearch/readme-fix
Fixed old function naming to new one in readme
2 parents b43e773 + e1b6c44 commit 9c91817

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const documents = [
7171
{ book_id: 42, title: "The Hitchhiker's Guide to the Galaxy" },
7272
]
7373

74-
await index.addOrReplaceDocuments(documents) // { "updateId": 0 }
74+
await index.addDocuments(documents) // { "updateId": 0 }
7575
```
7676

7777
With the `updateId`, you can check the status (`processed` or `failed`) of your documents addition thanks to this [method](#update-status).
@@ -145,7 +145,7 @@ let myDocuments = await index.getDocuments({ offset: 4, limit: 20 })
145145
#### Add documents <!-- omit in toc -->
146146

147147
```javascript
148-
index.addOrReplaceDocuments([{ book_id: 2, title: 'Madame Bovary' }])
148+
index.addDocuments([{ book_id: 2, title: 'Madame Bovary' }])
149149
```
150150

151151
Response:

0 commit comments

Comments
 (0)