Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceQueries

Blog Categories

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

QUERYblogCategories(where: CommonPaginationDto): BlogCategoryWithPagination!

Only blog categories that the user has access to will be returned. 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. blogCategories
meta?
nodes?
Example Request
query BlogCategories {  blogCategories {    meta {      currentPage      hasNextPage      totalCount      totalPages    }    nodes {      _id      createdAt      description      isActive      name      slug      tenant      updatedAt    }  }}
Example Response
{  "data": {    "blogCategories": {      "meta": {        "currentPage": 10.5,        "hasNextPage": true,        "totalCount": 10.5,        "totalPages": 10.5      },      "nodes": [        {          "_id": "1",          "createdAt": "<DateTime>",          "description": "string",          "isActive": true,          "name": "string",          "slug": "string",          "tenant": "string",          "updatedAt": "<DateTime>"        }      ]    }  }}