|
1 |
| -# QuoteGraphQl |
| 1 | +# Magento_QuoteGraphQl module |
2 | 2 |
|
3 |
| -**QuoteGraphQl** provides type and resolver information for the GraphQl module |
| 3 | +This module provides type and resolver information for the GraphQl module |
4 | 4 | to generate quote (cart) information endpoints. Also provides endpoints for modifying a quote.
|
| 5 | + |
| 6 | +## Installation |
| 7 | + |
| 8 | +Before installing this module, note that the Magento_QuoteGraphQl is dependent on the following modules: |
| 9 | +- `Magento_CatalogGraphQl` |
| 10 | + |
| 11 | +This module does not introduce any database schema modifications or new data. |
| 12 | + |
| 13 | +For information about a module installation in Magento 2, see [Enable or disable modules](https://devdocs.magento.com/guides/v2.4/install-gde/install/cli/install-cli-subcommands-enable.html). |
| 14 | + |
| 15 | +## Extensibility |
| 16 | + |
| 17 | +Extension developers can interact with the Magento_QuoteDownloadableLinks module. For more information about the Magento extension mechanism, see [Magento plug-ins](https://devdocs.magento.com/guides/v2.4/extension-dev-guide/plugins.html). |
| 18 | + |
| 19 | +[The Magento dependency injection mechanism](https://devdocs.magento.com/guides/v2.4/extension-dev-guide/depend-inj.html) enables you to override the functionality of the Magento_QuoteDownloadableLinks module. |
| 20 | + |
| 21 | +## Additional information |
| 22 | + |
| 23 | +You can get more information about [GraphQl In Magento 2](https://devdocs.magento.com/guides/v2.4/graphql). |
| 24 | + |
| 25 | +### GraphQl Query |
| 26 | + |
| 27 | +- `cart` query - retrieve information about a particular cart. |
| 28 | +[Learn more about cart query](https://devdocs.magento.com/guides/v2.4/graphql/queries/cart.html). |
| 29 | + |
| 30 | +- `customerCart` query - returns the active cart for the logged-in customer. If the cart does not exist, the query creates one. |
| 31 | +[Learn more about customerCart query](https://devdocs.magento.com/guides/v2.4/graphql/queries/customer-cart.html). |
| 32 | + |
| 33 | +### GraphQl Mutation |
| 34 | + |
| 35 | +- `createEmptyCart` mutation - creates an empty shopping cart for a guest or logged in customer. |
| 36 | +[Learn more about createEmptyCart mutation](https://devdocs.magento.com/guides/v2.4/graphql/mutations/create-empty-cart.html). |
| 37 | + |
| 38 | +- `addSimpleProductsToCart` mutation - allows you to add any number of simple and group products to the cart at the same time. |
| 39 | + [Learn more about addSimpleProductsToCart mutation](https://devdocs.magento.com/guides/v2.4/graphql/mutations/add-simple-products.html). |
| 40 | + |
| 41 | +- `addVirtualProductsToCart` mutation - allows you to add multiple virtual products to the cart at the same time, but you cannot add other product types with this mutation. |
| 42 | + [Learn more about addVirtualProductsToCart mutation](https://devdocs.magento.com/guides/v2.4/graphql/mutations/add-virtual-products.html). |
| 43 | + |
| 44 | +- `applyCouponToCart` mutation - applies a pre-defined coupon code to the specified cart. |
| 45 | + [Learn more about applyCouponToCart mutation](https://devdocs.magento.com/guides/v2.4/graphql/mutations/apply-coupon.html). |
| 46 | + |
| 47 | +- `removeCouponFromCart` mutation - removes a previously-applied coupon from the cart. |
| 48 | + [Learn more about removeCouponFromCart mutation](https://devdocs.magento.com/guides/v2.4/graphql/mutations/remove-coupon.html). |
| 49 | + |
| 50 | +- `updateCartItems` mutation - allows you to modify items in the specified cart. |
| 51 | + [Learn more about updateCartItems mutation](https://devdocs.magento.com/guides/v2.4/graphql/mutations/update-cart-items.html). |
| 52 | + |
| 53 | +- `removeItemFromCart` mutation - deletes the entire quantity of a specified item from the cart. |
| 54 | + [Learn more about removeItemFromCart mutation](https://devdocs.magento.com/guides/v2.4/graphql/mutations/remove-item.html). |
| 55 | + |
| 56 | +- `setShippingAddressesOnCart` mutation - sets one or more shipping addresses on a specific cart. |
| 57 | + [Learn more about setShippingAddressesOnCart mutation](https://devdocs.magento.com/guides/v2.4/graphql/mutations/set-shipping-address.html). |
| 58 | + |
| 59 | +- `setBillingAddressOnCart` mutation - sets the billing address for a specific cart. |
| 60 | + [Learn more about setBillingAddressOnCart mutation](https://devdocs.magento.com/guides/v2.4/graphql/mutations/set-billing-address.html). |
| 61 | + |
| 62 | +- `setShippingMethodsOnCart` mutation - sets one or more delivery methods on a cart. |
| 63 | + [Learn more about setShippingMethodsOnCart mutation](https://devdocs.magento.com/guides/v2.4/graphql/mutations/set-shipping-method.html). |
| 64 | + |
| 65 | +- `setPaymentMethodOnCart` mutation - defines which payment method to apply to the cart. |
| 66 | + [Learn more about setPaymentMethodOnCart mutation](https://devdocs.magento.com/guides/v2.4/graphql/mutations/set-payment-method.html). |
| 67 | + |
| 68 | +- `setGuestEmailOnCart` mutation - assigns email to the guest cart. |
| 69 | + [Learn more about setGuestEmailOnCart mutation](https://devdocs.magento.com/guides/v2.4/graphql/mutations/set-guest-email.html). |
| 70 | + |
| 71 | +- `setPaymentMethodAndPlaceOrder` mutation - sets the cart payment method and converts the cart into an order. **This mutation has been deprecated**. Use the `setPaymentMethodOnCart` and `placeOrder` mutations instead. |
| 72 | + [Learn more about setPaymentMethodAndPlaceOrder mutation](https://devdocs.magento.com/guides/v2.4/graphql/mutations/set-payment-place-order.html). |
| 73 | + |
| 74 | +- `mergeCarts` mutation - transfers the contents of a guest cart into the cart of a logged-in customer. |
| 75 | + [Learn more about mergeCarts mutation](https://devdocs.magento.com/guides/v2.4/graphql/mutations/merge-carts.html). |
| 76 | + |
| 77 | +- `placeOrder` mutation - converts the cart into an order and returns an order ID. |
| 78 | + [Learn more about placeOrder mutation](https://devdocs.magento.com/guides/v2.4/graphql/mutations/place-order.html). |
| 79 | + |
| 80 | +- `addProductsToCart` mutation - adds any type of product to the shopping cart. |
| 81 | + [Learn more about addProductsToCart mutation](https://devdocs.magento.com/guides/v2.4/graphql/mutations/add-products-to-cart.html). |
| 82 | + |
0 commit comments