Themes list using GraphQL

Solved
Tourist
18 0 1

Hello

 

I'm writing an embedded app and I need it to display a list of themes for the user. Once the user has selected a theme I then want to add some assets to that theme. I want to move away from REST to using GraphQL.

 

The endpoint for REST is...

/admin/api/2019-10/themes.json

Is this query possible using GraphQL? I can't find a queryRoot that relates to themes or assets.

 

Many thanks

 

Paul

0 Likes

Success.

Shopify Staff
Shopify Staff
462 34 90

Hi @clucs123,

 

I took a quick look as well and I don't believe themes or assets are accessible via API currently.  Is there something you are trying to accomplish that can't be done through REST so you were looking at GraphQL? Or just converting in general.

Developer Experience @ Shopify
1 Like
Tourist
18 0 1

Hi Ryan

 

I'm just trying to use graphql whenever possible and couldn't find themes or assets anywhere in the schema.

 

I using the REST API now for the themes GET so it's not a problem.

 

Thanks for taking a look.

 

Paul

0 Likes