Storefront GraphQL APIReferenceQueries
Page By Slug
QUERY
pageBySlug(slug: String!): StorefrontPageArguments
slug*String!Returns
- pageBySlug
_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 PageBySlug($slug: String!) { pageBySlug(slug: $slug) { _id title slug content image { fileAssetId provider key external alt } isActive createdAt updatedAt }}{ "slug": "string"}{ "data": { "pageBySlug": { "_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>" } }}