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.

GraphQL Storefront API - mutation does not exist?

GraphQL Storefront API - mutation does not exist?

hyperiondev
Visitor
2 0 0

Hi all,

 

I'm working on integrating the GraphQL Storefront API into a custom sitefront and have run into a potential roadblock regarding users requesting a reset of their password. The documentation here shows that customerRecover is supposed to be defined, however when looking at the schema definition via GraphiQL I get "Field 'customerRecover' doesn't exist on type 'Mutation." Any thoughts? Thanks in advance.

Replies 3 (3)

Josh
Shopify Staff
1134 84 235

Hey there, 

 

Are you able to try this out with a cURL request instead of the GraphiQL app? That should help narrow things down a bit. Let me know how it goes!

Josh | 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 the Shopify Help Center or the Shopify Blog

hyperiondev
Visitor
2 0 0

Hey Josh, I appreciate the response. Just wanted to let you know that this is totally user-error as, in my request, I was querying https:///my-shop.myshopify.com/admin/api/graphql instead of the proper storefront API endpoint.Notice the appending of /admin to the request? That's what happens when you try testing two APIs at once and don't split the tests out well...

 

Thanks for your patience and understanding.

Josh
Shopify Staff
1134 84 235

Hey again, 

 

Thanks for getting back to me to let me know - believe me, I've been there more than once myself. Totally understandable. Glad you got it sorted! 

Josh | 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 the Shopify Help Center or the Shopify Blog