
* 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
16 lines
285 B
TypeScript
16 lines
285 B
TypeScript
import gql from "graphql-tag";
|
|
|
|
export const metadataFragment = gql`
|
|
fragment MetadataItem on MetadataItem {
|
|
key
|
|
value
|
|
}
|
|
fragment MetadataFragment on ObjectWithMetadata {
|
|
metadata {
|
|
...MetadataItem
|
|
}
|
|
privateMetadata {
|
|
...MetadataItem
|
|
}
|
|
}
|
|
`;
|