commerce/packages/reactioncommerce/utils/queries/get-all-products-paths-query.ts
2022-03-09 21:41:08 +04:00

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