Anchor to metafield
querymetafield
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.
Anchor to Arguments
Arguments
- identifier (CustomDataKeyPairInput!)
- Anchor to identifieridentifier•Custom
Data Key Pair Input! 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?
Anchor to Possible returnsPossible returns
- Metafield (Metafield)
- Anchor to MetafieldMetafield•Metafield
Metafields enable you to attach additional information to a Shop domain resource, such as a User.
- Anchor to definitiondefinition•Metafield
Definition! non-null The metafield definition that the metafield belongs to.
- Anchor to ownerIdowner•String!
Id non-null The GID of resource that this metafield belongs to.
- Anchor to ownerTypeowner•Custom
Type Data Owner Type! non-null The type of resource that this metafield belongs to.
- Anchor to valuevalue•String!non-null
The data stored in the metafield. Always stored as a string, regardless of the metafield's type.
Was this section helpful?