Skip to main content
Anchor to PriceRuleDiscountCodeConnection

PriceRuleDiscountCodeConnection

connection

An auto-generated type for paginating through multiple PriceRuleDiscountCodes.

Anchor to Fields with this connectionFields with this connection

•OBJECT

Price rules are a set of conditions, including entitlements and prerequisites, that must be met in order for a discount code to apply.

We recommend using the types and queries detailed at Getting started with discounts instead. These will replace the GraphQL PriceRule object and REST Admin PriceRule and DiscountCode resources.


Was this section helpful?

•[PriceRuleDiscountCodeEdge!]!
non-null

The connection between the node and its parent. Each edge contains a minimum of the edge's cursor and the node.

•[PriceRuleDiscountCode!]!
non-null

A list of nodes that are contained in PriceRuleDiscountCodeEdge. 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.

•PageInfo!
non-null

An object that’s used to retrieve cursor information about the current page.


Was this section helpful?