Skip to main content
interface

Represents a summary of the current version of data in a resource.

The compare_digest field can be used as input for mutations that implement a compare-and-swap mechanism.

•String!
non-null

The data stored in the resource, represented as a digest.


Was this section helpful?

Anchor to Types implemented inTypes implemented in

•OBJECT

Metafields enable you to attach additional information to a Shopify resource, such as a Product or a Collection. For more information about where you can attach metafields refer to HasMetafields. Some examples of the data that metafields enable you to store are specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, namespace, and key. and store a value along with type information for that value.

•String!
non-null

The data stored in the resource, represented as a digest.

•DateTime!
non-null

The date and time when the metafield was created.

•MetafieldDefinition

The metafield definition that the metafield belongs to, if any.

•ID!
non-null

A globally-unique ID.

•JSON!
non-null

The data stored in the metafield in JSON format.

•String!
non-null

The unique identifier for the metafield within its namespace.

•UnsignedInt64!
non-null

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

•String!
non-null

The container for a group of metafields that the metafield is associated with.

•HasMetafields!
non-null

The resource that the metafield is attached to.

•MetafieldOwnerType!
non-null

The type of resource that the metafield is attached to.

•MetafieldReference

Returns a reference object if the metafield definition's type is a resource reference.

•MetafieldReferenceConnection

A list of reference objects if the metafield's type is a resource reference list.

•String!
non-null

The type of data that is stored in the metafield. Refer to the list of supported types.

•DateTime!
non-null

The date and time when the metafield was updated.

•String!
non-null

The data stored in the metafield. Always stored as a string, regardless of the metafield's type.

•String
Deprecated

Was this section helpful?