Skip to content

Instantly share code, notes, and snippets.

@wesleyalmd
Last active January 26, 2023 13:02
Show Gist options
  • Save wesleyalmd/26ac9a93c7d05a0bce30c675dd7391e0 to your computer and use it in GitHub Desktop.
Save wesleyalmd/26ac9a93c7d05a0bce30c675dd7391e0 to your computer and use it in GitHub Desktop.
query getEventProduct($url_key: String!) {
products(filter: { url_key: { eq: $url_key } }) {
items {
related_products {
id
name
sku
small_image {
url
}
media_gallery {
disabled
label
position
url
}
short_description {
html
}
description {
html
}
price_range {
minimum_price {
regular_price {
value
currency
}
}
}
special_price
label
label_color
min_purchase_quantity
related_products {
name
sku
}
... on BundleProduct {
items {
option_id
title
sku
position
required
type
options {
id
quantity
position
is_default
price
label
product {
id
name
sku
small_image {
url
}
stock_status
stock_info {
qty
}
media_gallery {
disabled
label
position
url
}
short_description {
html
}
price_range {
minimum_price {
regular_price {
value
currency
}
}
}
special_price
size
color
battery
kit_modality
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment