Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

queryDeprecated

Returns a private metafield by ID. Private metafields are accessible only by the application that created them. Metafields created using a reserved namespace are private by default. See our guide for migrating private metafields.

ID!required

The ID of the PrivateMetafield to return.


Was this section helpful?

Private metafields represent custom metadata that is attached to a resource. Private metafields are accessible only by the application that created them and only from the GraphQL Admin API.

An application can create a maximum of 10 private metafields per shop resource.

Private metafields are deprecated. Metafields created using a reserved namespace are private by default. See our guide for migrating private metafields.

createdAt
non-null

The date and time when the private metafield was created.

id
non-null

The ID of the private metafield.

key
non-null

The key name of the private metafield.

namespace
non-null

The namespace of the private metafield.

updatedAt
non-null

The date and time when the private metafield was updated.

value
non-null

The value of a private metafield.

valueType
non-null

Represents the private metafield value type.


Was this section helpful?