Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Graphql Query Articles by blog_title

Solved

Graphql Query Articles by blog_title

Sergiu222
Shopify Partner
6 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
1831 273 423

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
1831 273 423

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