-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(#486): fix behaviour of
multiplePricesForSaleAvailable
, leaving…
… out duplicate prices
- Loading branch information
1 parent
378f270
commit 0c87465
Showing
17 changed files
with
345 additions
and
178 deletions.
There are no files selected for viewing
200 changes: 100 additions & 100 deletions
200
...r/en/query/requirements/examples/fetching/allPricesForSaleField.graphql.json.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,106 +1,106 @@ | ||
```json | ||
{ | ||
"data": { | ||
"queryProduct": { | ||
"recordPage": { | ||
"data": [ | ||
{ | ||
"primaryKey": 103911, | ||
"attributes": { | ||
"code": "apple-ipad-10-2-10th-generation-2022" | ||
}, | ||
"priceForSale": { | ||
"priceWithoutTax": "395.87", | ||
"priceWithTax": "479.0", | ||
"taxRate": "21.0" | ||
}, | ||
"allPricesForSale": [ | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "436.36", | ||
"priceWithTax": "528.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "436.36", | ||
"priceWithTax": "528.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "436.36", | ||
"priceWithTax": "528.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "395.87", | ||
"priceWithTax": "479.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "436.36", | ||
"priceWithTax": "528.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "395.87", | ||
"priceWithTax": "479.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "395.87", | ||
"priceWithTax": "479.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "395.87", | ||
"priceWithTax": "479.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
} | ||
], | ||
"multiplePricesForSaleAvailable": true | ||
} | ||
] | ||
} | ||
} | ||
"queryProduct": { | ||
"recordPage": { | ||
"data": [ | ||
{ | ||
"primaryKey": 103911, | ||
"attributes": { | ||
"code": "apple-ipad-10-2-10th-generation-2022" | ||
}, | ||
"priceForSale": { | ||
"priceWithoutTax": "395.87", | ||
"priceWithTax": "479.0", | ||
"taxRate": "21.0" | ||
}, | ||
"allPricesForSale": [ | ||
{ | ||
"priceWithoutTax": "395.87", | ||
"priceWithTax": "479.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "395.87", | ||
"priceWithTax": "479.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "395.87", | ||
"priceWithTax": "479.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "395.87", | ||
"priceWithTax": "479.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "436.36", | ||
"priceWithTax": "528.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "436.36", | ||
"priceWithTax": "528.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "436.36", | ||
"priceWithTax": "528.0", | ||
"taxRate": "21.0" | ||
}, | ||
{ | ||
"priceWithoutTax": "436.36", | ||
"priceWithTax": "528.0", | ||
"taxRate": "21.0" | ||
} | ||
], | ||
"multiplePricesForSaleAvailable": true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.