Skip to Content
StoreOSv0.27.1
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).

QUERYinventory__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

  1. 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    }  }}
Example Response
{  "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"        }      ]    }  }}