mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Add Reaction Commerce provider
Signed-off-by: Loan Laux <loan@outgrow.io>
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
export const catalogItemsConnection = `
|
||||
pageInfo {
|
||||
hasNextPage
|
||||
hasPreviousPage
|
||||
}
|
||||
edges {
|
||||
node {
|
||||
_id
|
||||
... on CatalogItemProduct {
|
||||
product {
|
||||
_id
|
||||
title
|
||||
slug
|
||||
description
|
||||
vendor
|
||||
isLowQuantity
|
||||
isSoldOut
|
||||
isBackorder
|
||||
shop {
|
||||
currency {
|
||||
code
|
||||
}
|
||||
}
|
||||
pricing {
|
||||
currency {
|
||||
code
|
||||
}
|
||||
displayPrice
|
||||
minPrice
|
||||
maxPrice
|
||||
}
|
||||
primaryImage {
|
||||
URLs {
|
||||
thumbnail
|
||||
small
|
||||
medium
|
||||
large
|
||||
original
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}`
|
||||
|
||||
export const catalogItemsFragment = `
|
||||
catalogItems(
|
||||
first: $first
|
||||
sortBy: $sortBy
|
||||
tagIds: $tagIds
|
||||
shopIds: $shopIds
|
||||
) {
|
||||
${catalogItemsConnection}
|
||||
}
|
||||
`
|
||||
|
||||
const catalogItemsQuery = /* GraphQL */ `
|
||||
query catalogItems(
|
||||
$first: ConnectionLimitInt = 250
|
||||
$sortBy: CatalogItemSortByField = updatedAt
|
||||
$tagIds: [ID]
|
||||
$shopIds: [ID]!
|
||||
) {
|
||||
${catalogItemsFragment}
|
||||
}
|
||||
`
|
||||
export default catalogItemsQuery
|
Reference in New Issue
Block a user