Docs
Dashboard

MetafieldCreateInput

Input

Input fields accepted for metafield create input.

#

Fields


allowEmpty
Boolean

The allow empty to use for this metafield create input.

allowMultiple
Boolean

Allows a media metafield to reference more than one media.

categoryIds
[ID!]

The category ids to use for this metafield create input.

defaultDecimal
Decimal

The default decimal to use for this metafield create input.

defaultInteger
Long

The default integer to use for this metafield create input.

defaultMoney
MoneyInput

The default money to use for this metafield create input.

defaultReferenceProductId
ID

The default reference product id to use for this metafield create input.

defaultReferenceVariantId
ID

The default reference variant id to use for this metafield create input.

defaultTags
[String!]

The default tags to use for this metafield create input.

defaultValue
String

The default value to use for this metafield create input.

isPrivate
Boolean!

The is private to use for this metafield create input.

key
String!

The key to use for this metafield create input.

kind
MetafieldDefinitionKind!

The kind to use for this metafield create input.

Possible enum values
  • DECIMAL

    Stores a decimal-number value.

  • DROPDOWN

    Stores one value selected from a predefined list.

  • INTEGER

    Stores a whole-number value.

  • JSON

    Stores structured JSON data.

  • MEDIA

    Stores a reference to media.

  • MONEY

    Stores a monetary amount and currency.

  • PRODUCT_PICKER

    Stores a reference to a product.

  • TAGS

    Stores multiple text tags.

  • TEXT

    Stores a text value.

  • VARIANT_PICKER

    Stores a reference to a product variant.

maxDecimalValue
Decimal

The max decimal value to use for this metafield create input.

maxIntegerValue
Long

The max integer value to use for this metafield create input.

minDecimalValue
Decimal

The min decimal value to use for this metafield create input.

minIntegerValue
Long

The min integer value to use for this metafield create input.

name
String!

The name to use for this metafield create input.

namespace
String!

The namespace to use for this metafield create input.

options
[String!]

The options to use for this metafield create input.

ownerType
MetafieldOwnerType!

The owner type to use for this metafield create input.

Possible enum values
  • CATEGORY

    A category can own the metafield.

  • COLLECTION

    A collection can own the metafield.

  • CUSTOMER

    A customer can own the metafield.

  • ORDER

    An order can own the metafield.

  • PRODUCT

    A product can own the metafield.

  • PRODUCT_ATTRIBUTE

    A product attribute can own the metafield.

  • PRODUCT_ATTRIBUTE_VALUE

    A product attribute value can own the metafield.

  • PRODUCT_VARIANT

    A product variant can own the metafield.