Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceQueries

Inventory__information Template

A single information template for the current tenant. 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__informationTemplate(where: CommonFindDocumentDto!): InformationTemplate!

A single information template for the current tenant. 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__informationTemplate
_id*ID!
commits?
createdAt?DateTime

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

description?String
name*String!
sections?
tenant?String
updatedAt?DateTime

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

Example Request
query Inventory__informationTemplate($where: CommonFindDocumentDto!) {  inventory__informationTemplate(where: $where) {    _id    commits {      action      commitedBy {        email        name        phoneNumber        referenceId      }      committedAt      note    }    createdAt    description    name    sections {      content      title    }    tenant    updatedAt  }}
Variables
{  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "inventory__informationTemplate": {      "_id": "1",      "commits": [        {          "action": "string",          "commitedBy": {            "email": "string",            "name": "string",            "phoneNumber": "string",            "referenceId": "1"          },          "committedAt": "<DateTime>",          "note": "string"        }      ],      "createdAt": "<DateTime>",      "description": "string",      "name": "string",      "sections": [        {          "content": "string",          "title": "string"        }      ],      "tenant": "string",      "updatedAt": "<DateTime>"    }  }}