You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1051: Add an API to get raw index data r=bidoubiwa a=artfuldev
Fixes#1041
Contributes to #1046
This PR adds a new shortcut API is added to get the raw index information (the raw JSON response from Meilisearch).
I've made the following assumptions:
1. We can use similar comments/language as in `getIndex<T = any>(indexUid: string): Promise<Index<T>>`.
2. Tests need to be added.
3. Tests can be added as a separate commit.
4. We need individual tests to guarantee behavior - I mean, we need to provide tests of the `getRawIndex` API as opposed to adding a single test where we just validate that `index(indexUid).getRawInfo()` is called within `getRawIndex`.
5. We need to add a separate test for `getRawIndex route`.
6. We don't need to update references of `client.index(indexUid).getRawInfo()` to `client.getRawIndex(indexUid)` in existing/prior test cases even if it can be an improvement.
Please let me know if any of my assumptions are wrong so I can rework my PR.
I've run the `test`, `style:fix`, and `build` scripts locally to verify everything works.
Please let me know anything else that needs to be changed.
Co-authored-by: Sudarsan Balaji <[email protected]>
0 commit comments