Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceQueries

Inventory__variant Templates

Only variant templates that the user has access to will be returned. Requires a signed-in staff user. Needs the `inventory__VariantTemplate` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).

QUERYinventory__variantTemplates(where: CommonPaginationDto): VariantTemplatesWithPagination!

Only variant templates that the user has access to will be returned. Requires a signed-in staff user. Needs the inventory__VariantTemplate read permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

where?

Returns

  1. inventory__variantTemplates
meta?
nodes?
Example Request
query Inventory__variantTemplates {  inventory__variantTemplates {    meta {      currentPage      hasNextPage      totalCount      totalPages    }    nodes {      _id      commits {        action        committedAt        note      }      configs {        attributes        name      }      createdAt      description      name      tenant      updatedAt    }  }}
Example Response
{  "data": {    "inventory__variantTemplates": {      "meta": {        "currentPage": 10.5,        "hasNextPage": true,        "totalCount": 10.5,        "totalPages": 10.5      },      "nodes": [        {          "_id": "1",          "commits": [            {              "action": "string",              "committedAt": "<DateTime>",              "note": "string"            }          ],          "configs": [            {              "attributes": [                "string"              ],              "name": "string"            }          ],          "createdAt": "<DateTime>",          "description": "string",          "name": "string",          "tenant": "string",          "updatedAt": "<DateTime>"        }      ]    }  }}