-
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.
docs(#549): accompanying prices in GQL
- Loading branch information
1 parent
0f02512
commit efc4795
Showing
10 changed files
with
266 additions
and
27 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
.../en/query/requirements/examples/fetching/allPricesForSaleFieldWithReferencePrices.graphql
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
queryProduct( | ||
filterBy: { | ||
entityPrimaryKeyInSet: [ | ||
103911 | ||
], | ||
priceInCurrency: EUR, | ||
priceInPriceLists: [ | ||
"employee-basic-price", | ||
"basic" | ||
] | ||
} | ||
) { | ||
recordPage { | ||
data { | ||
primaryKey | ||
attributes { | ||
code | ||
} | ||
allPricesForSale { | ||
priceWithoutTax | ||
priceWithTax | ||
taxRate | ||
referencePrice: accompanyingPrice(priceLists: "basic") { | ||
priceWithoutTax | ||
priceWithTax | ||
taxRate | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
174 changes: 174 additions & 0 deletions
174
...ents/examples/fetching/allPricesForSaleFieldWithReferencePrices.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 |
---|---|---|
@@ -0,0 +1,174 @@ | ||
```json | ||
{ | ||
"data": [ | ||
{ | ||
"primaryKey": 103911, | ||
"attributes": { | ||
"code": "apple-ipad-10-2-10th-generation-2022" | ||
}, | ||
"allPricesForSale": [ | ||
{ | ||
"priceWithoutTax": "395.87", | ||
"priceWithTax": "479.0", | ||
"taxRate": "21.0", | ||
"referencePrice": { | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
} | ||
}, | ||
{ | ||
"priceWithoutTax": "395.87", | ||
"priceWithTax": "479.0", | ||
"taxRate": "21.0", | ||
"referencePrice": { | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
} | ||
}, | ||
{ | ||
"priceWithoutTax": "395.87", | ||
"priceWithTax": "479.0", | ||
"taxRate": "21.0", | ||
"referencePrice": { | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
} | ||
}, | ||
{ | ||
"priceWithoutTax": "395.87", | ||
"priceWithTax": "479.0", | ||
"taxRate": "21.0", | ||
"referencePrice": { | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0" | ||
} | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0", | ||
"referencePrice": { | ||
"priceWithoutTax": "429.75", | ||
"priceWithTax": "520.0", | ||
"taxRate": "21.0" | ||
} | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0", | ||
"referencePrice": { | ||
"priceWithoutTax": "429.75", | ||
"priceWithTax": "520.0", | ||
"taxRate": "21.0" | ||
} | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0", | ||
"referencePrice": { | ||
"priceWithoutTax": "429.75", | ||
"priceWithTax": "520.0", | ||
"taxRate": "21.0" | ||
} | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0", | ||
"referencePrice": { | ||
"priceWithoutTax": "429.75", | ||
"priceWithTax": "520.0", | ||
"taxRate": "21.0" | ||
} | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0", | ||
"referencePrice": { | ||
"priceWithoutTax": "429.75", | ||
"priceWithTax": "520.0", | ||
"taxRate": "21.0" | ||
} | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0", | ||
"referencePrice": { | ||
"priceWithoutTax": "429.75", | ||
"priceWithTax": "520.0", | ||
"taxRate": "21.0" | ||
} | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0", | ||
"referencePrice": { | ||
"priceWithoutTax": "429.75", | ||
"priceWithTax": "520.0", | ||
"taxRate": "21.0" | ||
} | ||
}, | ||
{ | ||
"priceWithoutTax": "412.4", | ||
"priceWithTax": "499.0", | ||
"taxRate": "21.0", | ||
"referencePrice": { | ||
"priceWithoutTax": "429.75", | ||
"priceWithTax": "520.0", | ||
"taxRate": "21.0" | ||
} | ||
}, | ||
{ | ||
"priceWithoutTax": "436.36", | ||
"priceWithTax": "528.0", | ||
"taxRate": "21.0", | ||
"referencePrice": { | ||
"priceWithoutTax": "454.55", | ||
"priceWithTax": "550.0", | ||
"taxRate": "21.0" | ||
} | ||
}, | ||
{ | ||
"priceWithoutTax": "436.36", | ||
"priceWithTax": "528.0", | ||
"taxRate": "21.0", | ||
"referencePrice": { | ||
"priceWithoutTax": "454.55", | ||
"priceWithTax": "550.0", | ||
"taxRate": "21.0" | ||
} | ||
}, | ||
{ | ||
"priceWithoutTax": "436.36", | ||
"priceWithTax": "528.0", | ||
"taxRate": "21.0", | ||
"referencePrice": { | ||
"priceWithoutTax": "454.55", | ||
"priceWithTax": "550.0", | ||
"taxRate": "21.0" | ||
} | ||
}, | ||
{ | ||
"priceWithoutTax": "436.36", | ||
"priceWithTax": "528.0", | ||
"taxRate": "21.0", | ||
"referencePrice": { | ||
"priceWithoutTax": "454.55", | ||
"priceWithTax": "550.0", | ||
"taxRate": "21.0" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
``` |
2 changes: 1 addition & 1 deletion
2
...ion/user/en/query/requirements/examples/fetching/attributeContentAll.evitaql.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,5 +1,5 @@ | ||
| entityPrimaryKey | code | visibility | published | changed | status | order | | ||
| ---------------- | --------- | ---------- | ----------------------------- | ------------------------- | -------- | ----- | | ||
| 64703 | 'samsung' | 'VISIBLE' | 2024-04-15T17:41:24.074+02:00 | 2024-02-25T14:35:38+01:00 | 'ACTIVE' | ⎆ | | ||
| 64703 | 'samsung' | 'VISIBLE' | 2024-04-12T11:46:10.137+02:00 | 2024-02-25T14:35:38+01:00 | 'ACTIVE' | ⎆ | | ||
|
||
###### **Page** 1/1 **(Total number of results: 1)** |
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 |
---|---|---|
|
@@ -15,8 +15,8 @@ | |
visibility | ||
published | ||
validity | ||
status | ||
changed | ||
status | ||
order | ||
} | ||
} | ||
|
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
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