Skip to main content
Anchor to MetafieldsSetUserError

MetafieldsSetUserError

object

An error that occurs during the execution of MetafieldsSet.

•MetafieldsSetUserErrorCode

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

Sets cart metafield values. Cart metafield values will be set regardless if they were previously created or not.

Allows a maximum of 25 cart metafields to be set at a time.

Arguments

•[CartMetafieldsSetInput!]!
required

The list of Cart metafield values to set. Maximum of 25.

The input must not contain more than 250 values.


Fields

•[Metafield!]

The list of cart metafields that were set.

•[MetafieldsSetUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?


Was this section helpful?