Seasons Queries

Retrieve commercial seasons for product classification.

Season — Returns a single season by id

query GetSeason($id: Int!) {
  Season(id: $id) {
    id
    label
    active
    counter(include_stock_levels: true, location_id: 100)
  }
}

Seasons — Returns a list of seasons with filters, search, and ordering

query Seasons(
  $where: QuerySeasonsWhereWhereConditions,
  $orderBy: [QuerySeasonsOrderByOrderByClause!],
  $search: String,
  $first: Int,
  $page: Int
) {
  Seasons(
    where: $where,
    orderBy: $orderBy,
    search: $search,
    first: $first,
    page: $page
  ) {
    paginatorInfo {
      total
      currentPage
    }
    data {
      id
      label
      active
    }
  }
}

B2bStoreSeasons — Filtered seasons for B2B store

query B2bStoreSeasons(
  $where: QueryB2bStoreSeasonsWhereWhereConditions,
  $orderBy: [QueryB2bStoreSeasonsOrderByOrderByClause!],
  $search: String,
  $first: Int,
  $page: Int
) {
  B2bStoreSeasons(
    where: $where,
    orderBy: $orderBy,
    search: $search,
    first: $first,
    page: $page
  ) {
    paginatorInfo {
      total
      currentPage
    }
    data {
      id
      label
      active
    }
  }
}

Available fields

FieldTypeDescription
idIntUnique identifier.
labelStringName of the season.
activeBooleanActivation status.
counterIntComputed product counter. Accepts optional arguments: include_stock_levels, location_id, product_tag_ids, season_ids, brand_ids.

Filters

FieldExample
id{ "column": "ID", "operator": "EQ", "value": 100012 }
label{ "column": "LABEL", "operator": "LIKE", "value": "%Winter%" }
active{ "column": "ACTIVE", "operator": "EQ", "value": true }