I’m trying to get the reason for app uninstall. The field in the docs: https://shopify.dev/docs/api/partner/2023-01/objects/RelationshipUninstalled#field-relationshipuninstalled-reason
But the GraphQL query doesn’t work:
{
app(id: "gid://partners/App/3426665") {
events(types: [RELATIONSHIP_UNINSTALLED]) {
edges {
node {
reason
}
}
}
}
}
That returns
{
"errors": [
{
"message": "Field 'reason' doesn't exist on type 'AppEvent'",
"locations": [
{
"line": 37,
"column": 11
}
],
"path": [
"query",
"app",
"events",
"edges",
"node",
"reason"
],
"extensions": {
"code": "undefinedField",
"typeName": "AppEvent",
"fieldName": "reason"
}
}
]
}
How do I get the uninstall reason?
I have a suspicion that Shopify documented this, but got tripped up by GraphQL ignorance and it’s impossible to actually access it.