Skip to content
SIBISIBI Developers
Esc
navigateopen⌘Jpreview
On this page

OrderingQuery.productCategories()

Retrieve the list of product categories available for a given manufacturer.

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

type OrderingQuery {
  productCategories(manufacturer: String!): [OrderingProductCategory!]!
    @deprecated(reason: "Use the REST endpoint GET https://api.sibipro.com/product-categories instead.")
}

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" }
      ]
    }
  }
}

Was this page helpful?