commerce/framework/reactioncommerce/utils/queries/account-cart-by-account-id.ts
Loan Laux 4ac8ea2df7
overall clean up
Signed-off-by: Loan Laux <loan@outgrow.io>
2021-04-28 22:18:54 +04:00

12 lines
379 B
TypeScript

import { cartQueryFragment } from '@framework/utils/queries/get-cart-query'
const accountCartByAccountIdQuery = `
query accountCartByAccountIdQuery($accountId: ID!, $shopId: ID!, $itemsAfterCursor: ConnectionCursor) {
cart: accountCartByAccountId(accountId: $accountId, shopId: $shopId) {
${cartQueryFragment}
}
}
`
export default accountCartByAccountIdQuery