31 lines
454 B
TypeScript
31 lines
454 B
TypeScript
![]() |
import gql from "graphql-tag";
|
||
|
|
||
|
export const categoryFragment = gql`
|
||
|
fragment CategoryFragment on Category {
|
||
|
id
|
||
|
name
|
||
|
children {
|
||
|
totalCount
|
||
|
}
|
||
|
products {
|
||
|
totalCount
|
||
|
}
|
||
|
}
|
||
|
`;
|
||
|
export const categoryDetailsFragment = gql`
|
||
|
fragment CategoryDetailsFragment on Category {
|
||
|
id
|
||
|
backgroundImage {
|
||
|
alt
|
||
|
url
|
||
|
}
|
||
|
name
|
||
|
descriptionJson
|
||
|
seoDescription
|
||
|
seoTitle
|
||
|
parent {
|
||
|
id
|
||
|
}
|
||
|
}
|
||
|
`;
|