mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
implement account-tied carts and cart reconciliation
Signed-off-by: Loan Laux <loan@outgrow.io>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { cartQueryFragment } from '@framework/utils/queries/get-checkout-query'
|
||||
|
||||
const accountCartByAccountIdQuery = `
|
||||
query accountCartByAccountIdQuery($accountId: ID!, $shopId: ID!, $itemsAfterCursor: ConnectionCursor) {
|
||||
cart: accountCartByAccountId(accountId: $accountId, shopId: $shopId) {
|
||||
${cartQueryFragment}
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export default accountCartByAccountIdQuery
|
Reference in New Issue
Block a user