--- title: HasCompareDigest - Customer API description: >- Represents a summary of the current version of data in a resource. The `compare_digest` field can be used as input for mutations that implement a compare-and-swap mechanism. api_version: 2026-04 api_name: customer type: interface api_type: graphql source_url: html: 'https://shopify.dev/docs/api/customer/latest/interfaces/HasCompareDigest' md: 'https://shopify.dev/docs/api/customer/latest/interfaces/HasCompareDigest.md' --- # Has​Compare​Digest interface Represents a summary of the current version of data in a resource. The `compare_digest` field can be used as input for mutations that implement a compare-and-swap mechanism. ## Fields * compare​Digest [String!](https://shopify.dev/docs/api/customer/latest/scalars/String) non-null The data stored in the resource, represented as a digest. *** ##### Variables ```json { "compareDigest": "" } ``` ##### Schema ```graphql interface HasCompareDigest { compareDigest: String! } ```