Skip to main content
Anchor to MetafieldDefinitionCreateUserError

MetafieldDefinitionCreateUserError

object

An error that occurs during the execution of MetafieldDefinitionCreate.

•MetafieldDefinitionCreateUserErrorCode

The error code.

•Int

The index of the array element that's causing the error.

•[String!]

The path to the input field that caused the error.

•String!non-null

The error message.


Was this section helpful?

•mutation

Creates a metafield definition. Any metafields existing under the same owner type, namespace, and key will be checked against this definition and will have their type updated accordingly. For metafields that are not valid, they will remain unchanged but any attempts to update them must align with this definition.

Arguments

•MetafieldDefinitionInput!required

Specifies the input fields for a metafield definition.


Fields

•MetafieldDefinition

The metafield definition that was created.

•[MetafieldDefinitionCreateUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?


Was this section helpful?