Field 'appSubscription' doesn't exist on type 'QueryRoot'

Field 'appSubscription' doesn't exist on type 'QueryRoot'

Girish_Rajwani
Shopify Partner
87 3 8

Hi all,

 

i am using 2024-10 API version and trying fetch charge status but getting below error.

 

Error: Field 'appSubscription' doesn't exist on type 'QueryRoot'. Below is the code

 

const response = await admin.graphql(
`#graphql
query GetChargeStatus {
appSubscription(id: $chargeId) {
id
status
}
}`,
{
"variables": {
"id": `gid://shopify/AppSubscription/${charge_id}`
}
}
);
 
Any help would be really appreciated.

 

Girish | Shopify Expert  
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - My Shopify Apps: App Store | Looking for a solution to a problem in your store? Send me an email

Replies 0 (0)