Skip to Content
StoreOSv0.27.1
Storefront GraphQL APIReferenceQueries

Pages

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

QUERYpages(input: PageListInput): PagesWithPagination

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

input?

Returns

  1. pages
nodes?
meta?
Example Request
query Pages {  pages {    nodes {      _id      title      slug      content      image {        fileAssetId        provider        key        external        alt      }      isActive      createdAt      updatedAt    }    meta {      totalCount      currentPage      hasNextPage      totalPages    }  }}
Example Response
{  "data": {    "pages": {      "nodes": [        {          "_id": "1",          "title": "string",          "slug": "string",          "content": "string",          "image": {            "fileAssetId": "1",            "provider": "CLOUDINARY",            "key": "string",            "external": "string",            "alt": "string"          },          "isActive": true,          "createdAt": "<DateTime>",          "updatedAt": "<DateTime>"        }      ],      "meta": {        "totalCount": 10.5,        "currentPage": 10.5,        "hasNextPage": true,        "totalPages": 10.5      }    }  }}