Skip to Content

Blog

Represents a blog object, including its articles and related information.

Type Definition

type Blog { name: String commentsAreEnabled: Boolean commentsRequireAccount: Boolean commentsRequireApproval: Boolean metafields: [Metafield]! metafield: Metafield }

Fields

FieldTypeDescription
nameStringThe name of the blog.
commentsAreEnabledBooleanWhether commenting is enabled for this blog.
commentsRequireAccountBooleanWhether commenting requires a customer account.
commentsRequireApprovalBooleanWhether comments require approval for this blog.
metafields[Metafield]!Metafields stored on this resource.
metafieldMetafieldA single metafield by namespace and key.

Relationships

The Blog type is used to represent blog data within the storefront API. It contains metafield information through the metafields and metafield fields, which reference the Metafield type. Blogs can be queried directly via the blog query and are also accessible through the Article type via the blog field.

Example

{ blog(handle: "announcements") { name commentsAreEnabled commentsRequireAccount commentsRequireApproval metafields(first: 10) { edges { node { namespace key value } } } } }

Implements

None