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.

What access_token is used by shopify GraphiQL App?

What access_token is used by shopify GraphiQL App?

Itachi_Uchiha
Shopify Partner
26 0 1

I was wondering about what access_token is used by the shopify GraphiQL App when it makes queries and mutation because primarily I though it is using the Admin API access token.

I assumed this because I was being able to make whatever queries and mutations I was making using GraphiQL App I could also make them using the Admin API access token of the app that I've created in the App development section.  

 

But the scenario changes when I try to run a mutation with a function id and I end up getting functionId not found regardless whatever I do.  
So I wanna know what are they using.

Replies 3 (3)

Liam
Community Manager
3108 344 894

Hi Itachi_Uchiha,

 

What is the full mutation you're looking to make, that's working with GraphiQL but not via your app that's using the Admin API access token? It is possible that there's some extra access that the GraphiQL app has that is not currently accessible with the Admin API. 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Itachi_Uchiha
Shopify Partner
26 0 1

I've checked all the access scopes.

I'm using the access token that I've used the access_token derived from the following section(Shown in the images). 


I can make mutations like create code and automatic discount(discountCodeBasicCreate, discountAutomaticBasicCreate) and so on using this access_token.

Itachi_Uchiha_1-1697105442322.png

 

 

Itachi_Uchiha_0-1697105373563.png

 

Then I created extension only apps using the CLI and tried to make the mutations related to those functions using the "fucntionId".

But when I try to create mutations that has "functionId" field like "discountAutomaticAppCreate or cartTransformCreate"  it fails and says: Function not found.

Liam
Community Manager
3108 344 894

You should also check to ensure that you have added the correct scopes that are required for the API call. You'd enable these scopes on the store admin, at this page:

 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog