Storefront GraphQL APIReferenceQueries
Blogs
Requires a signed-in staff user. Needs the `Blogs` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).
QUERY
blogs(input: BlogListInput): BlogsWithPaginationRequires a signed-in staff user. Needs the Blogs read permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
input?Returns
- blogs
nodes?meta?Example Request
query Blogs { blogs { nodes { _id title content image { fileAssetId provider key external alt } isActive author { name email phoneNumber } categories createdAt updatedAt handle } meta { totalCount currentPage hasNextPage totalPages } }}{ "data": { "blogs": { "nodes": [ { "_id": "1", "title": "string", "content": "string", "image": { "fileAssetId": "1", "provider": "CLOUDINARY", "key": "string", "external": "string", "alt": "string" }, "isActive": true, "author": { "name": "string", "email": "string", "phoneNumber": "string" }, "categories": [ "string" ], "createdAt": "<DateTime>", "updatedAt": "<DateTime>", "handle": "string" } ], "meta": { "totalCount": 10.5, "currentPage": 10.5, "hasNextPage": true, "totalPages": 10.5 } } }}