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.


Was this section helpful?