Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const cartItemFragment = gql`
uid
product {
...cartItemProduct
uid
}
quantity
prices {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export const cartTotalsFragment = gql`
selected_shipping_method {
...selectedShippingMethod
}
street
}
street
}
prices {
...prices
Expand Down
5 changes: 5 additions & 0 deletions libs/cart/driver/magento/src/queries/fragments/cart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const cartFragment = gql`
selected_shipping_method {
...selectedShippingMethod
}
street
}
available_shipping_methods {
amount {
Expand All @@ -32,15 +33,19 @@ export const cartFragment = gql`
carrier_title
method_title
}
street
}
items {
...cartItem
uid
}
available_payment_methods {
...availablePaymentMethod
code
}
selected_payment_method {
...selectedPaymentMethod
code
}
applied_coupons {
...cartCoupon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const getSelectedPaymentMethod = (extraCartFragments: DocumentNode[] = []
cart(cart_id: $cartId) {
selected_payment_method {
...selectedPaymentMethod
code
}
${daffBuildFragmentNameSpread(...extraCartFragments)}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const getSelectedShippingMethod = (extraCartFragments: DocumentNode[] = [
selected_shipping_method {
...selectedShippingMethod
}
street
}
${daffBuildFragmentNameSpread(...extraCartFragments)}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const getShippingAddress = (extraCartFragments: DocumentNode[] = []) => g
cart(cart_id: $cartId) {
shipping_addresses {
...cartAddress
street
}
email
${daffBuildFragmentNameSpread(...extraCartFragments)}
Expand Down
1 change: 1 addition & 0 deletions libs/cart/driver/magento/src/queries/list-items/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const listCartItems = (extraCartFragments: DocumentNode[] = []) => gql<Ma
cart(cart_id: $cartId) {
items {
...cartItem
uid
}
${daffBuildFragmentNameSpread(...extraCartFragments)}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const listPaymentMethods = (extraCartFragments: DocumentNode[] = []) => g
cart(cart_id: $cartId) {
available_payment_methods {
...availablePaymentMethod
code
}
${daffBuildFragmentNameSpread(...extraCartFragments)}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export const listShippingMethods = (extraCartFragments: DocumentNode[] = []) =>
street
available_shipping_methods {
...availableShippingMethod
carrier_code
method_code
}
}
${daffBuildFragmentNameSpread(...extraCartFragments)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ query ${DAFF_MAGENTO_GET_CATEGORY_AND_PRODUCTS_QUERY_NAME}($categoryFilters: Cat
{
categoryList(filters: $categoryFilters) {
...categoryTree
uid
${daffBuildFragmentNameSpread(...extraCategoryFragments)}
}
products(filter: $productFilter, search: $search, pageSize: $pageSize, currentPage: $currentPage, sort: $sort)
{
total_count
items {
...product
uid
${daffBuildFragmentNameSpread(...extraProductFragments)}
}
page_info {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ describe('Navigation | Driver | Magento | getCategoryNodeFragment', () => {
query TestQuery {
categoryList {
...recursiveCategoryNode
uid
}
}
${fragment}
Expand Down Expand Up @@ -134,6 +135,7 @@ describe('Navigation | Driver | Magento | getCategoryNodeFragment', () => {
query TestQuery {
categoryList {
...recursiveCategoryNode
uid
}
}
${fragment}
Expand Down Expand Up @@ -176,6 +178,7 @@ describe('Navigation | Driver | Magento | getCategoryNodeFragment', () => {
query TestQuery {
categoryList {
...recursiveCategoryNode
uid
}
}
${fragment}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export function daffMagentoGetCategoryTree(depth: number = 3, extraFragments: Ar
query ${DAFF_MAGENTO_GET_CATEGORY_TREE_QUERY_NAME}($filters: CategoryFilterInput!){
categoryList(filters: $filters) {
...recursiveCategoryNode
uid
}
}
${getCategoryNodeFragment(depth, extraFragments)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ fragment magentoBundledProduct on BundleProduct {
}
}
}
uid
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const magentoConfigurableProductFragment = (extraVariantFragments: Array<
label
value_index
}
uid
}
variants {
${daffBuildFragmentNameSpread(...extraVariantFragments)}
Expand All @@ -42,8 +43,10 @@ export const magentoConfigurableProductFragment = (extraVariantFragments: Array<
url
label
}
uid
}
}
uid
}
${daffBuildFragmentDefinition(...extraVariantFragments)}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const magentoProductPageFragment = gql`
description {
html
}
uid
}
${magentoProductFragment}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const magentoProductFragment = gql`
short_description {
html
}
uid
}
${magentoProductPreviewFragment}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const getAllProducts = (extraProductFragments: DocumentNode[] = []) => gq
total_count
items {
...magentoProductPage
uid
${daffBuildFragmentNameSpread(...extraProductFragments)}
}
page_info {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const getProductByUrl = (extraProductFragments: DocumentNode[] = []) => g
route(url: $url) {
... on ProductInterface {
...magentoProductPage
uid
${daffBuildFragmentNameSpread(...extraProductFragments)}
}
}
Expand Down
1 change: 1 addition & 0 deletions libs/product/driver/magento/src/queries/get-product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const getProduct = (extraProductFragments: DocumentNode[] = []) => gql`
}){
items {
...magentoProductPage
uid
${daffBuildFragmentNameSpread(...extraProductFragments)}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ interface MyMagentoProduct extends MagentoProduct {
const myProductFragment = gql`
fragment MyProductFragment on ProductInterface {
updated_at
uid
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ export const magentoRelatedProductsFragment = (extraProductFragments: DocumentNo
fragment relatedProducts on ProductInterface {
related_products {
...magentoProductPreview
uid
${daffBuildFragmentNameSpread(...extraProductFragments)}
}
uid
}
${magentoProductPreviewFragment}
${daffBuildFragmentDefinition(...extraProductFragments)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const getProductReviews = gql`
...magentoSearchResultPageInfo
}
}
uid
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const categorySearch = () => gql`
}, pageSize: $pageSize) {
items {
...categoryTree
uid
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const magentoSearchCategoryResultFragment = gql`
products {
items {
sku
uid
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const daffSearchProductIncrementalQuery = (extraProductFragments: Documen
products(search: $search, pageSize: $pageSize) {
items {
...product
uid
${daffBuildFragmentNameSpread(...extraProductFragments)}
}
total_count
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const productSearch = (extraProductFragments: DocumentNode[] = []) => gql
products(filter: $filter, search: $search, pageSize: $pageSize, currentPage: $currentPage, sort: $sort) {
items {
...product
uid
${daffBuildFragmentNameSpread(...extraProductFragments)}
}
page_info {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ export const magentoUpsellProductsFragment = (extraProductFragments: DocumentNod
fragment upsellProducts on ProductInterface {
upsell_products {
...magentoProductPreview
uid
${daffBuildFragmentNameSpread(...extraProductFragments)}
}
uid
}
${magentoProductPreviewFragment}
${daffBuildFragmentDefinition(...extraProductFragments)}
Expand Down
Loading