This repository was archived by the owner on Dec 19, 2019. It is now read-only.
This repository was archived by the owner on Dec 19, 2019. It is now read-only.
[Cart Operations] Fetch guest shopper cart #8
Closed
Description
As a Magento developer, I need to fetch the shopping cart via GraphQL so that I can build basic ecommerce experiences for shoppers on the front-end using only GraphQL.
As an initial iteration of GraphQL support for cart, expose guest cart query using resolver based on service contracts.
References:
- How to expose a new query via GraphQL in Magento
- \Magento\Quote\Api\GuestCartRepositoryInterface::get
Acceptance Criteria:
- It is possible, using GraphQL, to query information about the cart created via REST APIs
- Changes are covered with web API functional tests. See \Magento\GraphQl\Catalog\ProductViewTest::testQueryAllFieldsSimpleProduct as an example.
- Appropriate documentation is updated in DevDocs