MetafieldDefinition
InterfaceShared fields implemented by metafield definition types.
Fields
- [ID!]!
categoryIds The category ids associated with this metafield definition.
- Boolean!
hasCategoryRestrictions The has category restrictions associated with this metafield definition.
- ID!
id The unique identifier of the resource.
- Boolean!
isPrivate The is private associated with this metafield definition.
- String!
key The key associated with this metafield definition.
- MetafieldDefinitionKind!
kind The kind associated with this metafield definition.
Possible enum valuesDECIMALStores a decimal-number value.
DROPDOWNStores one value selected from a predefined list.
INTEGERStores a whole-number value.
JSONStores structured JSON data.
MEDIAStores a reference to media.
MONEYStores a monetary amount and currency.
PRODUCT_PICKERStores a reference to a product.
TAGSStores multiple text tags.
TEXTStores a text value.
VARIANT_PICKERStores a reference to a product variant.
- String!
name The name associated with this metafield definition.
- String!
namespace The namespace associated with this metafield definition.
- MetafieldOwnerType!
ownerType The owner type associated with this metafield definition.
Possible enum valuesCATEGORYA category can own the metafield.
COLLECTIONA collection can own the metafield.
CUSTOMERA customer can own the metafield.
ORDERAn order can own the metafield.
PRODUCTA product can own the metafield.
PRODUCT_ATTRIBUTEA product attribute can own the metafield.
PRODUCT_ATTRIBUTE_VALUEA product attribute value can own the metafield.
PRODUCT_VARIANTA product variant can own the metafield.
- [String!]!
possibleValues The distinct values currently assigned to this metafield, or the configured options for a dropdown.
Implementations
- DecimalMetafieldDefinition
DecimalMetafieldDefinition Fields returned for decimal metafield definition.
- DropdownMetafieldDefinition
DropdownMetafieldDefinition Fields returned for dropdown metafield definition.
- IntegerMetafieldDefinition
IntegerMetafieldDefinition Fields returned for integer metafield definition.
- JsonMetafieldDefinition
JsonMetafieldDefinition Fields returned for json metafield definition.
- MediaMetafieldDefinition
MediaMetafieldDefinition Fields returned for media metafield definition.
- MoneyMetafieldDefinition
MoneyMetafieldDefinition Fields returned for money metafield definition.
- ProductPickerMetafieldDefinition
ProductPickerMetafieldDefinition Fields returned for product picker metafield definition.
- TagsMetafieldDefinition
TagsMetafieldDefinition Fields returned for tags metafield definition.
- TextMetafieldDefinition
TextMetafieldDefinition Fields returned for text metafield definition.
- VariantPickerMetafieldDefinition
VariantPickerMetafieldDefinition Fields returned for variant picker metafield definition.