Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Requesting price summary fragment in shipping info mutation. #2445

Merged
merged 9 commits into from
Jun 3, 2020
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import gql from 'graphql-tag';

import { ShippingInformationFragment } from '../shippingInformationFragments.gql';
import { ShippingMethodsCheckoutFragment } from '../../ShippingMethod/shippingMethodFragments.gql';
import { PriceSummaryFragment } from '../../../CartPage/PriceSummary/priceSummaryFragments';

export const SET_GUEST_SHIPPING_MUTATION = gql`
mutation SetGuestShipping(
Expand All @@ -26,11 +27,13 @@ export const SET_GUEST_SHIPPING_MUTATION = gql`
id
...ShippingInformationFragment
...ShippingMethodsCheckoutFragment
...PriceSummaryFragment
}
}
}
${ShippingInformationFragment}
${ShippingMethodsCheckoutFragment}
${PriceSummaryFragment}
`;

export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import gql from 'graphql-tag';

import { ShippingInformationFragment } from './shippingInformationFragments.gql';
import { ShippingMethodsCheckoutFragment } from '../ShippingMethod/shippingMethodFragments.gql';
import { PriceSummaryFragment } from '../../CartPage/PriceSummary/priceSummaryFragments';

export const GET_SHIPPING_INFORMATION = gql`
query GetShippingInformation($cartId: String!) {
Expand Down Expand Up @@ -34,11 +35,13 @@ export const SET_CUSTOMER_ADDRESS_ON_CART = gql`
id
...ShippingInformationFragment
...ShippingMethodsCheckoutFragment
...PriceSummaryFragment
}
}
}
${ShippingInformationFragment}
${ShippingMethodsCheckoutFragment}
${PriceSummaryFragment}
`;

export default {
Expand Down