Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceQueries

Blog Category

Requires a signed-in staff user. Needs the `Blogs` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).

QUERYblogCategory(where: CommonFindDocumentDto!): BlogCategory

Requires a signed-in staff user. Needs the Blogs read permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

where*

Returns

  1. blogCategory
_id*ID!
createdAt?DateTime

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

description?String
isActive?Boolean
name*String!
slug?String
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 BlogCategory($where: CommonFindDocumentDto!) {  blogCategory(where: $where) {    _id    createdAt    description    isActive    name    slug    tenant    updatedAt  }}
Variables
{  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "blogCategory": {      "_id": "1",      "createdAt": "<DateTime>",      "description": "string",      "isActive": true,      "name": "string",      "slug": "string",      "tenant": "string",      "updatedAt": "<DateTime>"    }  }}