Skip to main content

Links between Request Module and Other Modules

This document showcases the module links defined between the Request Module and other Commerce Modules.

Summary

The Request Module has the following links to other modules:
First Data ModelSecond Data ModelTypeDescription
SellerRequestStored - one-to-manyAssociates a seller with their submitted requests for marketplace resources

Seller Module

Mercur defines a link between the Seller Module’s Seller data model and the Request Module’s Request data model. This allows sellers to submit requests for creating new marketplace resources (products, categories, collections, etc.) that require admin approval.

Retrieve with Query

To retrieve the requests of a seller with Query, pass request.* in fields:
  • query.graph
  • useQueryGraphStep
const { data: sellers } = await query.graph({
  entity: "seller",
  fields: [
    "*",
    "request.*",
  ],
})

// sellers[0].request
To manage the requests of a seller, use Link: