22 lines
532 B
TypeScript
22 lines
532 B
TypeScript
/**
|
|
* Write merged wishlist (JSON string array) to the customer. Requires
|
|
* a matching customer metafield definition (`custom.abiir_wishlist`, type JSON).
|
|
*/
|
|
export const WISHLIST_METAFIELD_SET_MUTATION = `#graphql
|
|
mutation WishlistMetafieldSet(
|
|
$language: LanguageCode
|
|
$metafields: [MetafieldsSetInput!]!
|
|
) @inContext(language: $language) {
|
|
metafieldsSet(metafields: $metafields) {
|
|
metafields {
|
|
id
|
|
}
|
|
userErrors {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
}
|
|
}
|
|
` as const;
|