Skip to content

Instantly share code, notes, and snippets.

@skeptrunedev
Created March 26, 2025 00:32
Show Gist options
  • Select an option

  • Save skeptrunedev/d73078ac737e65db43d6fd70de4269d8 to your computer and use it in GitHub Desktop.

Select an option

Save skeptrunedev/d73078ac737e65db43d6fd70de4269d8 to your computer and use it in GitHub Desktop.
Shopify GraphQL to Get AppID and AppMetaFields
query GetAppId {
currentAppInstallation {
id
}
}
query GetAppMetafields($appId: ID!) {
appInstallation(id: $appId) {
id
metafields(first: 10, namespace: "trieve") {
edges {
node {
id
namespace
key
value
type
}
}
}
}
}
# {
# "appId": "<response from first request>"
# }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment