Blog
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).
blog(where: CommonFindDocumentDto!): BlogsAuthenticated · 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
- blog
_id*ID!author?categories?[String!]content?StringcreatedAt?DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
handle?Stringimage?isActive?Booleantenant?Stringtitle*String!updatedAt?DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
query Blog($where: CommonFindDocumentDto!) { blog(where: $where) { _id author { avatar { alt external fileAssetId key provider } email name phoneNumber } categories content createdAt handle image { alt external fileAssetId key provider } isActive tenant title }}{ "where": { "and": [ { "and": [ { "and": [ { "and": [ {} ], "key": "string" } ], "key": "string" } ], "key": "string" } ], "key": "string" }}{ "data": { "blog": { "_id": "1", "author": { "avatar": { "alt": "string", "external": "string", "fileAssetId": "1", "key": "string", "provider": "CLOUDINARY" }, "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" } }}Billing__subscription QUERY
Current PGW subscription period (start/end) for the tenant, or null when none exists. Requires a signed-in staff user. Needs the `billing__Checkout` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).
Blog Author 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).