Article Connection
An auto-generated type for paginating through multiple Articles.
Anchor to Fields with this connectionFields with this connection
- •OBJECT
A blog for publishing articles in the online store. Stores can have multiple blogs to organize content by topic or purpose.
Each blog contains articles with their associated comments, tags, and metadata. The comment policy controls whether readers can post comments and whether moderation is required. Blogs use customizable URL handles and can apply alternate templates for specialized layouts.
Anchor to Queries with this connectionQueries with this connection
- articles (ArticleConnection!)
- •query
Returns a paginated list of articles from the shop's blogs.
Articleobjects are blog posts that contain content like text, images, and tags.Supports cursor-based pagination to control the number of articles returned and their order. Use the
queryargument to filter results by specific criteria.- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Article
Key Sort Keys Default:ID Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.
- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
- Anchor to default•string
Filter by a case-insensitive search of multiple fields in a document.
query=Bob Normanquery=handle:summer-collection-announcement- •string
Filter by the author of the article.
- Anchor to blog_id•string
Filter by the ID of the blog the article belongs to.
blog_id:1234blog_id:>=1234blog_id:<=1234- Anchor to blog_title•string
- Anchor to created_at•time
Filter by the date and time when the article was created.
created_at:>'2020-10-21T23:39:20Z'created_at:<nowcreated_at:<=2024- Anchor to handle•string
Filter by the article's handle.
handle:summer-collection-announcementhandle:how-to-guide- Anchor to published_at•time
Filter by the date and time when the article was published.
published_at:>'2020-10-21T23:39:20Z'published_at:<nowpublished_at:<=2024- Anchor to published_status•string
Filter by published status
- Anchor to tag_not•string
Filter by objects that don’t have the specified tag.
tag_not:my_tag- Anchor to title•string
Filter by the title of the article.
title:summer-collectiontitle:green hoodie- Anchor to updated_at•time
Filter by the date and time when the article was last updated.
updated_at:>'2020-10-21T23:39:20Z'updated_at:<nowupdated_at:<=2024
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Arguments
Anchor to Possible returnsPossible returns
- edges ([ArticleEdge!]!)
- nodes ([Article!]!)
- pageInfo (PageInfo!)
- Anchor to edgesedges•[Article
Edge!]! non-null The connection between the node and its parent. Each edge contains a minimum of the edge's cursor and the node.
- Anchor to nodesnodes•[Article!]!non-null
A list of nodes that are contained in ArticleEdge. You can fetch data about an individual node, or you can follow the edges to fetch data about a collection of related nodes. At each node, you specify the fields that you want to retrieve.
- Anchor to pageInfopage•Page
Info Info! non-null An object that’s used to retrieve cursor information about the current page.