Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceQueries

Page

Authenticated · x-tenant · Auth rules: @storeos/rbac-catalog Requires a signed-in staff user. Needs the `Pages` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).

QUERYpage(where: CommonFindDocumentDto!): Pages

Authenticated · x-tenant · Auth rules: @storeos/rbac-catalog Requires a signed-in staff user. Needs the Pages read permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

where*

Returns

  1. page
_id*ID!
content?String
createdAt?DateTime

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

image?
isActive?Boolean
slug*String!
tenant?String
title*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 Page($where: CommonFindDocumentDto!) {  page(where: $where) {    _id    content    createdAt    image {      alt      external      fileAssetId      key      provider    }    isActive    slug    tenant    title    updatedAt  }}
Variables
{  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "page": {      "_id": "1",      "content": "string",      "createdAt": "<DateTime>",      "image": {        "alt": "string",        "external": "string",        "fileAssetId": "1",        "key": "string",        "provider": "CLOUDINARY"      },      "isActive": true,      "slug": "string",      "tenant": "string",      "title": "string",      "updatedAt": "<DateTime>"    }  }}