import { ShopifyFilterValue } from '@daffodil/driver/shopify'
A selectable option within a Filter, such as a specific color, size, or product type. Each value includes a count of matching results and a human-readable label for display.
The input field provides ready-to-use JSON for building dynamic filtering interfaces. You can combine the input values from multiple selected FilterValue objects to construct filter queries. Visual representations are available through the image or swatch fields when the parent filter's presentation type supports them.
interface ShopifyFilterValue {
__typename: "FilterValue"
count: number
id: string
image: ShopifyMediaImage
input: Scalars['JSON']['output']
label: string
swatch: ShopifySwatch
}
__typename "FilterValue" |
|---|
count number |
|---|
The number of results that match this filter value. |
id string |
|---|
A unique identifier. |
image ShopifyMediaImage |
|---|
The visual representation when the filter's presentation is |
input Scalars['JSON']['output'] |
|---|
An input object that can be used to filter by this value on the parent field. The value is provided as a helper for building dynamic filtering UI. For
example, if you have a list of selected |
label string |
|---|
A human-friendly string for this filter value. |
swatch ShopifySwatch |
|---|
The visual representation when the filter's presentation is |