--- title: HasCompareDigest - GraphQL Admin 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: 2025-10 api_name: admin type: interface api_type: graphql source_url: html: >- https://shopify.dev/docs/api/admin-graphql/2025-10/interfaces/HasCompareDigest md: >- https://shopify.dev/docs/api/admin-graphql/2025-10/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/admin-graphql/2025-10/scalars/String) non-null The data stored in the resource, represented as a digest. *** ##### Variables ```json { "compareDigest": "" } ``` ##### Schema ```graphql interface HasCompareDigest { compareDigest: String! } ```