Metafield object

Version 2020-01 (Release candidate)

Metafields represent custom metadata attached to a resource. Metafields can be sorted into namespaces and are composed of keys, values, and value types.

Fields

description (String)

The description of a metafield.

id (ID!)

Globally unique identifier.

key (String!)

The key name for a metafield.

legacyResourceId (UnsignedInt64!)

The ID of the corresponding resource in the REST Admin API.

namespace (String!)

The namespace for a metafield.

ownerType (MetafieldOwnerType!)

Owner type of a metafield visible to the Storefront API.

value (String!)

The value of a metafield.

valueType (MetafieldValueType!)

Represents the metafield value type.

Types that return Metafield

Mutations for Metafield

metafieldDelete

Deletes a metafield.

Implements

Version 2019-10 (Latest)

Metafields represent custom metadata attached to a resource. Metafields can be sorted into namespaces and are composed of keys, values, and value types.

Fields

description (String)

The description of a metafield.

id (ID!)

Globally unique identifier.

key (String!)

The key name for a metafield.

legacyResourceId (UnsignedInt64!)

The ID of the corresponding resource in the REST Admin API.

namespace (String!)

The namespace for a metafield.

ownerType (MetafieldOwnerType!)

Owner type of a metafield visible to the Storefront API.

value (String!)

The value of a metafield.

valueType (MetafieldValueType!)

Represents the metafield value type.

Types that return Metafield

Mutations for Metafield

metafieldDelete

Deletes a metafield.

Implements

Version 2019-07

Metafields represent custom metadata attached to a resource. Metafields can be sorted into namespaces and are composed of keys, values, and value types.

Fields

description (String)

The description of a metafield.

id (ID!)

Globally unique identifier.

key (String!)

The key name for a metafield.

legacyResourceId (UnsignedInt64!)

The ID of the corresponding resource in the REST Admin API.

namespace (String!)

The namespace for a metafield.

ownerType (MetafieldOwnerType!)

Owner type of a metafield visible to the Storefront API.

value (String!)

The value of a metafield.

valueType (MetafieldValueType!)

Represents the metafield value type.

Types that return Metafield

Mutations for Metafield

metafieldDelete

Deletes a metafield.

Implements

Version 2019-04

Metafields represent custom metadata attached to a resource. Metafields can be sorted into namespaces and are composed of keys, values, and value types.

Fields

description (String)

The description of a metafield.

id (ID!)

Globally unique identifier.

key (String!)

The key name for a metafield.

legacyResourceId (UnsignedInt64!)

The ID of the corresponding resource in the REST Admin API.

namespace (String!)

The namespace for a metafield.

value (String!)

The value of a metafield.

valueType (MetafieldValueType!)

Represents the metafield value type.

Types that return Metafield

Mutations for Metafield

metafieldDelete

Deletes a metafield.

Implements

Sign up for a Partner account to get started.

Sign up