Skip to content

Commit

Permalink
Add more information in product query
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Dias committed Jul 30, 2018
1 parent ea9afd5 commit 10a8395
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- Add more information in product query.

## [1.4.3] - 2018-07-27
### Added
Expand Down
67 changes: 65 additions & 2 deletions react/queries/productQuery.gql
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ query Product($slug: String) {
categoriesIds
brand
properties {
name,
name
values
},
}
items {
itemId
name
Expand Down Expand Up @@ -46,11 +46,67 @@ query Product($slug: String) {
AvailableQuantity
Tax
CacheVersionUsedToCallCheckout
Installments {
Value
InterestRate
TotalValuePlusInterestRate
NumberOfInstallments
Name
}
}
}
variations {
name
}
kitItems {
itemId
amount
product {
productName
productId
description
linkText
categories
categoryId
categoriesIds
brand
properties {
name
values
}
}
sku {
itemId
name
referenceId {
Key
Value
}
images {
imageId
imageLabel
imageUrl
imageTag
}
sellers{
sellerId
sellerName
commertialOffer {
Price
ListPrice
PriceWithoutDiscount
AvailableQuantity
Installments {
Value
InterestRate
TotalValuePlusInterestRate
NumberOfInstallments
Name
}
}
}
}
}
}
benefits {
featured
Expand Down Expand Up @@ -104,6 +160,13 @@ query Product($slug: String) {
AvailableQuantity
Tax
CacheVersionUsedToCallCheckout
Installments {
Value
InterestRate
TotalValuePlusInterestRate
NumberOfInstallments
Name
}
}
}
variations {
Expand Down

0 comments on commit 10a8395

Please sign in to comment.