Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Reference — Core SDK: Search · Boson Protocol
Skip to content

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