DiscountCodeNode

Version 2019-07 (Latest)

A code discount wrapper node.

Show definition
"""
A code discount wrapper node.
"""
type DiscountCodeNode implements HasEvents & Node {
  """
  A code discount.
  """
  codeDiscount: DiscountCode!
  """
  The paginated list of events associated with the host subject.
  """
  events(
    """
    Returns the elements that come after the specified cursor.
    """
    after: String
    """
    Returns the elements that come before the specified cursor.
    """
    before: String
    """
    Returns up to the first `n` elements from the list.
    """
    first: Int
    """
    Returns up to the last `n` elements from the list.
    """
    last: Int
    """
    Supported filter parameters:
     - `comments`
     - `created_at`
     - `subject_type`
     - `verb`
    See the detailed [search syntax](https://help.shopify.com/api/getting-started/search-syntax).
    """
    query: String
    """
    Reverse the order of the underlying list.
    """
    reverse: Boolean = false
    """
    Sort the underlying list by the given key.
    """
    sortKey: EventSortKeys = ID
  ): EventConnection!
  """
  Globally unique identifier.
  """
  id: ID!
}

Implements

Connections

events (EventConnection!)

The paginated list of events associated with the host subject.

after ( String )

Returns the elements that come after the specified cursor.

before ( String )

Returns the elements that come before the specified cursor.

first ( Int )

Returns up to the first n elements from the list.

last ( Int )

Returns up to the last n elements from the list.

query ( String )

Supported filter parameters:

  • comments
  • created_at
  • subject_type
  • verb

See the detailed search syntax.

reverse ( Boolean )

Reverse the order of the underlying list.
Default value: true

sortKey ( EventSortKeys )

Sort the underlying list by the given key.
Default value: true

Fields

codeDiscount (DiscountCode!)

A code discount.

id (ID!)

Globally unique identifier.

Version 2019-10 (Release candidate)

A code discount wrapper node.

Show definition
"""
A code discount wrapper node.
"""
type DiscountCodeNode implements HasEvents & Node {
  """
  A code discount.
  """
  codeDiscount: DiscountCode!
  """
  The paginated list of events associated with the host subject.
  """
  events(
    """
    Returns the elements that come after the specified cursor.
    """
    after: String
    """
    Returns the elements that come before the specified cursor.
    """
    before: String
    """
    Returns up to the first `n` elements from the list.
    """
    first: Int
    """
    Returns up to the last `n` elements from the list.
    """
    last: Int
    """
    Supported filter parameters:
     - `comments`
     - `created_at`
     - `subject_type`
     - `verb`
    See the detailed [search syntax](https://help.shopify.com/api/getting-started/search-syntax).
    """
    query: String
    """
    Reverse the order of the underlying list.
    """
    reverse: Boolean = false
    """
    Sort the underlying list by the given key.
    """
    sortKey: EventSortKeys = ID
  ): EventConnection!
  """
  Globally unique identifier.
  """
  id: ID!
}

Implements

Connections

events (EventConnection!)

The paginated list of events associated with the host subject.

after ( String )

Returns the elements that come after the specified cursor.

before ( String )

Returns the elements that come before the specified cursor.

first ( Int )

Returns up to the first n elements from the list.

last ( Int )

Returns up to the last n elements from the list.

query ( String )

Supported filter parameters:

  • comments
  • created_at
  • subject_type
  • verb

See the detailed search syntax.

reverse ( Boolean )

Reverse the order of the underlying list.
Default value: true

sortKey ( EventSortKeys )

Sort the underlying list by the given key.
Default value: true

Fields

codeDiscount (DiscountCode!)

A code discount.

id (ID!)

Globally unique identifier.

Sign up for a Partner account to get started.

Sign up