From 10a8395d8c4ba03ac9d892e4ace159bf92c00fc0 Mon Sep 17 00:00:00 2001 From: Bruno Dias Date: Mon, 30 Jul 2018 11:44:10 -0300 Subject: [PATCH] Add more information in product query --- CHANGELOG.md | 2 + react/queries/productQuery.gql | 67 +++++++++++++++++++++++++++++++++- 2 files changed, 67 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e30bb126..d1d40855 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/react/queries/productQuery.gql b/react/queries/productQuery.gql index 2126c008..9bdb05e6 100644 --- a/react/queries/productQuery.gql +++ b/react/queries/productQuery.gql @@ -10,9 +10,9 @@ query Product($slug: String) { categoriesIds brand properties { - name, + name values - }, + } items { itemId name @@ -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 @@ -104,6 +160,13 @@ query Product($slug: String) { AvailableQuantity Tax CacheVersionUsedToCallCheckout + Installments { + Value + InterestRate + TotalValuePlusInterestRate + NumberOfInstallments + Name + } } } variations {