I am trying to get ALL blog articles on my domain with a certain tag (let’s call it ‘certain-tag’) with Storefront API. There are 10 articles with ‘certain-tag’ out of about 289 articles from one blog.
I want to utilize Storefront API to get only these 10 articles. How do I filter or query the articles to only return the certain tagged articles out of all 289 of the blog articles?
query getBlogByHandle($handle: String!) {
blog(handle: $handle) {
id
title
articles(first: 30, query: "(tag: 'certain-tag')") {
edges {
node {
image { url }
title
content
publishedAt
onlineStoreUrl
tags
}
}
}
}
}`