Skip to content

Commit 7950449

Browse files
Merge #1485
1485: client.stats() isn't a function in the latest release, it seems `client.getStats()` is the correct function. r=bidoubiwa a=smultar `client.stats()` isn't a function according to the latest version of `meilisearch-js`, so I went ahead and corrected the documentation for [here](https://www.meilisearch.com/docs/reference/api/stats#stats-object). As `client.getStats()` is correct function that should be displayed. ## What does this PR do? Corrects documentation's recommended function, as that function doesn't exist within the new release, its `getStats()` vs the incorrect function that is `stats()` Co-authored-by: Smultar <[email protected]>
2 parents 42286f8 + afd19f0 commit 7950449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.code-samples.meilisearch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ reset_typo_tolerance_1: |-
265265
get_index_stats_1: |-
266266
client.index('movies').getStats()
267267
get_indexes_stats_1: |-
268-
client.stats()
268+
client.getStats()
269269
get_health_1: |-
270270
client.health()
271271
get_version_1: |-

0 commit comments

Comments
 (0)