metafield Definition
Retrieve a single metafield definition by identifier
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. Leave blank to see everything available to the client.
Anchor to Possible returnsPossible returns
- MetafieldDefinition (MetafieldDefinition)
- Anchor to MetafieldDefinitionMetafield•Metafield
Definition Definition A MetafieldDefinition is a Permissible type. It is managed by a Client and defines the shape of the data stored in in a Metafield. Control and access of a MetafieldDefinition is determined by AccessGrants that link the definition to Clients or Namespaces.
- Anchor to accessaccess•Custom
Data Access Type List of the active policies associated with this Definition. Policies represent ownership of the Definition and can be granted to Clients and Nampespaces.
- Anchor to descriptiondescription•String
Developer facing description.
- •String!non-null
Developer facing identifier for the resource.
- Anchor to namename•String
Developer facing display name.
- Anchor to namespacenamespace•String
Developer facing path to identifier for the resource.
- Anchor to typetype•Metafield
Definition Type! non-null One of the types available in the Metafield developer documentation (https://shopify.dev/docs/apps/custom-data/metafields/types), except JSON.
- Anchor to uuiduuid•ID!non-null
Internal identifier for the resource.
- Anchor to validationsvalidations•[Custom
Data Metafield Definition Validation Type!] A list of validation options for the metafields that belong to the metafield definition.