Storefront GraphQL APIReferenceQueries
Page
Requires a signed-in staff user. Needs the `Pages` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).
QUERY
page(id: String!): StorefrontPageRequires a signed-in staff user. Needs the Pages read permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
id*String!Returns
- page
_id*ID!title*String!slug*String!content?Stringimage?isActive?BooleancreatedAt?DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
updatedAt?DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
Example Request
query Page($id: String!) { page(id: $id) { _id title slug content image { fileAssetId provider key external alt } isActive createdAt updatedAt }}{ "id": "string"}{ "data": { "page": { "_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>" } }}