Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Compare-and-swap (CAS) for the Metafields API

As of GraphQL Admin and Customer Account APIs version 2024-07, you can now set metafields using compare-and-swap (CAS) through the new compareDigest field for the metafieldsSet mutation.

Using CAS will add support to properly handle concurrency requests.

Was this section helpful?