Skip to main content
query

Retrieve a Metafield by their Definition's Key or Namspace and Key. Leave blank to retreive all metafields on the user that your client has access to.

•CustomDataKeyPairInput!
required

Key and namespace pair that together form the path to the definition. Key is required, Namespace defaults to the Client's implicit, reserved namespace if not provided.


Was this section helpful?

•Metafield

Metafields enable you to attach additional information to a Shop domain resource, such as a User.

•MetafieldDefinition!
non-null

The metafield definition that the metafield belongs to.

•String!
non-null

The GID of resource that this metafield belongs to.

•CustomDataOwnerType!
non-null

The type of resource that this metafield belongs to.

•String!
non-null

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


Was this section helpful?