A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I'm trying to get all the apps of a shop using Shopify Graph QL just like this.
appInstallations(first: 10) {
edges {
node {
id
}
}
}
And It gives me access denied. Is this already deprecated or which access scope should I get from OAuth
If anyone know about this please let me know, Thanks.
Hi @sunbae,
At this time, the GraphiQL app is the only API client that can request the appropriate permission to see appInstallations for every installed app. You can currently see your own appInstallation via currentAppInstallation field on the QueryRoot object, however, e.g.
{
currentAppInstallation {
id
accessScopes {
handle
}
activeSubscriptions {
id
currentPeriodEnd
}
}
}
CalD | Developer Support @ 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
@CalD is this still the case?
Why is https://shopify.dev/docs/admin-api/graphql/reference/common-objects/queryroot#appinstallations-2021-... listed if one cannot use it?
3 years later and it still doesn't work, but its listed in the API docs with no note of restrictions!
https://shopify.dev/docs/api/admin-graphql/2023-01/objects/appinstallation