Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
Hello! I am using this GraphQL query to get the names of all products to which a specific discount applies. However, I am seeing an empty result when I shouldn't be.
I can look up the specific discount code and verify that it is only valid for a handful of products by navigating to a URL like this: https://tigerlily-perfume.myshopify.com/admin/discounts/X.
So, I'm wondering if there is a bug in this part of the GraphQL API?
Thanks!
{
codeDiscountNodes(first: 1, query:"status:active AND ends_at:>%s AND ends_at:<%s") {
edges {
node {
codeDiscount {
__typename
... on DiscountCodeBasic {
endsAt
customerGets {
items {
__typename
... on DiscountProducts {
products(first:1) {
edges {
node {
handle
}
}
}
}
}
}
customerSelection {
__typename
... on DiscountCustomers {
customers {
email
displayName
}
}
}
}
}
}
}
}
}
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...
ByYour online store speed can enhance your store’s discoverability, boost conversion rates a...
ByShopping is at our fingertips with mobile devices. Is your theme optimized to be user-frie...
By