metafieldStorefrontVisibilityCreate mutation

Version 2020-01 (Release candidate)

Makes a Metafield with a specific namespace and key visible to the storefront API.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( MetafieldStorefrontVisibilityInput! ) required

Specifies the input fields for the visibility.

MetafieldStorefrontVisibilityInput fields

key (String!) Required

The key of the metafield to be visible to the storefront api.

namespace (String!) Required

The namespace of the metafield to be visible to the storefront api.

ownerType (MetafieldOwnerType!) Required

The core resource ( e.g.: Product ) that owns this metafield.

Return fields

metafieldStorefrontVisibility (MetafieldStorefrontVisibility)

The metafield storefront visibility that was created.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2019-10 (Latest)

Makes a Metafield with a specific namespace and key visible to the storefront API.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( MetafieldStorefrontVisibilityInput! ) required

Specifies the input fields for the visibility.

MetafieldStorefrontVisibilityInput fields

key (String!) Required

The key of the metafield to be visible to the storefront api.

namespace (String!) Required

The namespace of the metafield to be visible to the storefront api.

ownerType (MetafieldOwnerType!) Required

The core resource ( e.g.: Product ) that owns this metafield.

Return fields

metafieldStorefrontVisibility (MetafieldStorefrontVisibility)

The metafield storefront visibility that was created.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2019-07

Makes a Metafield with a specific namespace and key visible to the storefront API.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( MetafieldStorefrontVisibilityInput! ) required

Specifies the input fields for the visibility.

MetafieldStorefrontVisibilityInput fields

key (String!) Required

The key of the metafield to be visible to the storefront api.

namespace (String!) Required

The namespace of the metafield to be visible to the storefront api.

ownerType (MetafieldOwnerType!) Required

The core resource ( e.g.: Product ) that owns this metafield.

Return fields

metafieldStorefrontVisibility (MetafieldStorefrontVisibility)

The metafield storefront visibility that was created.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Sign up for a Partner account to get started.

Sign up