metafieldStorefrontVisibilityCreate mutation

Version unstable

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

Argument Description
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

Version 2021-10 (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

Argument Description
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.