Files
commerce/providers/saleor/utils/queries/collection-one.ts
Loui Nissen-Petersen 03dcf96fb1 rename folder
2021-07-16 16:58:03 +02:00

14 lines
373 B
TypeScript

import * as fragment from '../fragments'
export const CollectionOne = /* GraphQL */ `
query getProductsFromCollection($categoryId: ID!, $first: Int = 100, $channel: String = "default-channel") {
collection(id: $categoryId, channel: $channel) {
id
products(first: $first) {
...ProductConnection
}
}
}
${fragment.ProductConnection}
`