Skip to content

Instantly share code, notes, and snippets.

@notkurt
Created January 24, 2024 21:17
Show Gist options
  • Save notkurt/42dbbb280cdcd2d694a72fcd1ee1b7ba to your computer and use it in GitHub Desktop.
Save notkurt/42dbbb280cdcd2d694a72fcd1ee1b7ba to your computer and use it in GitHub Desktop.
Query
==============================================================
query MultiRecommend {
productRecommendations1: productRecommendations(
productId: "gid://shopify/Product/8197009965299"
) {
id
handle
featuredImage {
url
}
}
productRecommendations2: productRecommendations(
productId: "gid://shopify/Product/8197022253299"
) {
id
handle
featuredImage {
url
}
}
}
==============================================================
Output
==============================================================
{
"data": {
"productRecommendations1": [
{
"id": "gid://shopify/Product/8260865949939",
"handle": "united-premium-t-shirt",
"featuredImage": {
"url": "https://cdn.shopify.com/s/files/1/0679/0971/4163/files/MusashiUnitedPremiumT-ShirtM.webp?v=1705554421"
}
},
{
"id": "gid://shopify/Product/8220628746483",
"handle": "video-product",
"featuredImage": null
},
{
"id": "gid://shopify/Product/8217671074035",
"handle": "quantity-debug-product",
"featuredImage": {
"url": "https://cdn.shopify.com/s/files/1/0679/0971/4163/files/DALL_E2024-01-0713.34.47-Aheroimageforane-commercetestproduct_focusedonquantityandlogistics.Thescenefeaturesawarehouseinteriorwithneatlystackedboxesinv.png?v=1704595018"
}
},
{
"id": "gid://shopify/Product/8197071995123",
"handle": "classic-certified-organic-pure-rosehip-oil-15ml",
"featuredImage": {
"url": "https://cdn.shopify.com/s/files/1/0679/0971/4163/products/d8fa9cb481ad342ee59a060a3903dc31212c3a92ea3548cc452b618cc0af7f74.jpg?v=1703020364"
}
},
{
"id": "gid://shopify/Product/8197071405299",
"handle": "classic-certified-organic-light-reflect-cream-8ml",
"featuredImage": {
"url": "https://cdn.shopify.com/s/files/1/0679/0971/4163/products/661b7422696d81aa22d50e0bb7f79f61c7ab75195ea123659775986e46913d92.png?v=1703020322"
}
},
{
"id": "gid://shopify/Product/8197070782707",
"handle": "classic-limited-edition-vegan-lipstick-sand-dunes",
"featuredImage": {
"url": "https://cdn.shopify.com/s/files/1/0679/0971/4163/products/1bd458b1424defd4c7abd2e849d36367ddba23364aefade7a4c8dc1fb95977e6.png?v=1703020285"
}
},
{
"id": "gid://shopify/Product/8197070520563",
"handle": "classic-phytofuse-renew-caviar-lime-exfoliator-75ml",
"featuredImage": {
"url": "https://cdn.shopify.com/s/files/1/0679/0971/4163/products/acfb877afa71fc617f96b09d68fe1da5d068d1c389ca5da19107e0ad2379b2b5.png?v=1703020262"
}
},
{
"id": "gid://shopify/Product/8197070258419",
"handle": "classic-foundation-brush",
"featuredImage": {
"url": "https://cdn.shopify.com/s/files/1/0679/0971/4163/products/50747feaa129dfa0ee28759b1e5d148455c786ff48c8c08d41194f22764e1c84_d3d8b28a-9e30-4792-b868-5bbf10db1010.png?v=1703020244"
}
},
{
"id": "gid://shopify/Product/8197063606515",
"handle": "classic-limited-edition-the-weekender-nude",
"featuredImage": {
"url": "https://cdn.shopify.com/s/files/1/0679/0971/4163/products/6cfd46da22a54a1ee85a0851cda9e979faabdfd337ecbece5c1b21b5f5e81dab.jpg?v=1703019748"
}
},
{
"id": "gid://shopify/Product/8197062983923",
"handle": "mineral-metallic-eyeshadow-paint-emerald",
"featuredImage": {
"url": "https://cdn.shopify.com/s/files/1/0679/0971/4163/products/c532cf90daf47a2907b7c889e82b0d925e63b79de34b4fb362eb75d721806c26.png?v=1703019721"
}
}
],
"productRecommendations2": [
{
"id": "gid://shopify/Product/8195991601395",
"handle": "rte-test",
"featuredImage": {
"url": "https://cdn.shopify.com/s/files/1/0679/0971/4163/products/child-grey-sweatpants.jpg?v=1702939414"
}
}
]
}
}
==============================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment