Functions
findByCategoryId
- findByCategoryId(categoryId: string, options?: QueryOptions): Promise<PaginatedProductResult>
-
Parameters
-
categoryId: string
-
Default value options: QueryOptions = {}
Returns Promise<PaginatedProductResult>
findById
- findById(productId: string): Promise<Product>
-
Parameters
Returns Promise<Product>
findBySearchQuery
- findBySearchQuery(q: string, language?: string, options?: QueryOptions): Promise<PaginatedProductResult>
-
Parameters
-
q: string
-
Default value language: string = "en"
-
Default value options: QueryOptions = {}
Returns Promise<PaginatedProductResult>