import { gql } from '@apollo/client';

export const PUBLISHED_PRODUCT_SEARCH_SUGGEST = gql`
  query PublishedProductsSearchSuggest(
    $locale: Locale!
    $queryString: String!
  ) {
    publishedProductsSearchSuggest(locale: $locale, queryString: $queryString) {
      success
      errors {
        message
      }
      hits {
        productName
        productListingImageUrl
        productId
        highlights {
          fieldName
          highlightedTexts
          nbOfMatches
        }
      }
    }
  }
`;
