Brands Queries

Query brand/manufacturer records linked to products.

Brand — Returns a single brand by id

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

Brands — Returns a list of brands with filters, search, and ordering

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

B2bStoreBrands — Filtered brands for B2B store

query B2bStoreBrands(
  $where: QueryB2bStoreBrandsWhereWhereConditions,
  $orderBy: [QueryB2bStoreBrandsOrderByOrderByClause!],
  $search: String,
  $first: Int,
  $page: Int
) {
  B2bStoreBrands(
    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 brand.
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": "%Nike%" }
active{ "column": "ACTIVE", "operator": "EQ", "value": true }