---
title: PriceRuleDiscountCodeConnection - GraphQL Admin
description: An auto-generated type for paginating through multiple PriceRuleDiscountCodes.
api_version: 2025-07
api_name: admin
type: connection
api_type: graphql
source_url:
html: https://shopify.dev/docs/api/admin-graphql/2025-07/connections/pricerulediscountcodeconnection
md: https://shopify.dev/docs/api/admin-graphql/2025-07/connections/pricerulediscountcodeconnection.md
---
# PriceRuleDiscountCodeConnection
connection
An auto-generated type for paginating through multiple PriceRuleDiscountCodes.
## Fields with this connection
* [PriceRule.discountCodes](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/PriceRule#field-PriceRule.fields.discountCodes)
OBJECT
A set of conditions, including entitlements and prerequisites, that must be met for a discount code to apply.
***
**Note:** Use the types and queries included our \discount tutorials\ instead. These will replace the GraphQL Admin API\'s \\\Price\Rule\\\ object and \\\Discount\Code\\\ union, and the REST Admin API\'s deprecated\\\Price\Rule\\\ resource.
***
***
## Possible returns
* edges
[\[PriceRuleDiscountCodeEdge!\]!](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/PriceRuleDiscountCodeEdge)
non-null
The connection between the node and its parent. Each edge contains a minimum of the edge's cursor and the node.
* nodes
[\[PriceRuleDiscountCode!\]!](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/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
[PageInfo!](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/PageInfo)
non-null
An object that’s used to retrieve [cursor information](https://shopify.dev/api/usage/pagination-graphql) about the current page.
***
## Map
### Fields with this connection
* [PriceRule.discountCodes](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/PriceRule#field-PriceRule.fields.discountCodes)
### Possible returns
* [PriceRuleDiscountCodeConnection.edges](https://shopify.dev/docs/api/admin-graphql/2025-07/connections/PriceRuleDiscountCodeConnection#returns-edges)
* [PriceRuleDiscountCodeConnection.nodes](https://shopify.dev/docs/api/admin-graphql/2025-07/connections/PriceRuleDiscountCodeConnection#returns-nodes)
* [PriceRuleDiscountCodeConnection.pageInfo](https://shopify.dev/docs/api/admin-graphql/2025-07/connections/PriceRuleDiscountCodeConnection#returns-pageInfo)