Core GraphQL APIReferenceQueries
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).
QUERY
pages(where: CommonPaginationDto): PagesWithPagination!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
- pages
meta?nodes?Example Request
query Pages { pages { meta { currentPage hasNextPage totalCount totalPages } nodes { _id content createdAt image { alt external fileAssetId key provider } isActive slug tenant title updatedAt } }}{ "data": { "pages": { "meta": { "currentPage": 10.5, "hasNextPage": true, "totalCount": 10.5, "totalPages": 10.5 }, "nodes": [ { "_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>" } ] } }}