-
Notifications
You must be signed in to change notification settings - Fork 683
/
orderRow.gql.js
49 lines (46 loc) · 1.53 KB
/
orderRow.gql.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { gql } from '@apollo/client';
export const GET_CONFIGURABLE_THUMBNAIL_SOURCE = gql`
query getConfigurableThumbnailSource {
# eslint-disable-next-line @graphql-eslint/require-id-when-available
storeConfig {
store_code
configurable_thumbnail_source
}
}
`;
export const GET_PRODUCT_THUMBNAILS_BY_URL_KEY = gql`
query GetProductThumbnailsByURLKey($urlKeys: [String!]!) {
products(filter: { url_key: { in: $urlKeys } }) {
# eslint-disable-next-line @graphql-eslint/require-id-when-available
items {
uid
sku
name
thumbnail {
label
url
}
url_key
# eslint-disable-next-line @graphql-eslint/require-id-when-available
... on ConfigurableProduct {
variants {
# eslint-disable-next-line @graphql-eslint/require-id-when-available
product {
sku
uid
name
thumbnail {
label
url
}
}
}
}
}
}
}
`;
export default {
getProductThumbnailsQuery: GET_PRODUCT_THUMBNAILS_BY_URL_KEY,
getConfigurableThumbnailSource: GET_CONFIGURABLE_THUMBNAIL_SOURCE
};