Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceQueries

Inventory__product

Only product that the user has access to will be returned. 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).

QUERYinventory__product(where: CommonFindDocumentDto!): Product!

Only product that the user has access to will be returned. 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).

Arguments

where*

Returns

  1. inventory__product
_id*ID!
allowBackorder?Boolean
buyingPrice?Float
collections?
commits?
comparingPrice?Float
createdAt?DateTime

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

downloadableFiles?
gallery?
handle?String
informationSections?
isDemo?Boolean
isInStock?Boolean
longDescription?String
lowStockThreshold?Float
price?Float
shortDescription?String
status?ProductStatus

Product status

Value inDRAFTPUBLISHED
technicalSpecs?
tenant?String
thumbnail?
title*String!
trackInventory?Boolean
type?ProductType

Product type

Value inDOWNLOADABLEPHYSICALVIRTUAL
updatedAt?DateTime

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

variantConfigs?
variants?
vendors?
Example Request
query Inventory__product($where: CommonFindDocumentDto!) {  inventory__product(where: $where) {    _id    allowBackorder    buyingPrice    collections {      _id      children {        _id        createdAt        description        isDemo        level        name        parentCategory        slug      }      commits {        action        committedAt        note      }      createdAt      description      isDemo      level      name      parentCategory      slug    }    commits {      action      commitedBy {        email        name        phoneNumber        referenceId      }      committedAt      note    }    comparingPrice    createdAt    handle    isDemo    isInStock  }}
Variables
{  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "inventory__product": {      "_id": "1",      "allowBackorder": true,      "buyingPrice": 10.5,      "collections": [        {          "_id": "1",          "children": [            {              "_id": "1",              "createdAt": "<DateTime>",              "description": "string",              "isDemo": true,              "level": 10,              "name": "string",              "parentCategory": "1",              "slug": "string"            }          ],          "commits": [            {              "action": "string",              "committedAt": "<DateTime>",              "note": "string"            }          ],          "createdAt": "<DateTime>",          "description": "string",          "isDemo": true,          "level": 10,          "name": "string",          "parentCategory": "1",          "slug": "string"        }      ],      "commits": [        {          "action": "string",          "commitedBy": {            "email": "string",            "name": "string",            "phoneNumber": "string",            "referenceId": "1"          },          "committedAt": "<DateTime>",          "note": "string"        }      ],      "comparingPrice": 10.5,      "createdAt": "<DateTime>",      "handle": "string",      "isDemo": true,      "isInStock": true    }  }}