Docs
Dashboard

MetafieldMoveInput

Input

Represents an update to the position of a metafield. Provide exactly one of ownerType or metafieldId: ownerType moves the whole namespace within that owner type, metafieldId moves a single metafield within the namespace.

#

Fields


metafieldId
ID

Moves a single metafield within the namespace. Provide either this or ownerType, not both.

namespace
String!

The namespace the move applies to.

newPosition
Int!

The new position of the target within its ordering.

ownerType
MetafieldOwnerType

Moves every metafield in the namespace for this owner type. Provide either this or metafieldId, not both.

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.