Skip to main content
shoppy.articles.blog(handle)
Filters articles to only return those from the specified blog.

Parameters

ParamTypeRequiredDescription
handlestringYesThe blog handle

Returns

ArticlesQueryBuilder (chainable)

Examples

Filter by blog

const { items } = await shoppy.articles
    .blog('news')
    .list()

With limit and select

const { items } = await shoppy.articles
    .blog('company-updates')
    .limit(5)
    .select(['title', 'handle', 'publishedAt'])
    .list()

Get article from specific blog

const article = await shoppy.articles
    .blog('news')
    .get('my-article')