ProductFilterInput
Input for filtering products by various criteria such as price, manufacturer, or taxonomy attributes.
Input Definition
input ProductFilterInput {
type: String!
attributeId: Int
values: [String!]!
}Fields
| Field | Type | Required | Description |
|---|---|---|---|
| type | String! | Yes | The type of filter (e.g., “price”, “manufacturer”, “taxonomy”). |
| attributeId | Int | No | The attribute ID for taxonomy filters. Required when type is “taxonomy”. |
| values | [String!]! | Yes | The filter values to apply. For price filters, use format like “0-100”. For other filters, use the value identifiers. |
Example
mutation {
filterProducts(filters: {
type: "price"
values: ["0-100"]
}) {
id
name
price
}
}Related Types
No related types provided.