Links between Wishlist Module and Other Modules
This document showcases the module links defined between the Wishlist Module and other Commerce Modules.Summary
The Wishlist Module has the following links to other modules:| First Data Model | Second Data Model | Type | Description |
|---|---|---|---|
| Customer | Wishlist | Stored - one-to-one | Associates a customer with their wishlist |
| Wishlist | Product | Stored - one-to-many | Associates wishlist items with products |
Customer Module
Mercur defines a link between the Customer Module’sCustomer data model and the Wishlist Module’s Wishlist data model. This allows each customer to have a wishlist for saving products they’re interested in.
Retrieve with Query
To retrieve the wishlist of a customer with Query, passwishlist.* in fields:
- query.graph
- useQueryGraphStep
Manage with Link
To manage the wishlist of a customer, use Link:- link.create
- createRemoteLinkStep
Product Module
Mercur defines a link between the Wishlist Module’sWishlist data model and the Product Module’s Product data model. This allows wishlist items to reference specific products that customers want to save for later.
Retrieve with Query
To retrieve the products in a wishlist with Query, passproduct.* in fields:
- query.graph
- useQueryGraphStep
Manage with Link
To manage the products in a wishlist, use Link:- link.create
- createRemoteLinkStep
Both links have
deleteCascade enabled, meaning when a customer is deleted, their wishlist and all wishlist items are automatically deleted.