Metafields Set User Error
An error that occurs during the execution of .
Anchor to FieldsFields
- code (MetafieldsSetUserErrorCode)
- elementIndex (Int)
- field ([String!])
- message (String!)
- Anchor to codecode•Metafields
Set User Error Code The error code.
- Anchor to elementIndexelement•Int
Index The index of the array element that's causing the error.
- Anchor to fieldfield•[String!]
The path to the input field that caused the error.
- Anchor to messagemessage•String!non-null
The error message.
Anchor to MutationsMutations
- cartMetafieldsSet (CartMetafieldsSetPayload)
- •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.
Cart metafields will be copied to order metafields at order creation time if there is a matching order metafield definition with the
cart to order copyablecapability enabled.NoteThis mutation won't trigger Shopify Functions. The changes won't be available to Shopify Functions until the buyer goes to checkout or performs another cart interaction that triggers the functions.
Note:This mutation won't trigger Shopify Functions. The changes won't be available to Shopify Functions until the buyer goes to checkout or performs another cart interaction that triggers the functions.
Note: This mutation won't trigger <a href="https://shopify.dev/docs/api/functions">Shopify Functions</a>. The changes won't be available to Shopify Functions until the buyer goes to checkout or performs another cart interaction that triggers the functions.
- Anchor to metafieldsmetafields•[Cart
Metafields Set Input!]! required The list of Cart metafield values to set. Maximum of 25.
The input must not contain more than
250values.
Arguments