Created
March 26, 2025 00:32
-
-
Save skeptrunedev/d73078ac737e65db43d6fd70de4269d8 to your computer and use it in GitHub Desktop.
Shopify GraphQL to Get AppID and AppMetaFields
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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