chore(docs): Generated References (automated) (#9419)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
This commit is contained in:
co-authored by
kodiakhq
parent
e73e95f5e9
commit
34eebb61eb
@@ -14,7 +14,7 @@ A search service must extend the `AbstractSearchService` class imported from the
|
||||
installed, run the following command to install it within your project:
|
||||
|
||||
```bash npm2yarn
|
||||
npm install @medusajs/framework/utils
|
||||
npm install @medusajs/utils
|
||||
```
|
||||
|
||||
---
|
||||
@@ -22,7 +22,7 @@ npm install @medusajs/framework/utils
|
||||
## Overview
|
||||
|
||||
A search service class is in a TypeScript or JavaScript file created in the `src/services` directory. The class must extend the `AbstractSearchService` class imported
|
||||
from the `@medusajs/framework/utils` package.
|
||||
from the `@medusajs/utils` package.
|
||||
|
||||
Based on services’ naming conventions, the file’s name should be the slug version of the search service’s name without `service`, and the class’s name should be the
|
||||
pascal case of the search service’s name following by `Service`.
|
||||
@@ -30,7 +30,7 @@ pascal case of the search service’s name following by `Service`.
|
||||
For example, create the `MySearchService` class in the file `src/services/my-search.ts`:
|
||||
|
||||
```ts title="src/services/my-search.ts"
|
||||
import { AbstractSearchService } from "@medusajs/framework/utils"
|
||||
import { AbstractSearchService } from "@medusajs/utils"
|
||||
|
||||
class MySearchService extends AbstractSearchService {
|
||||
isDefault = false
|
||||
|
||||
Reference in New Issue
Block a user