Graphql Query Articles by blog_title

Solved

Graphql Query Articles by blog_title

Sergiu222
Shopify Partner
5 0 0

I'm trying to build a query for searching through articles based on the title but it doesn't seems to work ?!

I have an article with the following title Optimizing your sleep

All in the query is correct except for the blog_title . Doesn't seems to work.
If I change the blog_title to author the query responds with correct data.

 

query Blog {
  blog(handle : "News") {
  	articles(first:100, query:"blog_title:'sleep'") {
     pageInfo {
      hasNextPage
    }
     nodes {
        title
      	handle
      }
    }
  }
}

 

 

Accepted Solution (1)

SBD_
Shopify Staff
1830 273 418

This is an accepted solution.

Hey @Sergiu222,

 

The `blog_title` filter is for the blog title (News) not the article title (Optimizing your sleep). Currently there's no way to filter by article title. 

 

 

Scott | Developer Advocate @ Shopify 

View solution in original post

Reply 1 (1)

SBD_
Shopify Staff
1830 273 418

This is an accepted solution.

Hey @Sergiu222,

 

The `blog_title` filter is for the blog title (News) not the article title (Optimizing your sleep). Currently there's no way to filter by article title. 

 

 

Scott | Developer Advocate @ Shopify