mirror of
https://github.com/vercel/commerce.git
synced 2025-05-21 00:46:59 +00:00
14 lines
373 B
TypeScript
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}
|
|
`
|