DiscountQueryInput

DiscountQueryInput

Input for querying discounts with optional filter criteria.
Supports both forward and backward cursor-based pagination.
Use ‘first’ and ‘after’ for forward pagination, or ‘last’ and ‘before’ for backward pagination.

Kind: Input

Fields

Field Type Description
active Boolean Filter by active status (true for discounts that haven’t expired and haven’t reached max redemptions)
after String A cursor for pagination, returns items after this cursor (forward pagination)
before String A cursor for pagination, returns items before this cursor (backward pagination)
expiresEnd DateTime Filter for discounts that expire on or before this date
expiresStart DateTime Filter for discounts that expire on or after this date
first Int The number of items to return from the beginning of the list (forward pagination)
last Int The number of items to return from the end of the list (backward pagination)
name String Filter by discount name (case-insensitive partial match)

Definition

"""
Input for querying discounts with optional filter criteria.
Supports both forward and backward cursor-based pagination.
Use 'first' and 'after' for forward pagination, or 'last' and 'before' for backward pagination.
"""
input DiscountQueryInput {
  """
  Filter by active status (true for discounts that haven't expired and haven't reached max redemptions)
  """
  active: Boolean
  """
  A cursor for pagination, returns items after this cursor (forward pagination)
  """
  after: String
  """
  A cursor for pagination, returns items before this cursor (backward pagination)
  """
  before: String
  """Filter for discounts that expire on or before this date"""
  expiresEnd: DateTime
  """Filter for discounts that expire on or after this date"""
  expiresStart: DateTime
  """
  The number of items to return from the beginning of the list (forward pagination)
  """
  first: Int
  """
  The number of items to return from the end of the list (backward pagination)
  """
  last: Int
  """Filter by discount name (case-insensitive partial match)"""
  name: String
}