Metafield
InterfaceA metafield definition resolved for an owner, including its assigned value when present.
Fields
- [ID!]!
categoryIds The product categories to which this metafield is limited.
- Boolean!
hasAssignedValue Indicates whether this owner has an explicit value assigned for the metafield.
- Boolean!
hasCategoryRestrictions Indicates whether the metafield is limited to specific product categories.
- ID!
id The unique ID of the metafield definition.
- String!
key The key that uniquely identifies this metafield within its namespace.
- MetafieldDefinitionKind!
kind The value kind supported by the 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 display name of the metafield definition.
- String!
namespace The namespace that groups this metafield definition.
- MetafieldOwnerType!
ownerType The owner type this metafield definition can be assigned to.
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.
Implementations
- DecimalMetafield
DecimalMetafield Fields returned for decimal metafield.
- DropdownMetafield
DropdownMetafield Fields returned for dropdown metafield.
- IntegerMetafield
IntegerMetafield Fields returned for integer metafield.
- JsonMetafield
JsonMetafield Fields returned for json metafield.
- MediaMetafield
MediaMetafield Fields returned for media metafield.
- MoneyMetafield
MoneyMetafield Fields returned for money metafield.
- ProductPickerMetafield
ProductPickerMetafield Fields returned for product picker metafield.
- TagsMetafield
TagsMetafield Fields returned for tags metafield.
- TextMetafield
TextMetafield Fields returned for text metafield.
- VariantPickerMetafield
VariantPickerMetafield Fields returned for variant picker metafield.