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.
[Mutations] My Account > Newsletter Subsciption #56
Closed
Description
As a Magento developer, I need to build a functional My Account experience for customers via GraphQL so that I can build basic ecommerce experiences for shoppers on the front-end using only GraphQL.
GraphQL needs to provide sufficient mutations (ways to create/update/delete data) for a developer to build out the storefront My Account experience for a shopper.
Use cases:
- A logged-in shopper can change their newsletter subscription preference from the My Account Page
Acceptance criteria:
- GraphQL provides a mutation through which the current logged-in shopper can subscribe or unsubscribe from any newsletter
- Authentication is handled through a session cookie
- A guest shopper cannot change the account information for any user
- Changes are covered with web API functional tests. See \Magento\GraphQl\Catalog\ProductViewTest::testQueryAllFieldsSimpleProduct as an example.
My Account area impacted:
Note: functionality is closely related to issue #55 since they both modify the customer record