Core GraphQL APIReferenceQueries
Inventory__product Reviews
Requires a signed-in staff user. Needs the `inventory__ProductReview` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).
QUERY
inventory__productReviews(where: CommonPaginationDto): AdminProductReviewsWithPagination!Requires a signed-in staff user. Needs the inventory__ProductReview read permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
where?Returns
- inventory__productReviews
meta?nodes?Example Request
query Inventory__productReviews { inventory__productReviews { meta { currentPage hasNextPage totalCount totalPages } nodes { _id content createdAt customerEmail customerId customerName images { alt external fileAssetId key provider } invoiceId productHandle } }}{ "data": { "inventory__productReviews": { "meta": { "currentPage": 10.5, "hasNextPage": true, "totalCount": 10.5, "totalPages": 10.5 }, "nodes": [ { "_id": "1", "content": "string", "createdAt": "<DateTime>", "customerEmail": "string", "customerId": "1", "customerName": "string", "images": [ { "alt": "string", "external": "string", "fileAssetId": "1", "key": "string", "provider": "CLOUDINARY" } ], "invoiceId": "1", "productHandle": "string" } ] } }}Inventory__product Review QUERY
Requires a signed-in staff user. Needs the `inventory__ProductReview` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).
Inventory__products QUERY
Requires a signed-in staff user. Needs the `inventory__Product` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).