Skip to main content
object

Requires unauthenticated_read_content access scope.

A blog container for Article objects. Stores can have multiple blogs, for example to organize content by topic or purpose.

Each blog provides access to its articles, contributing ArticleAuthor objects, and SEO information. You can retrieve articles individually by handle or as a paginated list.

•Article

Find an article by its handle.

Arguments

•String!
required

The handle of the article.


•ArticleConnection!
non-null

List of the blog's articles.

Arguments

•Int

Returns up to the first n elements from the list.

•String

Returns the elements that come after the specified cursor.

•Int

Returns up to the last n elements from the list.

•String

Returns the elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.

•ArticleSortKeys
Default:ID

Sort the underlying list by the given key.

•String

Apply one or multiple filters to the query. Refer to the detailed search syntax for more information about using filters.

•
Anchor to blog_title
•
Anchor to created_at
•
•
Anchor to tag_not
•
Anchor to updated_at
•

•[ArticleAuthor!]!
non-null

The authors who have contributed to the blog.

•String!
non-null

A human-friendly unique string for the Blog automatically generated from its title.

•ID!
non-null

A globally-unique ID.

•Metafield

A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.

Arguments

•String

The container the metafield belongs to. If omitted, the app-reserved namespace will be used.

•String!
required

The identifier for the metafield.


•[Metafield]!
non-null

A list of custom fields that a merchant associates with a Shopify resource.

Arguments

•[HasMetafieldsIdentifier!]!
required

The list of metafields to retrieve by namespace and key.

The input must not contain more than 250 values.


•URL

The URL used for viewing the resource on the shop's Online Store. Returns null if the resource is currently not published to the Online Store sales channel.

•SEO

The blog's SEO information.

•String!
non-null

The blogs’s title.


Was this section helpful?

•query

Retrieves a Blog by its handle or ID. A blog organizes Article objects for the online store and includes author information, SEO settings, and custom Metafield objects.

Arguments

•String

The handle of the Blog.

•ID

The ID of the Blog.


•query

Returns a paginated list of the shop's Blog objects. Each blog serves as a container for Article objects.

Arguments

•Int

Returns up to the first n elements from the list.

•String

Returns the elements that come after the specified cursor.

•Int

Returns up to the last n elements from the list.

•String

Returns the elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.

•BlogSortKeys
Default:ID

Sort the underlying list by the given key.

•String

Apply one or multiple filters to the query. Refer to the detailed search syntax for more information about using filters.

Anchor to created_at
•
•
•
Anchor to updated_at
•

•query
Deprecated

Arguments

•String!
required

The handle of the blog.



Was this section helpful?

•interface

Was this section helpful?