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.

Re: Shopify GraphiQL App Subscription schema is not supported

Solved

Shopify GraphiQL App Subscription schema is not supported

Lallawmzuala
Visitor
3 0 0

I've been using the 2020-07 version of Shopify GraphiQL App for an android app that I've released and come to find out that the subscription schema I used to watch when a new order is placed have not been firing when there is a change, I went to the graphiql  playground of the Shopify GraphiQL App and looking at the documentation explorer find out that there is no root for subscription . Have the subscription schema been removed? if so, is there an alternative to watch changes to a specific order/product etc., in real-time? 

Accepted Solution (1)
Luke_K
Shopify Staff
402 66 103

This is an accepted solution.

No worries! I think I'm with you now. It sounds like - if you're watching for order changes - you'd be referring to GraphQL Webhook Subscriptions.

Taking a look at QueryRoot.webhookSubscription here the naming wouldn't have changed. I've compared back to version 2020-10 of the GraphQL API - it's remained the same.

Are you using Subscription instead of including the full name of WebhookSubscription when subscribing perhaps?

 

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!

View solution in original post

Replies 3 (3)

Luke_K
Shopify Staff
402 66 103

Hey @Lallawmzuala 

So, App Subscription is still a thing in 2021-07 (latest version) in our GraphQL Admin API (docs here)   - 2020-07 is now an unstable API Version as at July 1st.

I was able to query app subscription in the GraphiQL app using all the available versions - could you perhaps supply some screenshots of the requests you are making your end and I can take a look? Thanks!

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
Lallawmzuala
Visitor
3 0 0

I apologize if I was a bit confusing and did not write out what I meant, the subscription that I was asking about refers to one of the operation that is available in a graphql (query,mutation and subscription)  and not the service/product subscription which a user may make to a shopify store.

Luke_K
Shopify Staff
402 66 103

This is an accepted solution.

No worries! I think I'm with you now. It sounds like - if you're watching for order changes - you'd be referring to GraphQL Webhook Subscriptions.

Taking a look at QueryRoot.webhookSubscription here the naming wouldn't have changed. I've compared back to version 2020-10 of the GraphQL API - it's remained the same.

Are you using Subscription instead of including the full name of WebhookSubscription when subscribing perhaps?

 

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!