Search mixin
Class: SearchMixin
Source: packages/core-sdk/src/search/mixin.ts
Methods (1)
searchProducts
Signatures
searchProducts (1 signature)
Search for products matching the given keywords. By default, only products that are currently valid (based on their validity dates) are returned. This behavior can be controlled via the includeInvalidOffers option in the queryVars parameter. ordering (productsOrderBy, productsOrderDirection), filtering (productsFilter), and includeInvalidOffers flag to control validity filtering.
public async searchProducts(
keywords: string[],
queryVars?: subgraph.SearchProductsQueryQueryVariables & {
includeInvalidOffers?: boolean;
}
): Promise<subgraph.ProductSearchResultFieldsFragment[]>Related
- Reference → CoreSDK class — how mixins compose.
- Concepts → The Boson model.