mirror of
https://github.com/vercel/commerce.git
synced 2025-06-20 06:01:21 +00:00
18 lines
387 B
TypeScript
18 lines
387 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}
|
|
`
|