DiscountAutomaticNode object
An automatic discount wrapper node.
Required access
Apps must have read_discounts access scope.
On this page
Connections
- events (
[EventConnection!](https://shopify.dev/docs/admin-api/graphql/reference/events/eventconnection))
The paginated list of events associated with the host subject.
| Argument | Description |
|---|---|
after( [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)) |
Returns the elements that come after the specified cursor. |
before( [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)) |
Returns the elements that come before the specified cursor. |
first( [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)) |
Returns up to the first n elements from the list. |
last( [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)) |
Returns up to the last n elements from the list. |
query( [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)) |
Supported filter parameters: + comments+ created_at+ subject_type+ verbSee the detailed search syntax for more information about using filters. |
reverse( [Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01)) |
Reverse the order of the underlying list. Default value: false |
sortKey( [EventSortKeys](https://shopify.dev/docs/admin-api/graphql/reference/events/eventsortkeys)) |
Sort the underlying list by the given key. Default value: ID |
Fields
- automaticDiscount (
[DiscountAutomatic!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountautomatic))
An automatic discount. - id (
[ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01))
Globally unique identifier.
Types that return DiscountAutomaticNode
[QueryRoot.automaticDiscountNode](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/queryroot#automaticdiscountnode-2021-01)[QueryRoot.automaticDiscountNodes](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/queryroot#automaticdiscountnodes-2021-01)
Implements
[HasEvents](https://shopify.dev/docs/admin-api/graphql/reference/events/hasevents)[Node](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/node)
An auto-generated type for paginating through multiple DiscountAutomaticNodes.
On this page
Fields
- edges (
[[DiscountAutomaticNodeEdge!]!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountautomaticnode))
A list of edges. - pageInfo (
[PageInfo!](https://shopify.dev/docs/admin-api/graphql/reference/pageinfo))
Information to aid in pagination.
An auto-generated type which holds one DiscountAutomaticNode and a cursor during pagination.
On this page
Fields
- cursor (
[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
A cursor for use in pagination. - node (
[DiscountAutomaticNode!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountautomaticnode))
The item at the end of DiscountAutomaticNodeEdge.
Types that return DiscountAutomaticNodeEdge
[DiscountAutomaticNodeConnection.edges](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountautomaticnode#edges-2021-01)
