mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 23:46:58 +00:00
33 lines
531 B
TypeScript
33 lines
531 B
TypeScript
import { productInfo } from './product';
|
|
|
|
export const searchFacets = /* GraphQL */`
|
|
fragment searchFacets on Facet {
|
|
label
|
|
field
|
|
values {
|
|
label
|
|
value
|
|
isApplied
|
|
filterValue
|
|
isDisplayed
|
|
count
|
|
}
|
|
}`;
|
|
|
|
export const searchResults = /* GraphQL */`
|
|
fragment searchResults on ProductSearchResult {
|
|
totalCount
|
|
pageSize
|
|
pageCount
|
|
startIndex
|
|
items {
|
|
...productInfo
|
|
}
|
|
facets {
|
|
...searchFacets
|
|
}
|
|
}
|
|
${searchFacets}
|
|
${productInfo}
|
|
`;
|