schon/storefront/graphql/fragments/orders.fragment.ts

26 lines
No EOL
458 B
TypeScript

import {PRODUCT_FRAGMENT} from "~/graphql/fragments/products.fragment";
export const ORDER_FRAGMENT = gql`
fragment Order on OrderType {
totalPrice
uuid
status
buyTime
humanReadableId
orderProducts {
edges {
node {
uuid
notifications
attributes
quantity
status
product {
...Product
}
}
}
}
}
${PRODUCT_FRAGMENT}
`