Skip to content

Instantly share code, notes, and snippets.

@MatheusR42
Created July 22, 2020 18:49
Show Gist options
  • Save MatheusR42/32a252aa8cb385fc07ee0267b822f682 to your computer and use it in GitHub Desktop.
Save MatheusR42/32a252aa8cb385fc07ee0267b822f682 to your computer and use it in GitHub Desktop.
query productSearchV3($query: String, $fullText: String, $selectedFacets: [SelectedFacetInput], $orderBy: String, $from: Int, $to: Int, $hideUnavailableItems: Boolean = false, $skusFilter: ItemsFilter = ALL_AVAILABLE, $simulationBehavior: SimulationBehavior = default, $installmentCriteria: InstallmentsCriteria = MAX_WITHOUT_INTEREST, $productOriginVtex: Boolean = false, $fuzzy: String, $operator: Operator, $searchState: String) {
productSearch(query: $query, fullText: $fullText, selectedFacets: $selectedFacets, orderBy: $orderBy, from: $from, to: $to, hideUnavailableItems: $hideUnavailableItems, simulationBehavior: $simulationBehavior, productOriginVtex: $productOriginVtex, fuzzy: $fuzzy, operator: $operator, searchState: $searchState) {
products {
cacheId
productId
description
productName
productReference
linkText
brand
brandId
link
categories
priceRange {
sellingPrice {
highPrice
lowPrice
__typename
}
listPrice {
highPrice
lowPrice
__typename
}
__typename
}
items(filter: $skusFilter) {
itemId
sellers {
sellerId
sellerName
commertialOffer {
discountHighlights {
name
__typename
}
teasers {
name
conditions {
minimumQuantity
parameters {
name
value
__typename
}
__typename
}
effects {
parameters {
name
value
__typename
}
__typename
}
__typename
}
Installments(criteria: $installmentCriteria) {
Value
InterestRate
TotalValuePlusInterestRate
NumberOfInstallments
Name
__typename
}
Price
ListPrice
Tax
taxPercentage
spotPrice
PriceWithoutDiscount
RewardValue
PriceValidUntil
AvailableQuantity
__typename
}
__typename
}
__typename
}
skuSpecifications {
field {
name
__typename
}
values {
name
__typename
}
__typename
}
productClusters {
id
name
__typename
}
properties {
name
values
__typename
}
selectedProperties {
key
value
__typename
}
__typename
}
recordsFiltered
breadcrumb {
name
href
__typename
}
fuzzy
operator
searchState
redirect
__typename
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment