saleor-dashboard/src/fragments/attributes.ts
2020-07-07 12:14:12 +02:00

29 lines
517 B
TypeScript

import gql from "graphql-tag";
export const attributeFragment = gql`
fragment AttributeFragment on Attribute {
id
name
slug
visibleInStorefront
filterableInDashboard
filterableInStorefront
}
`;
export const attributeDetailsFragment = gql`
${attributeFragment}
fragment AttributeDetailsFragment on Attribute {
...AttributeFragment
availableInGrid
inputType
storefrontSearchPosition
valueRequired
values {
id
name
slug
type
}
}
`;