mirror of
https://github.com/vercel/commerce.git
synced 2025-05-19 07:56:59 +00:00
26 lines
540 B
TypeScript
26 lines
540 B
TypeScript
const getAllProductsPathsQuery = /* GraphQL */ `
|
|
query catalogItems(
|
|
$first: ConnectionLimitInt = 250
|
|
$sortBy: CatalogItemSortByField = updatedAt
|
|
$shopIds: [ID]!
|
|
) {
|
|
catalogItems(first: $first, sortBy: $sortBy, shopIds: $shopIds) {
|
|
pageInfo {
|
|
hasNextPage
|
|
hasPreviousPage
|
|
}
|
|
edges {
|
|
node {
|
|
... on CatalogItemProduct {
|
|
product {
|
|
slug
|
|
}
|
|
}
|
|
}
|
|
cursor
|
|
}
|
|
}
|
|
}
|
|
`
|
|
export default getAllProductsPathsQuery
|