Themes list using GraphQL

Solved
Highlighted
Excursionist
18 0 2

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
Highlighted
Shopify Staff
Shopify Staff
486 42 106

This is an accepted solution.

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
Highlighted
Excursionist
18 0 2

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

1 Like
Highlighted
New Member
6 0 0

Hi! is there a way to access assets/themes using GraphQL?

 

 

0 Likes