Skip to main content
Retrieve the list of product categories available for a given manufacturer. Use the returned category names to filter results in searchProducts.

OrderingQuery.productCategories()

type OrderingQuery {
  productCategories(manufacturer: String!): [OrderingProductCategory!]!
}

Input

manufacturer

string - The manufacturer to retrieve categories for (e.g. 'ge', 'msi').

Response

OrderingProductCategory

OrderingProductCategory[] - List of product categories available for the given manufacturer.

OrderingProductCategory

type OrderingProductCategory {
  name: String!
}

name

string - The category name. Pass this value in the categories parameter of searchProducts to filter by this category.

Example

query {
  ordering {
    productCategories(manufacturer: "ge") {
      name
    }
  }
}
{
  "data": {
    "ordering": {
      "productCategories": [
        { "name": "Refrigerators" },
        { "name": "Dishwashers" },
        { "name": "Ranges" },
        { "name": "Washers" }
      ]
    }
  }
}