-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getOrCreate, Error Handler and CreateIndex Usage changes #436
Conversation
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 27.0.2 to 27.0.4. - [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases) - [Commits](gajus/eslint-plugin-jsdoc@v27.0.2...v27.0.4) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 27.0.2 to 27.0.4. - [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases) - [Commits](gajus/eslint-plugin-jsdoc@v27.0.2...v27.0.4) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
…rch-js into get_or_create_index
What is the default error?
I wait for the Samuel answer in this issue before reviewing. |
Since we do not check anything in the SDK for the moment I did not add this error. For any native error as: |
Ok, but what is |
|
@bidoubiwa, according to this comment:
|
Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com>
…rch-js into get_or_create_index
Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com>
In this PR
CreateIndex Usage changes
Previously
New usage:
Example
Error Handler
meiliSearchCommunicationError
when a problem occurred when trying to communicate with MeiliSearch.Refactor
custom-errors
toerrors
meilisearchError
tomeilisearchApiError
NEW: AddOrCreateIndex
If
movies
does not exist it will be created in MeiliSearch and will return an index instance.If it already exists, it returns an index instance.