Skip to main content
object

Requires unauthenticated_read_content access scope.

A post that belongs to a Blog. Each article includes content with optional HTML formatting, an excerpt for previews, ArticleAuthor information, and an associated Image.

Articles can be organized with tags and include SEO metadata. You can manage comments when the blog's comment policy enables them.

•ArticleAuthor

The article's author.

•Blog!
non-null

The blog that the article belongs to.

•CommentConnection!
non-null

List of comments posted on the article.

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.


•String!
non-null

Stripped content of the article, single line with HTML tags removed.

Arguments

•Int

Truncates a string after the given length.


•HTML!
non-null

The content of the article, complete with HTML formatting.

•String

Stripped excerpt of the article, single line with HTML tags removed.

Arguments

•Int

Truncates a string after the given length.


•HTML

The excerpt of the article, complete with HTML formatting.

•String!
non-null

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

•ID!
non-null

A globally-unique ID.

•Image

The image associated with the article.

•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.

•DateTime!
non-null

The date and time when the article was published.

•SEO

The article’s SEO information.

•[String!]!
non-null

A categorization that a article can be tagged with.

•String!
non-null

The article’s name.

•String

URL parameters to be added to a page URL to track the origin of on-site search traffic for analytics reporting. Returns a result when accessed through the search or predictiveSearch queries, otherwise returns null.

•ArticleAuthor!
non-nullDeprecated

Was this section helpful?

Anchor to articlearticle
•query

Returns an Article by its ID. Each article belongs to a Blog and includes content in both plain text and HTML formats, ArticleAuthor information, Comment objects, tags, and SEO data.

Arguments

•ID!
required

The ID of the Article.


•query

Returns a paginated list of Article objects from the shop's Blog objects. Each article is a blog post containing content, author information, tags, and optional images.

Use the query argument to filter results by author, blog title, tags, or date fields. Sort results using the sortKey argument and reverse them with the reverse argument.

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
•


Was this section helpful?

•interface

Was this section helpful?