折扣码节点-DiscountCodeNode 对象
折扣码包装器节点。
所需的访问
应用程序必须具有read_discounts访问范围。
在本页面
连接数
- events(
[EventConnection!](https://shopify.dev/docs/admin-api/graphql/reference/events/eventconnection))
与主持人主题相关的事件的分页列表。 
| 参数 | 描述 | 
|---|---|
after() [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) | 
返回指定游标之后的元素。 | 
before() [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) | 
返回指定游标之前的元素。 | 
first() [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) | 
返回n列表中的第一个元素。 | 
last() [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) | 
返回n列表中的最后一个元素。 | 
query() [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) | 
支持的过滤器参数: + comments+ created_at+ subject_type+ verb有关使用过滤器的更多信息,请参见详细的搜索语法。  | 
reverse() [Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01) | 
颠倒基础列表的顺序。 默认值: false | 
sortKey() [EventSortKeys](https://shopify.dev/docs/admin-api/graphql/reference/events/eventsortkeys) | 
按给定键对基础列表进行排序。 默认值: ID | 
属性
- codeDiscount(
[DiscountCode!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountcode))
代码折扣。 - id(
[ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01))
全局唯一标识符。 
返回DiscountCodeNode的类型
[QueryRoot.codeDiscountNode](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/queryroot#codediscountnode-2021-01)[QueryRoot.codeDiscountNodeByCode](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/queryroot#codediscountnodebycode-2021-01)[QueryRoot.codeDiscountNodes](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/queryroot#codediscountnodes-2021-01)
实现
[HasEvents](https://shopify.dev/docs/admin-api/graphql/reference/events/hasevents)[Node](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/node)
自动生成的类型,用于通过多个DiscountCodeNodes分页。
在本页面
属性
- edges(
[[DiscountCodeNodeEdge!]!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountcodenode))
边列表。 - pageInfo(
[PageInfo!](https://shopify.dev/docs/admin-api/graphql/reference/pageinfo))
有助于分页的信息。 
一种自动生成的类型,在分页期间包含一个DiscountCodeNode和一个光标。
在本页面
属性
- cursor(
[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
用于分页的光标。 - node(
[DiscountCodeNode!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountcodenode))
DiscountCodeNodeEdge末尾的项目。 
返回DiscountCodeNodeEdge的类型
[DiscountCodeNodeConnection.edges](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountcodenode#edges-2021-01)
