Created
November 24, 2021 15:27
-
-
Save joshbedo/87c62b896b24fe65ef5c3ad187877d15 to your computer and use it in GitHub Desktop.
Shopify Metafields - Make new metafields visible for storefront API
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
// This needs entered in Shopify's GraphQL app to change visibility of metafield. | |
mutation ($input: MetafieldStorefrontVisibilityInput!) { | |
metafieldStorefrontVisibilityCreate(input: $input) { | |
metafieldStorefrontVisibility { | |
id | |
} | |
userErrors { | |
field | |
message | |
} | |
} | |
} | |
// INPUT | |
{ | |
"input": { | |
"namespace": "my_fields", | |
"key": "delivery", | |
"ownerType": "PRODUCT" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment