ShopifyArticle
ShopifyBlog
ShopifyArticleAuthor
ArticlesResult
Response fromshoppy.articles.list()
ArticleField
Available fields for.select() on articles.
TypeScript interfaces for blog articles
interface ShopifyArticle {
id: string
handle: string
title: string
content: string
contentHtml: string
excerpt: string | null
excerptHtml: string | null
publishedAt: string
image: ShopifyImage | null
blog: ShopifyBlog
author: ShopifyArticleAuthor
tags: string[]
onlineStoreUrl: string | null
seo: ShopifySeo
}
interface ShopifyBlog {
id: string
handle: string
title: string
onlineStoreUrl: string | null
seo: ShopifySeo
}
interface ShopifyArticleAuthor {
name: string
email: string | null
bio: string | null
}
shoppy.articles.list()
interface ArticlesResult {
items: ShopifyArticle[]
pageInfo: ShopifyPageInfo
}
.select() on articles.
type ArticleField =
| 'id'
| 'handle'
| 'title'
| 'content'
| 'contentHtml'
| 'excerpt'
| 'excerptHtml'
| 'publishedAt'
| 'image'
| 'blog'
| 'author'
| 'tags'
| 'onlineStoreUrl'
| 'seo'