Skip to content

Commit f77fb54

Browse files
meili-botbidoubiwa
authored andcommitted
Update .code-samples.meilisearch.yaml
1 parent 5dbd9ce commit f77fb54

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.code-samples.meilisearch.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,10 @@ getting_started_add_documents_md: |-
439439
440440
**Use**
441441
```js
442-
const client = new MeiliSearch({ host: 'http://localhost:7700' })
442+
const client = new MeiliSearch({
443+
host: 'http://localhost:7700',
444+
apiKey: 'aSampleMasterKey'
445+
})
443446
client.index('movies').addDocuments(movies)
444447
.then((res) => console.log(res))
445448
```

0 commit comments

Comments
 (0)