
* Add metadata editor component * Add tests * Fix plurals * Use pascal case in selectors * Update product metadata * Add metadata handler decorator * Update snapshots * wip * Remove operation provider component * Add metadata to collections * Add metadata editor to variant * Add metadata editor to categories * Add metadata to product types * Simplify code * Add metadata to attributes * Drop maybe * Rename Metadata to MetadataFragment * Update changelog and snapshots
34 lines
548 B
TypeScript
34 lines
548 B
TypeScript
import gql from "graphql-tag";
|
|
|
|
import { metadataFragment } from "./metadata";
|
|
|
|
export const categoryFragment = gql`
|
|
fragment CategoryFragment on Category {
|
|
id
|
|
name
|
|
children {
|
|
totalCount
|
|
}
|
|
products {
|
|
totalCount
|
|
}
|
|
}
|
|
`;
|
|
export const categoryDetailsFragment = gql`
|
|
${metadataFragment}
|
|
fragment CategoryDetailsFragment on Category {
|
|
id
|
|
...MetadataFragment
|
|
backgroundImage {
|
|
alt
|
|
url
|
|
}
|
|
name
|
|
descriptionJson
|
|
seoDescription
|
|
seoTitle
|
|
parent {
|
|
id
|
|
}
|
|
}
|
|
`;
|