2020-07-07 10:14:12 +00:00
|
|
|
import gql from "graphql-tag";
|
|
|
|
|
2020-08-28 12:45:11 +00:00
|
|
|
import { metadataFragment } from "./metadata";
|
|
|
|
|
2020-07-07 10:14:12 +00:00
|
|
|
export const attributeFragment = gql`
|
|
|
|
fragment AttributeFragment on Attribute {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
visibleInStorefront
|
|
|
|
filterableInDashboard
|
|
|
|
filterableInStorefront
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const attributeDetailsFragment = gql`
|
|
|
|
${attributeFragment}
|
2020-08-28 12:45:11 +00:00
|
|
|
${metadataFragment}
|
2020-07-07 10:14:12 +00:00
|
|
|
fragment AttributeDetailsFragment on Attribute {
|
|
|
|
...AttributeFragment
|
2020-08-28 12:45:11 +00:00
|
|
|
...MetadataFragment
|
2020-07-07 10:14:12 +00:00
|
|
|
availableInGrid
|
|
|
|
inputType
|
|
|
|
storefrontSearchPosition
|
|
|
|
valueRequired
|
|
|
|
values {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
type
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|