Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Blogs endpoint graphql doesn't exist in queryRoot?

Blogs endpoint graphql doesn't exist in queryRoot?

Jchan241
Visitor
2 0 0

Hi there,

Trying to create an app for our online store and thought it'll be good to be able to access blogs as well.

From the docs, there seems to be an endpoint for articles and blogs from queryRoot, but when testing it out on the shopify graphql app it gives me this message "Field 'blogs' doesn't exist on type 'QueryRoot'".

Wondering if there's something I'm completely missing?

 

Referring to this page for the docs

https://shopify.dev/docs/storefront-api/reference/object/blog?api[version]=2020-07

 

Cheers

Replies 3 (3)

Clemon
Visitor
2 0 0

Hello, the only answer i can give to you is you might use the old API, that may have become depracated(this month a new version got release) or your request is wrong, can you share the schema or your query ?

Jchan241
Visitor
2 0 0

Hi Clemon, thanks for replying

I'm currently using the most recent API version (2020-07)

I'm querying through the shopify graphql app just to test if I can call the blogs first before I continue to build that part of my app. (https://shopify-graphiql-app.shopifycloud.com/)

 

It's just a simple call to see if I can get anything from it first, but it's giving me a "Field 'blogs' doesn't exist on type 'QueryRoot'"

query {
  blogs
}

 

Drg732
Visitor
2 0 1

Were you able to get it figured this out after all?