Links between Review Module and Other Modules
This document showcases the module links defined between the Review Module and other Commerce Modules.Summary
The Review Module has the following links to other modules:| First Data Model | Second Data Model | Type | Description |
|---|---|---|---|
| Customer | Review | Stored - one-to-many | Associates a customer with their submitted reviews |
| Order | Review | Stored - one-to-many | Associates an order with its reviews |
| Product | Review | Stored - one-to-many | Associates a product with its reviews |
| Seller | Review | Stored - one-to-many | Associates a seller with reviews about them |
Customer Module
Mercur defines a link between the Customer Module’sCustomer data model and the Review Module’s Review data model. This allows tracking all reviews submitted by a specific customer.
Retrieve with Query
To retrieve the reviews of a customer with Query, passreview.* in fields:
- query.graph
- useQueryGraphStep
Manage with Link
To manage the reviews of a customer, use Link:- link.create
- createRemoteLinkStep
Order Module
Mercur defines a link between the Order Module’sOrder data model and the Review Module’s Review data model. This ensures customers can only review products or sellers from orders they’ve actually purchased.
Retrieve with Query
To retrieve the reviews of an order with Query, passreview.* in fields:
- query.graph
- useQueryGraphStep
Manage with Link
To manage the reviews of an order, use Link:- link.create
- createRemoteLinkStep
Product Module
Mercur defines a link between the Product Module’sProduct data model and the Review Module’s Review data model. This allows products to have multiple customer reviews for ratings and feedback.
Retrieve with Query
To retrieve the reviews of a product with Query, passreview.* in fields:
- query.graph
- useQueryGraphStep
Manage with Link
To manage the reviews of a product, use Link:- link.create
- createRemoteLinkStep
Seller Module
Mercur defines a link between the Seller Module’sSeller data model and the Review Module’s Review data model. This allows sellers to receive customer reviews about their service and performance.
Retrieve with Query
To retrieve the reviews of a seller with Query, passreview.* in fields:
- query.graph
- useQueryGraphStep
Manage with Link
To manage the reviews of a seller, use Link:- link.create
- createRemoteLinkStep