A filter made up of terms, connectives, modifiers, and comparators.
You can apply one or more filters to a query. Learn more about Shopify API search syntax.
A list of nodes that are contained in DiscountNodeEdge. You can fetch data about an individual node, or you can follow the edges to fetch data about a collection of related nodes. At each node, you specify the fields that you want to retrieve.
An object that’s used to retrieve cursor information about the current page.
Was this section helpful?
Retrieve a list of discounts
Hide code
DescriptionCopy
query {
discountNodes(first: 3) {
edges {
node {
id
discount {
... on DiscountCodeBasic {
title
}
... on DiscountCodeBxgy {
title
}
... on DiscountCodeFreeShipping {
title
}
... on DiscountAutomaticApp {
title
}
... on DiscountAutomaticBasic {
title
}
... on DiscountAutomaticBxgy {
title
}
... on DiscountAutomaticFreeShipping {
title
}
}
}
}
}
}