Next Commerce

product

Query for product

Arguments

id·ID!non-nullscalar

The ID of the object

Returns

ProductNodeobject
isPublic·Boolean!non-nullscalar

Show this product in search results and catalogue listings.

parent·ProductNodeobject

Only choose a parent product if you're creating a child product. For example if this is a size 4 of a particular t-shirt. Leave blank if this is a stand-alone product (i.e. there is only one version of this product).

slug·String!non-nullscalar
description·String!non-nullscalar
metaTitle·Stringscalar
metaDescription·Stringscalar
recommendedProducts·ProductNodeConnection!non-nullobject

These are products that are recommended to accompany the main product.

rating·Floatscalar
dateCreated·DateTime!non-nullscalar
dateUpdated·DateTime!non-nullscalar
isDiscountable·Boolean!non-nullscalar

This flag indicates if this product can be used in an offer or not

title·Stringscalar
excerpt·String!non-nullscalar
upc·Stringscalar

Universal Product Code

structure·Stringscalar
ranking·Int!non-nullscalar

The highest ranking are shown first

attributes·[AttributeNode]listobject
variantAttributes·[VariantAttributeNode!]listobject
images·[ImageNode]listobject
children·[ProductVariantNode!]listobject
id·ID!non-nullscalar

The ID of the object

pk·Intscalar
requiresShipping·Booleanscalar
purchaseInfo·PurchaseInfoNodeobject
primaryImage·ImageNodeobject
subscriptionInfo·SubscriptionInfoNodeobject
url·Stringscalar
metadata·GenericScalarscalar
Query Reference
query Product($id: ID!) {  product(id: $id) {    isPublic    slug    description    metaTitle    metaDescription    rating    dateCreated    dateUpdated    isDiscountable    title  }}
Variables
{  "id": "<id>"}
JSON Response
{  "data": {    "product": {      "isPublic": true,      "parent": null,      "slug": "<your-value>",      "description": "<your-value>",      "metaTitle": "<your-value>",      "metaDescription": "<your-value>",      "recommendedProducts": {        "pageInfo": {          "hasNextPage": true,          "hasPreviousPage": true,          "startCursor": "<your-value>",          "endCursor": "<your-value>"        },        "edges": [          {            "node": null,            "cursor": "<your-value>"          }        ]      },      "rating": 1,      "dateCreated": "2026-01-01T00:00:00Z",      "dateUpdated": "2026-01-01T00:00:00Z",      "isDiscountable": true,      "title": "<your-value>",      "excerpt": "<your-value>",      "upc": "<your-value>",      "structure": "<your-value>",      "ranking": 1,      "attributes": [        {          "name": "<your-value>",          "code": "<your-value>",          "pk": 1,          "type": "<your-value>",          "values": {}        }      ],      "variantAttributes": [        {          "name": "<your-value>",          "code": "<your-value>",          "values": {}        }      ],      "images": [        {          "id": 1,          "url": "<your-value>"        }      ],      "children": [        {          "isPublic": true,          "parent": null,          "slug": "<your-value>",          "description": "<your-value>",          "metaTitle": "<your-value>",          "metaDescription": "<your-value>",          "recommendedProducts": {            "pageInfo": {              "hasNextPage": "...",              "hasPreviousPage": "...",              "startCursor": "...",              "endCursor": "..."            },            "edges": [              {                "node": "...",                "cursor": "..."              }            ]          },          "rating": 1,          "dateCreated": "2026-01-01T00:00:00Z",          "dateUpdated": "2026-01-01T00:00:00Z",          "isDiscountable": true,          "title": "<your-value>",          "excerpt": "<your-value>",          "upc": "<your-value>",          "structure": "<your-value>",          "ranking": 1,          "id": "<id>",          "pk": 1,          "requiresShipping": true,          "purchaseInfo": {            "availableForSale": true,            "availability": "<your-value>",            "price": {              "currency": "...",              "value": "...",              "format": "..."            },            "priceRetail": {              "currency": "...",              "value": "...",              "format": "..."            },            "priceSubscription": {              "currency": "...",              "value": "...",              "format": "..."            },            "sku": "<your-value>"          },          "images": [            {              "id": 1,              "url": "<your-value>"            }          ],          "primaryImage": {            "id": 1,            "url": "<your-value>"          },          "subscriptionInfo": {            "interval": "<your-value>",            "intervalCount": [              1            ]          },          "url": "<your-value>",          "metadata": {},          "variantAttributeValues": [            {              "name": "<your-value>",              "code": "<your-value>",              "pk": 1,              "text": "<your-value>"            }          ]        }      ],      "id": "<id>",      "pk": 1,      "requiresShipping": true,      "purchaseInfo": {        "availableForSale": true,        "availability": "<your-value>",        "price": {          "currency": "<your-value>",          "value": "10.00",          "format": "<your-value>"        },        "priceRetail": {          "currency": "<your-value>",          "value": "10.00",          "format": "<your-value>"        },        "priceSubscription": {          "currency": "<your-value>",          "value": "10.00",          "format": "<your-value>"        },        "sku": "<your-value>"      },      "primaryImage": {        "id": 1,        "url": "<your-value>"      },      "subscriptionInfo": {        "interval": "<your-value>",        "intervalCount": [          1        ]      },      "url": "<your-value>",      "metadata": {}    }  }}