docs: added workflow hooks docs + changed workflow response (#8364)

* docs: added workflow hooks docs + changed workflow response

* Update page.mdx
This commit is contained in:
Shahed Nasser
2024-07-31 17:01:33 +03:00
committed by GitHub
parent 27837b8833
commit 6f973d9f2b
29 changed files with 321 additions and 167 deletions
@@ -30,15 +30,15 @@ const query = remoteQueryObjectFromString({
fields: [
"*",
"variants.*",
"variants.prices.*"
"variants.prices.*",
],
variables: {
filters: {
id: [
"prod_123"
]
"prod_123",
],
},
}
},
})
// `result` is array of products
@@ -72,19 +72,19 @@ const query = remoteQueryObjectFromString({
fields: [
"*",
"variants.*",
"variants.calculated_price.*"
"variants.calculated_price.*",
],
variables: {
filters: {
id
id,
},
"variants.calculated_price": {
context: {
region_id: "reg_01J3MRPDNXXXDSCC76Y6YCZARS",
currency_code: "eur"
}
}
}
currency_code: "eur",
},
},
},
})
// `result` is array of products