Blogs
Authenticated · x-tenant · Auth rules: @storeos/rbac-catalog Requires a signed-in staff user. Needs the `Blogs` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).
blogs(where: CommonPaginationDto): BlogsWithPagination!Authenticated · x-tenant · Auth rules: @storeos/rbac-catalog Requires a signed-in staff user. Needs the Blogs read permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
where?Returns
- blogs
meta?nodes?query Blogs { blogs { meta { currentPage hasNextPage totalCount totalPages } nodes { _id author { email name phoneNumber } categories content createdAt handle image { alt external fileAssetId key provider } isActive tenant title } }}{ "data": { "blogs": { "meta": { "currentPage": 10.5, "hasNextPage": true, "totalCount": 10.5, "totalPages": 10.5 }, "nodes": [ { "_id": "1", "author": { "email": "string", "name": "string", "phoneNumber": "string" }, "categories": [ "string" ], "content": "string", "createdAt": "<DateTime>", "handle": "string", "image": { "alt": "string", "external": "string", "fileAssetId": "1", "key": "string", "provider": "CLOUDINARY" }, "isActive": true, "tenant": "string", "title": "string" } ] } }}Blog Category QUERY
Requires a signed-in staff user. Needs the `Blogs` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).
Coupons QUERY
Only coupons that the user has access to will be returned. Requires a signed-in staff user. Needs the `Coupon` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).