JsonMetafield
ObjectFields returned for json metafield.
Fields
- Boolean
allowEmpty Indicates whether an empty JSON value is allowed and normalized to an empty object.
- [ID!]!
categoryIds The category ids associated with this json metafield.
- String!
defaultValue The default raw JSON value used when no value is assigned.
- 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.
- String!
value The validated raw JSON value of the metafield.