Alokai

getFacetProductProjectionDefaultQuery

Default GraphQL query for the getFacetProductProjection API endpoint. It concatenates the ChannelFragment and productProjectionsSearchQuery

getFacetProductProjectionDefaultQuery = "\n  \n  \n  fragment LocalizedStringFragment on LocalizedString {\n    value\n    locale\n  }\n\n\n  \n  fragment DefaultAddress on Address {\n    id\n    title\n    firstName\n    lastName\n    streetName\n    streetNumber\n    postalCode\n    city\n    country\n    state\n    region\n    company\n    apartment\n    phone\n    mobile\n    salutation\n  }\n\n\n  \n  fragment ChannelFragment on Channel {\n    id\n    version\n    key\n    roles\n    name(
	locale: $locale
)\n    description(locale: $locale)\n    nameAllLocales {\n      ...LocalizedStringFragment\n    }\n    descriptionAllLocales {\n      ...LocalizedStringFragment\n    }\n    address {\n      ...DefaultAddress\n    }\n  }\n\n\n\n  \n  fragment DefaultProductPriceSearch on ProductPriceSearch {\n    discounted {\n      value {\n        type\n        currencyCode\n        centAmount\n        fractionDigits\n      }\n      discount {\n        validFrom\n        validUntil\n        isActive\n        name(acceptLanguage: $acceptLanguage)\n      }\n    }\n    value {\n      type\n      currencyCode\n      centAmount\n      fractionDigits\n    }\n  }\n  fragment ImagesProductSearch on ProductSearchVariant {\n    images {\n      url\n      label\n    }\n  }\n  fragment PriceProductSearch on ProductSearchVariant {\n    price(currency: $currency,
	country: $country,
	channelId: $channelId,
	customerGroupId: $customerGroupId) {\n      ...DefaultProductPriceSearch\n    }\n  }\n  fragment AttributesProductSearch on ProductSearchVariant {\n    attributesRaw {\n      name\n      value\n    }\n  }\n  fragment AvailabilityProductSearch on ProductSearchVariant {\n    availability {\n      noChannel {\n        isOnStock\n        restockableInDays\n        availableQuantity\n      }\n      channels(\n        includeChannelIds: $includeChannelIds \n        excludeChannelIds: $excludeChannelIds \n        limit: $channelLimit\n        offset: $channelOffset\n      ) {\n        limit\n        offset\n        total\n        results {\n          channelRef {\n            id\n          }\n          availability {\n            isOnStock\n            restockableInDays\n            availableQuantity\n          }\n          channel {\n            ...ChannelFragment\n          }\n        }\n      }\n    }\n  }\n  fragment DefaultVariantProductSearch on ProductSearchVariant {\n    id\n    sku\n    ...ImagesProductSearch\n    ...PriceProductSearch\n    ...AttributesProductSearch\n    ...AvailabilityProductSearch\n  }\n  query productProjectionsSearch(\n    $sorts: [String!],\n    $limit: Int,\n    $offset: Int,\n    $locale: Locale!,\n    $acceptLanguage: [Locale!],\n    $text: String,\n    $facets: [SearchFacetInput!],\n    $filters: [SearchFilterInput!],\n    $queryFilters: [SearchFilterInput!],\n    $facetFilters: [SearchFilterInput!],\n    $currency: Currency!,\n    $country: Country,\n    $channelId: String,\n    $includeChannelIds: [String!],\n    $excludeChannelIds:[String!],\n    $channelLimit: Int,\n    $channelOffset: Int,\n    $customerGroupId: String\n  ) {\n    productProjectionSearch(\n      sorts: $sorts,\n      limit: $limit,\n      offset: $offset,\n      locale: $locale,\n      text: $text,\n      facets: $facets\n      filters: $filters,\n      queryFilters: $queryFilters,\n      facetFilters: $facetFilters\n    ) {\n      count\n      total\n      offset\n      results {\n        id\n        slug(acceptLanguage: $acceptLanguage)\n        name(acceptLanguage: $acceptLanguage)\n        masterVariant {\n          ...DefaultVariantProductSearch\n        }\n        variants {\n          ...DefaultVariantProductSearch\n        }\n        reviewRatingStatistics {\n          averageRating,\n          ratingsDistribution,\n          count\n        }\n        productType {\n          attributeDefinitions {\n            results {\n              name\n              label(locale: $locale)\n            }\n          }\n        }\n      }\n      facets {\n        facet,\n        value {\n          ... on TermsFacetResult {\n            terms {\n              term\n              count\n              productCount\n            }\n          }\n        }\n      }\n    }\n  }\n\n"