GitHub

ShopifyPredictiveSearchResult

interface

import { ShopifyPredictiveSearchResult } from '@daffodil/driver/shopify'

A predictive search result represents a list of products, collections, pages, articles, and query suggestions that matches the predictive search query.

interface ShopifyPredictiveSearchResult {
  __typename: "PredictiveSearchResult"
  articles: ShopifyArticle[]
  collections: ShopifyCollection[]
  pages: ShopifyPage[]
  products: ShopifyProduct[]
  queries: ShopifySearchQuerySuggestion[]
}

Properties

__typename
"PredictiveSearchResult"
articles
ShopifyArticle[]

The articles that match the search query.

collections
ShopifyCollection[]

The articles that match the search query.

pages
ShopifyPage[]

The pages that match the search query.

products
ShopifyProduct[]

The products that match the search query.

queries
ShopifySearchQuerySuggestion[]

The query suggestions that are relevant to the search query.